diff --git a/tests/blink-blue.c b/tests/blink-blue.c index 8529243b7..a5b0165c6 100644 --- a/tests/blink-blue.c +++ b/tests/blink-blue.c @@ -3,9 +3,8 @@ #define DELAY 400000 -#define LED_BITS LED_RED +#define LED_BITS LED_BLUE -__attribute__ ((section ("startup"))) void main(void) { volatile uint32_t i; diff --git a/tests/blink-green.c b/tests/blink-green.c index 8529243b7..01872ae89 100644 --- a/tests/blink-green.c +++ b/tests/blink-green.c @@ -3,9 +3,8 @@ #define DELAY 400000 -#define LED_BITS LED_RED +#define LED_BITS LED_GREEN -__attribute__ ((section ("startup"))) void main(void) { volatile uint32_t i; diff --git a/tests/blink-red.c b/tests/blink-red.c index 8529243b7..8070614af 100644 --- a/tests/blink-red.c +++ b/tests/blink-red.c @@ -5,7 +5,6 @@ #define LED_BITS LED_RED -__attribute__ ((section ("startup"))) void main(void) { volatile uint32_t i; diff --git a/tests/blink-white.c b/tests/blink-white.c index 8529243b7..f1d40adf3 100644 --- a/tests/blink-white.c +++ b/tests/blink-white.c @@ -3,9 +3,8 @@ #define DELAY 400000 -#define LED_BITS LED_RED +#define LED_BITS LED_WHITE -__attribute__ ((section ("startup"))) void main(void) { volatile uint32_t i; diff --git a/tests/led.h b/tests/led.h new file mode 100644 index 000000000..8e674b0a7 --- /dev/null +++ b/tests/led.h @@ -0,0 +1,9 @@ +#ifndef LED_H +#define LED_H + +#define LED_YELLOW (LED_RED | LED_GREEN ) +#define LED_PURPLE (LED_RED | LED_BLUE) +#define LED_CYAN ( LED_GREEN | LED_BLUE) +#define LED_WHITE (LED_RED | LED_GREEN | LED_BLUE) + +#endif