summaryrefslogtreecommitdiff
path: root/cesar/cp/msg/test/src/misc_stub.c
blob: 839d78cb2423844b25ce779d3c844467caa32c36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* Cesar project {{{
 *
 * Copyright (C) 2008 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    src/misc_stub.c
 * \brief   stubs for different functions in different modules
 * \ingroup cp_msg
 */

#include "common/std.h"
#include "cp/inc/context.h"
#include "test.h"

#include <cyg/kernel/kapi.h>


u32
cp_sta_core_tck_per_rtc (cp_t *ctx)
{

    return TCK_PER_RTC;
}

cyg_tick_count_t
cyg_current_time (void)
{
    /* For tests purpose we can simulate 1000 beacon periods */
    return (u32)((BSU_ACLF_BP_50HZ_TCK * 1000ull) / TCK_PER_RTC);
}

u32
bsu_aclf_beacon_period_tck (bsu_aclf_t *ctx)
{
    return BSU_ACLF_BP_50HZ_TCK;
}

void
bsu_update_nid (bsu_t *ctx, u64 nid)
{
}