Merge pull request #2812 from lymzzyh/stm32simulator

[bsp][stm32] fix mdk simulator
This commit is contained in:
Bernard Xiong 2019-06-26 18:34:29 +08:00 committed by GitHub
commit ef6a4aee91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -125,8 +125,13 @@ RT_WEAK void rt_hw_board_init()
/* HAL_Init() function is called at the beginning of the program */
HAL_Init();
/* enable interrupt */
__set_PRIMASK(0);
/* System clock initialization */
SystemClock_Config();
/* disbale interrupt */
__set_PRIMASK(1);
rt_hw_systick_init();
/* Heap initialization */