Skip to content

Commit a68720f

Browse files
committed
fw/main: run board_early_init earlier only for SF32LB52
This is really an ugly workaround, but Asterix did actually break due to the previous change. This all needs a serious cleanup. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
1 parent f301ae3 commit a68720f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/fw/main.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ static void dump_gpio_configuration_state(void) {
173173
#endif /* DUMP_GPIO_CFG_STATE */
174174

175175
int main(void) {
176+
#if defined(MICRO_FAMILY_SF32LB52)
176177
board_early_init();
178+
#endif
177179

178180
gpio_init_all();
179181

@@ -407,6 +409,10 @@ static NOINLINE void prv_main_task_init(void) {
407409

408410
memory_layout_setup_mpu();
409411

412+
#if !defined(MICRO_FAMILY_SF32LB52)
413+
board_early_init();
414+
#endif
415+
410416
display_show_splash_screen();
411417

412418
kernel_applib_init();

0 commit comments

Comments
 (0)