summaryrefslogtreecommitdiff
path: root/cesar/cp/eoc/cco/action/test/utest/src/stub.c
blob: c91260eecb8ef48784594dddb84ca094aa18e0ee (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
45
46
47
48
49
50
51
52
53
54
55
56
/* Cesar project {{{
 *
 * Copyright (C) 2009 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    eoc/sta/action/test/utest/src/msg_stub.c
 * \brief   cp/sta/mgr/sta_mgr stub
 * \ingroup test
 *
 */
#include "common/std.h"
#include "cp/cp.h"
#include "cp/mme.h"
#include "cp/inc/context.h"
#include "cp/msg/inc/cc_assoc.h"
#include <cyg/kernel/kapi.h>


#define BSU_ACLF_BP_CABLE_TCK 2500000
#define TCK_PER_RTC 250000

u32
cp_sta_core_tck_per_rtc (cp_t *ctx)
{

    return TCK_PER_RTC;
}

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

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

u8
ce_rx_bl_nsr_compute_total_mean (ce_rx_bitloading_t *bl)
{
    return 1;
}

u8
cp_sta_action_get_average_ble (cp_t *ctx, cp_tei_t tei, bool tx,
                               bool fc_format)
{
    return 0;
}