summaryrefslogtreecommitdiff
path: root/cp/beacon/test/cco/src/phy_stub.c
blob: e05b2805a2561878db59c48bff8d233e1bdd2ab1 (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
/* Cesar project {{{
 *
 * Copyright (C) 2008 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    cp/beacon/test/central_beacon/src/phy_stub.c
 * \brief   « brief description »
 * \ingroup « module »
 *
 * « long description »
 */
#include "common/std.h"

#include "hal/phy/phy.h"

#include "cp/beacon/test/cco/inc/phy_stub.h"

u32
phy_date (phy_t *ctx)
{
    phy_test_t *phy;
    dbg_assert(ctx);

    phy = (phy_test_t *) ctx;
    phy->ntb += phy->date_ntb + 10; 

    return phy->ntb;
}

u32
phy_clock_get_zero_cross_captured_date (phy_t *ctx)
{
    return 0;
}