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/system_stm32f4xx.c | |
parent | 659c19c67c00b156cb6890f926d5cc012d129f24 (diff) | |
download | micropython-ef39f2d9cac6fc50b1bbae9d16da371649dfa6e2.tar.gz micropython-ef39f2d9cac6fc50b1bbae9d16da371649dfa6e2.zip |
Cleanup systick for stmhal
Diffstat (limited to 'stmhal/system_stm32f4xx.c')
-rw-r--r-- | stmhal/system_stm32f4xx.c | 5 |
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);
}
/**
|