diff options
| author | ZYH <[email protected]> | 2019-06-26 11:59:26 +0800 |
|---|---|---|
| committer | ZYH <[email protected]> | 2019-06-26 14:32:30 +0800 |
| commit | 8fd800fea3316a29be6f48012d97719e91db7ef1 (patch) | |
| tree | c61bd341b9ccd35fe58dc315b19f7e68cd8ffa35 | |
| parent | c574c49b2fe81ad2ee6f4ba7f3f61c978bea0497 (diff) | |
[bsp][stm32] fix mdk simulator
| -rw-r--r-- | bsp/stm32/libraries/HAL_Drivers/drv_common.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_common.c b/bsp/stm32/libraries/HAL_Drivers/drv_common.c index 4102815bb2..a58bac3991 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_common.c +++ b/bsp/stm32/libraries/HAL_Drivers/drv_common.c @@ -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 */ |
