summaryrefslogtreecommitdiff
path: root/cesar/bsu/src/bsu.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/bsu/src/bsu.c
parentfb8255d2d814a1d9d7250c8af87e75f694733b53 (diff)
cesar: use CALLBACK macro to register callbacks, refs #3414
Diffstat (limited to 'cesar/bsu/src/bsu.c')
-rw-r--r--cesar/bsu/src/bsu.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cesar/bsu/src/bsu.c b/cesar/bsu/src/bsu.c
index 1516b9133f..c02c27f8d5 100644
--- a/cesar/bsu/src/bsu.c
+++ b/cesar/bsu/src/bsu.c
@@ -956,10 +956,11 @@ bsu_init (bsu_aclf_t *aclf, mac_config_t *mac_config, phy_t *phy,
ctx->poweron.beacon.vf.nm = MAC_NM_CSMA_ONLY;
bsu_ntb_init (&ctx->poweron.sync);
/* Initialise the SAR callback. */
- sar_init_beacon_cb (sar, ctx, (sar_beacon_cb_t) bsu_beacon_recv);
+ sar_init_beacon_cb (
+ sar, ctx, (sar_beacon_cb_t) CALLBACK (bsu_beacon_recv));
/* Initialise timer events. */
- hal_timer_instance_init (timer, &ctx->timer, ctx,
- bsu_timer_event_process);
+ hal_timer_instance_init (
+ timer, &ctx->timer, ctx, CALLBACK (bsu_timer_event_process));
ctx->activate = false;
ctx->is_sta = BSU_UPDATE_STA_TYPE_STA;
for (i = 0; i < COUNT (ctx->mfs_beacons); i++)