summaryrefslogtreecommitdiff
path: root/cesar/bsu/src/bsu.c
diff options
context:
space:
mode:
authorNélio Laranjeiro2012-10-24 11:09:31 +0200
committerNélio Laranjeiro2012-12-12 15:05:05 +0100
commit32eba1aa239b2b3411bb8e2db8436de6969ff9dd (patch)
tree56c998ba756e503cd13a9bc91af8611a3d57beac /cesar/bsu/src/bsu.c
parent78d7fe31f9db8ffd186cdfe61acddf12f69d97aa (diff)
cesar/bsu: make BSU_WAKEUP_DELAY_MS configurable, refs #3341
Diffstat (limited to 'cesar/bsu/src/bsu.c')
-rw-r--r--cesar/bsu/src/bsu.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/cesar/bsu/src/bsu.c b/cesar/bsu/src/bsu.c
index 578ae14047..592a1bb4c5 100644
--- a/cesar/bsu/src/bsu.c
+++ b/cesar/bsu/src/bsu.c
@@ -32,15 +32,14 @@
#include "hal/arch/arch.h"
#include "mac/pbproc/pbproc.h"
+#include "config/bsu.h"
+
/* Define the process invalid value. */
#define BSU_MERGE_PROCESS_INVALID 0xff
/* Define the number of beacon periods to provide to the CA. */
#define BSU_BEACON_PERIOD_NB 4
-/* Define the delay to program the timer. */
-#define BSU_WAKEUP_DELAY_MS 15
-
/** Static declaration. */
static bsu_t bsu_global;
@@ -106,7 +105,7 @@ bsu_reprogram_timer (bsu_t *ctx, u32 date)
/* Reprogram the timer. */
hal_timer_instance_program (
ctx->hal_timer, &ctx->timer,
- date - MAC_MS_TO_TCK (BSU_WAKEUP_DELAY_MS));
+ date - MAC_MS_TO_TCK (CONFIG_BSU_WAKEUP_DELAY_MS));
}
/**