aboutsummaryrefslogtreecommitdiffstats
path: root/board.c
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2024-06-10 15:21:47 -0400
committerClyne Sullivan <clyne@bitgloo.com>2024-06-10 15:21:47 -0400
commit8745f7c29470ec2267eb5b90e4644499200bafd3 (patch)
treeb8bca4b739b79d8838c4b7518e2019323abc0ed2 /board.c
parente941048b066dc167ee870545d99532a8d1815e89 (diff)
move io config to board.c
Diffstat (limited to 'board.c')
-rw-r--r--board.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/board.c b/board.c
index 3e81227..3ec4581 100644
--- a/board.c
+++ b/board.c
@@ -40,6 +40,21 @@ void __early_init(void) {
* @note Add your board-specific code, if any.
*/
void boardInit(void) {
- //palSetLineMode(LINE_LED_GREEN, PAL_MODE_OUTPUT_PUSHPULL);
+ palSetLineMode(LINE_LED0, PAL_MODE_OUTPUT_PUSHPULL); palSetLine(LINE_LED0);
+ palSetLineMode(LINE_LED1, PAL_MODE_OUTPUT_PUSHPULL); palSetLine(LINE_LED1);
+ palSetLineMode(LINE_LED2, PAL_MODE_OUTPUT_PUSHPULL); palSetLine(LINE_LED2);
+ palSetLineMode(LINE_LED3, PAL_MODE_OUTPUT_PUSHPULL); palSetLine(LINE_LED3);
+ palSetLineMode(LINE_LED4, PAL_MODE_OUTPUT_PUSHPULL); palSetLine(LINE_LED4);
+ palSetLineMode(LINE_LED5, PAL_MODE_OUTPUT_PUSHPULL); palSetLine(LINE_LED5);
+ palSetLineMode(LINE_LED6, PAL_MODE_OUTPUT_PUSHPULL); palSetLine(LINE_LED6);
+ palSetLineMode(LINE_LED7, PAL_MODE_OUTPUT_PUSHPULL); palSetLine(LINE_LED7);
+ palSetLineMode(LINE_LED8, PAL_MODE_OUTPUT_PUSHPULL); palSetLine(LINE_LED8);
+ palSetLineMode(LINE_LED9, PAL_MODE_OUTPUT_PUSHPULL); palSetLine(LINE_LED9);
+
+ palSetLineMode(LINE_TP1, PAL_MODE_OUTPUT_PUSHPULL); palClearLine(LINE_TP1);
+
+ palSetLineMode(LINE_I2S_SD, PAL_MODE_ALTERNATE(0));
+ palSetLineMode(LINE_I2S_WS, PAL_MODE_ALTERNATE(0));
+ palSetLineMode(LINE_I2S_CK, PAL_MODE_ALTERNATE(0));
}