mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-28 16:14:20 +08:00
Merge pull request #2812 from lymzzyh/stm32simulator
[bsp][stm32] fix mdk simulator
This commit is contained in:
@@ -125,8 +125,13 @@ RT_WEAK void rt_hw_board_init()
|
|||||||
/* HAL_Init() function is called at the beginning of the program */
|
/* HAL_Init() function is called at the beginning of the program */
|
||||||
HAL_Init();
|
HAL_Init();
|
||||||
|
|
||||||
|
/* enable interrupt */
|
||||||
|
__set_PRIMASK(0);
|
||||||
/* System clock initialization */
|
/* System clock initialization */
|
||||||
SystemClock_Config();
|
SystemClock_Config();
|
||||||
|
/* disbale interrupt */
|
||||||
|
__set_PRIMASK(1);
|
||||||
|
|
||||||
rt_hw_systick_init();
|
rt_hw_systick_init();
|
||||||
|
|
||||||
/* Heap initialization */
|
/* Heap initialization */
|
||||||
|
|||||||
Reference in New Issue
Block a user