summaryrefslogtreecommitdiff
path: root/bsp/stm32
diff options
context:
space:
mode:
author流光 <[email protected]>2020-06-04 10:19:22 +0800
committer流光 <[email protected]>2020-06-04 10:19:22 +0800
commit6ba3767949f0b8089147cc487e7aef41fa94892a (patch)
tree99bac415f2aa5ff8c0c2314577db234512bd7edc /bsp/stm32
parent0a5d7d60eb7ec1d27501ad2934c8a5110e7dbe1c (diff)
[update] Configure the lowest priority of STM32 systick interrupts | 配置STM32 systick中断优先级为系统最低.
Diffstat (limited to 'bsp/stm32')
-rw-r--r--bsp/stm32/libraries/HAL_Drivers/drv_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_common.c b/bsp/stm32/libraries/HAL_Drivers/drv_common.c
index 02e0d82be5..71175647e5 100644
--- a/bsp/stm32/libraries/HAL_Drivers/drv_common.c
+++ b/bsp/stm32/libraries/HAL_Drivers/drv_common.c
@@ -33,7 +33,7 @@ void rt_hw_systick_init(void)
HAL_SYSTICK_Config(HAL_RCC_GetHCLKFreq() / RT_TICK_PER_SECOND);
#endif
HAL_SYSTICK_CLKSourceConfig(SYSTICK_CLKSOURCE_HCLK);
- HAL_NVIC_SetPriority(SysTick_IRQn, 0, 0);
+ NVIC_SetPriority(SysTick_IRQn, 0xFF);
}
/**