aboutsummaryrefslogtreecommitdiffstats
path: root/source/board
diff options
context:
space:
mode:
Diffstat (limited to 'source/board')
-rw-r--r--source/board/board_l4.c7
-rw-r--r--source/board/l4/board.h6
2 files changed, 8 insertions, 5 deletions
diff --git a/source/board/board_l4.c b/source/board/board_l4.c
index 31d1d51..55af697 100644
--- a/source/board/board_l4.c
+++ b/source/board/board_l4.c
@@ -277,9 +277,12 @@ bool mmc_lld_is_write_protected(MMCDriver *mmcp) {
* @note You can add your board-specific code here.
*/
void boardInit(void) {
- palSetLineMode(LINE_LED_GREEN, PAL_MODE_OUTPUT_PUSHPULL);
- palSetLineMode(LINE_LED_YELLOW, PAL_MODE_OUTPUT_PUSHPULL);
palSetLineMode(LINE_LED_RED, PAL_MODE_OUTPUT_PUSHPULL);
+ palSetLineMode(LINE_LED_GREEN, PAL_MODE_OUTPUT_PUSHPULL);
+ palSetLineMode(LINE_LED_BLUE, PAL_MODE_OUTPUT_PUSHPULL);
+ palClearLine(LINE_LED_RED);
+ palClearLine(LINE_LED_GREEN);
+ palClearLine(LINE_LED_BLUE);
SCB->CPACR |= 0xF << 20; // Enable FPU
diff --git a/source/board/l4/board.h b/source/board/l4/board.h
index e4dcf03..4b2642a 100644
--- a/source/board/l4/board.h
+++ b/source/board/l4/board.h
@@ -1502,8 +1502,8 @@ extern "C" {
#endif
#endif /* _FROM_ASM_ */
-#define LINE_LED_GREEN PAL_LINE(GPIOC_BASE, 10U)
-#define LINE_LED_YELLOW PAL_LINE(GPIOC_BASE, 11U)
-#define LINE_LED_RED PAL_LINE(GPIOC_BASE, 12U)
+#define LINE_LED_RED PAL_LINE(GPIOC_BASE, 10U)
+#define LINE_LED_GREEN PAL_LINE(GPIOC_BASE, 11U)
+#define LINE_LED_BLUE PAL_LINE(GPIOC_BASE, 12U)
#endif /* BOARD_H */