Skip to content

Commit

Permalink
cpu/cortexm_common: add option to skip hardware init
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Dec 20, 2024
1 parent 7e25fce commit 987403c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cpu/cortexm_common/vectors_cortexm.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,15 @@ void reset_handler_default(void)
dbgpin_init();
#endif

#ifndef DISABLE_CPU_INIT
/* initialize the CPU */
extern void cpu_init(void);
cpu_init();

/* initialize the board (which also initiates CPU initialization) */
#endif
#ifndef DISABLE_BOARD_INIT
/* 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 987403c

Please sign in to comment.