Skip to content

Commit 527ba04

Browse files
committed
stm32/system_stm32: Reconfigure SysTick IRQ priority for L4 MCUs.
After calling HAL_SYSTICK_Config the SysTick IRQ priority is set to 15, the lowest priority. This commit reconfigures the IRQ priority to the desired TICK_INT_PRIORITY value.
1 parent 4ed5865 commit 527ba04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ports/stm32/system_stm32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,8 @@ void SystemClock_Config(void)
598598
HAL_PWREx_ControlVoltageScaling(PWR_REGULATOR_VOLTAGE_SCALE1);
599599

600600
HAL_SYSTICK_Config(HAL_RCC_GetHCLKFreq()/1000);
601-
602601
HAL_SYSTICK_CLKSourceConfig(SYSTICK_CLKSOURCE_HCLK);
602+
HAL_NVIC_SetPriority(SysTick_IRQn, TICK_INT_PRIORITY, 0);
603603
#endif
604604
}
605605

0 commit comments

Comments
 (0)