mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/esp32: change order of board and periph init
To be able to access periphals to initialize board specific hardware, the board_init function has to be called after periph_init.
This commit is contained in:
parent
624c6f24ca
commit
3208207ec5
@ -314,9 +314,6 @@ static NORETURN void IRAM system_init (void)
|
||||
LOG_STARTUP("Heap free: %u bytes\n", get_free_heap_size());
|
||||
uart_tx_wait_idle(CONFIG_CONSOLE_UART_NUM);
|
||||
|
||||
/* initialize the board */
|
||||
board_init();
|
||||
|
||||
/* initialize stdio */
|
||||
stdio_init();
|
||||
|
||||
@ -341,6 +338,9 @@ static NORETURN void IRAM system_init (void)
|
||||
spi_flash_drive_init();
|
||||
#endif
|
||||
|
||||
/* initialize the board */
|
||||
board_init();
|
||||
|
||||
/* route a software interrupt source to CPU as trigger for thread yields */
|
||||
intr_matrix_set(PRO_CPU_NUM, ETS_FROM_CPU_INTR0_SOURCE, CPU_INUM_SOFTWARE);
|
||||
/* set thread yield handler and enable the software interrupt */
|
||||
|
Loading…
Reference in New Issue
Block a user