summaryrefslogtreecommitdiff
path: root/cesar/cp/beacon
diff options
context:
space:
mode:
authorNélio Laranjeiro2010-11-24 10:11:17 +0100
committerNélio Laranjeiro2010-11-24 15:42:58 +0100
commite78ed7057d5a76db2d9f4b1cf525259bfe6ebcb2 (patch)
tree038f45b0b4d48fa7901673b5ff3cde47bd141450 /cesar/cp/beacon
parentf3348e6b0ad008c29a1980ded44f79ceabf37194 (diff)
cesar/cp/beacon: activate SPOC by default using a config item, closes #2075
Diffstat (limited to 'cesar/cp/beacon')
-rw-r--r--cesar/cp/beacon/Config1
-rw-r--r--cesar/cp/beacon/src/beacon.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/cesar/cp/beacon/Config b/cesar/cp/beacon/Config
index e1b413d673..876dd03ed0 100644
--- a/cesar/cp/beacon/Config
+++ b/cesar/cp/beacon/Config
@@ -1,2 +1,3 @@
CONFIG_GPIO_LED_BEACON_TX_RX = n
CONFIG_GPIO_LED_BEACON_TX_RX_GPIO = 0
+CONFIG_BEACON_SPOC_UPDATE_INTERVAL_DEFAULT_MS = 400
diff --git a/cesar/cp/beacon/src/beacon.c b/cesar/cp/beacon/src/beacon.c
index 47adf0060d..fb9de5f7c7 100644
--- a/cesar/cp/beacon/src/beacon.c
+++ b/cesar/cp/beacon/src/beacon.c
@@ -35,9 +35,11 @@
#include "hal/gpio/gpio.h"
#include "bsu/beacon/beacon.h"
#include "bsu/bsu.h"
+#include "config/beacon.h"
/** Default interval between SPOC updates. */
-#define CP_BEACON_SPOC_UPDATE_INTERVAL_DEFAULT_MS 0
+#define CP_BEACON_SPOC_UPDATE_INTERVAL_DEFAULT_MS \
+ CONFIG_BEACON_SPOC_UPDATE_INTERVAL_DEFAULT_MS
/** Timer expires.
* \param ctx the CP context.