summaryrefslogtreecommitdiff
path: root/cesar/cp/beacon/src/beacon.c
diff options
context:
space:
mode:
authorNélio Laranjeiro2012-10-19 08:07:47 +0200
committerNélio Laranjeiro2012-10-22 14:40:24 +0200
commit650637ae30911fae7cf04e0168f4333cb4134e00 (patch)
treedc2415ca2ff007ad07973f9ea71421a0b691d219 /cesar/cp/beacon/src/beacon.c
parentfb8255d2d814a1d9d7250c8af87e75f694733b53 (diff)
cesar: use CALLBACK macro to register callbacks, refs #3414
Diffstat (limited to 'cesar/cp/beacon/src/beacon.c')
-rw-r--r--cesar/cp/beacon/src/beacon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cesar/cp/beacon/src/beacon.c b/cesar/cp/beacon/src/beacon.c
index b51be0b8d1..7ae35ec1c0 100644
--- a/cesar/cp/beacon/src/beacon.c
+++ b/cesar/cp/beacon/src/beacon.c
@@ -296,7 +296,7 @@ cp_beacon_sta_compute_schedules (cp_t *ctx, bsu_beacon_t *beacon)
set_t set_schedules;
cp_cco_bw_alloc_t *sched;
- set_init (&set_schedules, cp_cco_bw_alloc_less);
+ set_init (&set_schedules, CALLBACK (cp_cco_bw_alloc_less));
for (i = 0; i < beacon->bmis.nps.ns; i++)
{
@@ -334,7 +334,7 @@ cp_beacon_sta_compute_schedules (cp_t *ctx, bsu_beacon_t *beacon)
cp_cco_region_alloc_t *region;
set_t set_regions;
- set_init (&set_regions, cp_cco_region_alloc_less);
+ set_init (&set_regions, CALLBACK (cp_cco_region_alloc_less));
for (i = 0; i < beacon->bmis.region.nb; i++)
{
@@ -497,11 +497,11 @@ cp_beacon_init (cp_t *ctx)
// Initialise the instance of the leon timer.
hal_timer_instance_init (
ctx->hal_timer, &ctx->beacon.leon_timer, ctx,
- (hal_timer_instance_cb_t) cp_beacon_timer_expires);
+ (hal_timer_instance_cb_t) CALLBACK (cp_beacon_timer_expires));
/* Setup beacon indicator. */
GPIO_SETUP (LED_BEACON_TX_RX, GPIO_DIRECTION_OUT);
GPIO_SET (LED_BEACON_TX_RX, 0);
- bsu_init_beacon_cb (cp_beacon_receive, ctx);
+ bsu_init_beacon_cb (CALLBACK (cp_beacon_receive), ctx);
/* Store the current date for SPOC update coefficients. */
ctx->beacon.spoc_update_date = phy_date ();
/* Initialise tunable parameters. */