tests/leds: initialize led0 by default
fix unexpected behavior: reference #9949 reference #10294 fix redefinition for AUTO_INIT_LED0
This commit is contained in:
parent
3e7b3d380d
commit
d606c11d11
@ -63,7 +63,9 @@ extern "C" {
|
|||||||
#define LED2_TOGGLE (GPIOB->ODR ^= LED2_MASK)
|
#define LED2_TOGGLE (GPIOB->ODR ^= LED2_MASK)
|
||||||
|
|
||||||
/* the Nucleo144 boards always use LED0, as there is no dual use of its pin */
|
/* the Nucleo144 boards always use LED0, as there is no dual use of its pin */
|
||||||
|
#ifndef AUTO_INIT_LED0
|
||||||
#define AUTO_INIT_LED0
|
#define AUTO_INIT_LED0
|
||||||
|
#endif
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -1,3 +1,6 @@
|
|||||||
include ../Makefile.tests_common
|
include ../Makefile.tests_common
|
||||||
|
|
||||||
|
# Some boards do not initialize LED0 by default
|
||||||
|
CFLAGS=-DAUTO_INIT_LED0
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user