Enabled SysTick interrupt, fixed LED toggle bug

This commit is contained in:
dooku
2021-06-09 12:10:51 +02:00
parent 7e48b82c9d
commit a3bfe95c57
5 changed files with 24 additions and 5 deletions

View File

@@ -223,6 +223,7 @@ __STATIC_INLINE void LL_InitTick(uint32_t HCLKFrequency, uint32_t Ticks)
SysTick->LOAD = (uint32_t)((HCLKFrequency / Ticks) - 1UL); /* set reload register */
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk |
SysTick_CTRL_TICKINT_Msk |
SysTick_CTRL_ENABLE_Msk; /* Enable the Systick Timer */
}