mirror of https://github.com/ARMmbed/mbed-os.git
Add BSP initialization hook to system initialization code
parent
decc6d335f
commit
ecaa5fe793
|
@ -139,6 +139,21 @@ const uint8_t D1CorePrescTable[16] = {0, 0, 0, 0, 1, 2, 3, 4, 1, 2, 3, 4, 6, 7,
|
|||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* @brief Setup the target board-specific configuration
|
||||
* of the microcontroller
|
||||
*
|
||||
* @note If used, this function should be implemented
|
||||
* elsewhere. This declaration is weak so it may be overridden
|
||||
* by user code.
|
||||
*
|
||||
* @param None
|
||||
* @retval None
|
||||
*/
|
||||
__weak void TargetBSP_Init(void) {
|
||||
/** Do nothing */
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Setup the microcontroller system
|
||||
* Initialize the FPU setting and vector table location
|
||||
|
@ -217,6 +232,9 @@ void SystemInit(void)
|
|||
|
||||
#endif /* CORE_CM7*/
|
||||
|
||||
/* BSP initialization hook (external RAM, etc) */
|
||||
TargetBSP_Init();
|
||||
|
||||
#ifdef CORE_CM4
|
||||
|
||||
/* Configure the Vector Table location add offset address ------------------*/
|
||||
|
|
Loading…
Reference in New Issue