diff options
author | Clyne <clyne@bitgloo.com> | 2024-06-11 17:03:55 -0400 |
---|---|---|
committer | Clyne <clyne@bitgloo.com> | 2024-06-11 17:03:55 -0400 |
commit | 22c065042040f0901c6bf1ff33d1c056141afde6 (patch) | |
tree | cc95150ce8536a1cd84bd80857bd06ac1a13d8d5 /board.c | |
parent | 6463ae4174d093f3eac4dfc28e234d105484ed0f (diff) | |
parent | 67bdf76f1942eb210a52e5f0a96d92ed3238f456 (diff) |
Merge pull request 'pcb-bringup' (#1) from pcb-bringup into main
Reviewed-on: https://code.bitgloo.com/clyne/noisecard/pulls/1
Diffstat (limited to 'board.c')
-rw-r--r-- | board.c | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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)); } |