Declare and call low_level_init funtion

pull/6779/head
Keyur Hariya 2018-05-03 09:50:01 -05:00
parent 3969d85feb
commit 04ae15a154
1 changed files with 7 additions and 0 deletions

View File

@ -171,6 +171,10 @@ __weak int PreInit(void)
return 0; 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(). /* This function is called just before control is transferred to main().
*/ */
void SystemInit(void) void SystemInit(void)
@ -258,6 +262,9 @@ void SystemInit(void)
__ISB(); __ISB();
#endif #endif
/* Early platform initialization */
low_level_init();
/* Perform an initial trim of the internal ring oscillator */ /* Perform an initial trim of the internal ring oscillator */
CLKMAN_TrimRO(); CLKMAN_TrimRO();
} }