summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/system_stm32f4xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/system_stm32f4xx.c')
-rw-r--r--stmhal/system_stm32f4xx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/stmhal/system_stm32f4xx.c b/stmhal/system_stm32f4xx.c
index 8d806041c1..4e5490db56 100644
--- a/stmhal/system_stm32f4xx.c
+++ b/stmhal/system_stm32f4xx.c
@@ -316,6 +316,11 @@ void SystemClock_Config(void)
{
__fatal_error("HAL_RCC_ClockConfig");
}
+
+ // SysTick_Config (called from HL_RCC_ClockConfig) sets the SysTick_IRQn to
+ // be the lowest priority, but we want it to be the highest priority, so fix
+ // things here.
+ HAL_NVIC_SetPriority(SysTick_IRQn, 0, 0);
}
/**