Skip to content

Commit 04ae15a

Browse files
Keyur HariyaKeyur Hariya
authored andcommitted
Declare and call low_level_init funtion
1 parent 3969d85 commit 04ae15a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

targets/TARGET_Maxim/TARGET_MAX32625/device/system_max32625.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ __weak int PreInit(void)
171171
return 0;
172172
}
173173

174+
/* Override this function for early platform initialization
175+
*/
176+
__weak void low_level_init(void) {}
177+
174178
/* This function is called just before control is transferred to main().
175179
*/
176180
void SystemInit(void)
@@ -258,6 +262,9 @@ void SystemInit(void)
258262
__ISB();
259263
#endif
260264

265+
/* Early platform initialization */
266+
low_level_init();
267+
261268
/* Perform an initial trim of the internal ring oscillator */
262269
CLKMAN_TrimRO();
263270
}

0 commit comments

Comments
 (0)