diff options
author | Dave Hylands <dhylands@gmail.com> | 2014-03-13 14:40:49 -0700 |
---|---|---|
committer | Dave Hylands <dhylands@gmail.com> | 2014-03-13 14:40:49 -0700 |
commit | ef39f2d9cac6fc50b1bbae9d16da371649dfa6e2 (patch) | |
tree | cb47404ccb7f10656e60955940924159d9057d99 /stmhal/systick.c | |
parent | 659c19c67c00b156cb6890f926d5cc012d129f24 (diff) | |
download | micropython-ef39f2d9cac6fc50b1bbae9d16da371649dfa6e2.tar.gz micropython-ef39f2d9cac6fc50b1bbae9d16da371649dfa6e2.zip |
Cleanup systick for stmhal
Diffstat (limited to 'stmhal/systick.c')
-rw-r--r-- | stmhal/systick.c | 12 |
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) { |