4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-20 20:17:29 +08:00

[update] Configure the lowest priority of STM32 systick interrupts | 配置STM32 systick中断优先级为系统最低.

This commit is contained in:
流光 2020-06-04 10:19:22 +08:00
parent 0a5d7d60eb
commit 6ba3767949

View File

@ -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);
}
/**