Skip to content

Commit

Permalink
cpu/cortexm_common: skip hw init if RIOTBOOT_MINIMAL is set
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Dec 19, 2024
1 parent 01e6545 commit 0675669
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cpu/cortexm_common/vectors_cortexm.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,14 @@ void reset_handler_default(void)
dbgpin_init();
#endif

#if !IS_ACTIVE(RIOTBOOT_MINIMAL)
/* initialize the CPU */
extern void cpu_init(void);
cpu_init();

/* initialize the board (which also initiates CPU initialization) */
/* initialize the board */
board_init();
#endif

#if MODULE_NEWLIB || MODULE_PICOLIBC
/* initialize std-c library (this must be done after board_init) */
Expand Down

0 comments on commit 0675669

Please sign in to comment.