diff --git a/pkg/openwsn/include/openwsn_debugpins_params.h b/pkg/openwsn/include/openwsn_debugpins_params.h index 5ecc54f5f8..e3df46238e 100644 --- a/pkg/openwsn/include/openwsn_debugpins_params.h +++ b/pkg/openwsn/include/openwsn_debugpins_params.h @@ -22,6 +22,7 @@ #ifndef OPENWSN_DEBUGPINS_PARAMS_H #define OPENWSN_DEBUGPINS_PARAMS_H +#include "board.h" #include "openwsn_debugpins.h" #ifdef __cplusplus diff --git a/pkg/openwsn/include/openwsn_leds_params.h b/pkg/openwsn/include/openwsn_leds_params.h index 918df88095..c4f81dfed5 100644 --- a/pkg/openwsn/include/openwsn_leds_params.h +++ b/pkg/openwsn/include/openwsn_leds_params.h @@ -34,29 +34,37 @@ extern "C" { * @note On Nucleo boards the LED pin is shared with SPI -> don't use it! * @{ */ +#ifndef OPENWSN_LEDPIN_ERROR #if defined (LED0_PIN) && !defined(MODULE_BOARDS_COMMON_NUCLEO) #define OPENWSN_LEDPIN_ERROR LED0_PIN #else #define OPENWSN_LEDPIN_ERROR GPIO_UNDEF #endif +#endif +#ifndef OPENWSN_LEDPIN_SYNC #ifdef LED1_PIN #define OPENWSN_LEDPIN_SYNC LED1_PIN #else #define OPENWSN_LEDPIN_SYNC GPIO_UNDEF #endif +#endif +#ifndef OPENWSN_LEDPIN_RADIO #ifdef LED2_PIN #define OPENWSN_LEDPIN_RADIO LED2_PIN #else #define OPENWSN_LEDPIN_RADIO GPIO_UNDEF #endif +#endif +#ifndef OPENWSN_LEDPIN_DEBUG #ifdef LED3_PIN #define OPENWSN_LEDPIN_DEBUG LED3_PIN #else #define OPENWSN_LEDPIN_DEBUG GPIO_UNDEF #endif +#endif #ifndef OPENWSN_LED_ON_STATE #define OPENWSN_LED_ON_STATE GPIO_LED_LOW