mirror of https://github.com/ARMmbed/mbed-os.git
Declare and call low_level_init funtion
parent
3969d85feb
commit
04ae15a154
|
@ -171,6 +171,10 @@ __weak int PreInit(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* Override this function for early platform initialization
|
||||
*/
|
||||
__weak void low_level_init(void) {}
|
||||
|
||||
/* This function is called just before control is transferred to main().
|
||||
*/
|
||||
void SystemInit(void)
|
||||
|
@ -258,6 +262,9 @@ void SystemInit(void)
|
|||
__ISB();
|
||||
#endif
|
||||
|
||||
/* Early platform initialization */
|
||||
low_level_init();
|
||||
|
||||
/* Perform an initial trim of the internal ring oscillator */
|
||||
CLKMAN_TrimRO();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue