summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/systick.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/systick.c')
-rw-r--r--stmhal/systick.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/stmhal/systick.c b/stmhal/systick.c
index 55c22dab01..eda39c7888 100644
--- a/stmhal/systick.c
+++ b/stmhal/systick.c
@@ -5,16 +5,10 @@
void sys_tick_init(void) {
// SysTick_Config is now called from HAL_RCC_ClockConfig, which is called
// from SystemClock_Config
- HAL_NVIC_SetPriority(SysTick_IRQn, 0, 0); // make it highest priority
-}
-// called on SysTick interrupt
-void SysTick_Handler(void) {
- HAL_IncTick();
- HAL_SYSTICK_IRQHandler();
- // hack!
- //void audio_drain(void);
- //audio_drain();
+ // SysTick_Config 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);
}
void sys_tick_delay_ms(uint32_t delay_ms) {