diff --git a/boards/common/nucleo144/include/board.h b/boards/common/nucleo144/include/board.h index 7ef17a98d5..a6dd258819 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 24bb481657..1db6fdba23 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