diff --git a/boards/common/nucleo144/include/board.h b/boards/common/nucleo144/include/board.h index 7ef17a98d53ab1631425fe86ac2f6e7da4de882d..a6dd258819c7928c1929d73c3a3115e6c3f98ee2 100644 --- a/boards/common/nucleo144/include/board.h +++ b/boards/common/nucleo144/include/board.h @@ -63,7 +63,9 @@ extern "C" { #define LED2_TOGGLE (GPIOB->ODR ^= LED2_MASK) /* the Nucleo144 boards always use LED0, as there is no dual use of its pin */ +#ifndef AUTO_INIT_LED0 #define AUTO_INIT_LED0 +#endif /** @} */ /** diff --git a/tests/leds/Makefile b/tests/leds/Makefile index 24bb48165705d278f92410821837e166ab8f7b67..1db6fdba2306ff4215e08b8feca4dba23d546e5d 100644 --- a/tests/leds/Makefile +++ b/tests/leds/Makefile @@ -1,3 +1,6 @@ include ../Makefile.tests_common +# Some boards do not initialize LED0 by default +CFLAGS=-DAUTO_INIT_LED0 + include $(RIOTBASE)/Makefile.include