From 06720cbe73d54a4e855a00459b0fce9eb5d1286f Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Fri, 25 Sep 2020 13:40:38 +0200 Subject: [PATCH] boards/openmote-b: add OpenWSN leds debugpins conf --- boards/openmote-b/include/board.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/boards/openmote-b/include/board.h b/boards/openmote-b/include/board.h index 29c47f3b71..1863d83b25 100644 --- a/boards/openmote-b/include/board.h +++ b/boards/openmote-b/include/board.h @@ -86,6 +86,30 @@ #define CONFIG_CC2538_RF_OBS_SIG_2_PCX 7 /* PC7 */ /** @} */ +/** + * @name OpenWSN leds configuration + * @{ + */ +#define OPENWSN_LEDPIN_ERROR LED0_PIN +#define OPENWSN_LEDPIN_SYNC LED1_PIN +#define OPENWSN_LEDPIN_RADIO LED3_PIN +#define OPENWSN_LEDPIN_DEBUG LED2_PIN +/** @} */ + +/** + * @name OpenWSN debugpins configuration + * + * @note This configuration mimics the one done in OpenWSN-fw for the + * same platform + * @{ + */ +#define OPENWSN_DEBUGPIN_FRAME GPIO_PIN(0, 7) /* A7 */ +#define OPENWSN_DEBUGPIN_ISR GPIO_PIN(2, 3) /* C3 */ +#define OPENWSN_DEBUGPIN_SLOT GPIO_PIN(1, 3) /* B3 */ +#define OPENWSN_DEBUGPIN_FSM GPIO_PIN(1, 2) /* B2 */ +#define OPENWSN_DEBUGPIN_TASK GPIO_PIN(1, 1) /* B1 */ +#define OPENWSN_DEBUGPIN_RADIO GPIO_PIN(1, 0) /* B0 */ + /** * @name AT86RF215 configuration * @{