mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
Refine systick config
This commit is contained in:
1 parent
b7151de126
commit
d70cc8f59a
1 file changed
+3
-2
@@ -20,8 +20,9 @@
|
||||
static uint32_t gTickMultiplier;
|
||||
void SYSTICK_Init(void)
|
||||
{
|
||||
SysTick_Config(480000);
|
||||
gTickMultiplier = 48;
|
||||
SysTick_Config(SystemCoreClock / 100); // 10 ms (1/100 sec) systick interrupt
|
||||
gTickMultiplier = SystemCoreClock / 1000000;
|
||||
|
||||
NVIC_SetPriority(SysTick_IRQn, 0);
|
||||
}
|
||||
void SYSTICK_DelayUs(uint32_t Delay)
|
||||
|
||||
Reference in new issue
Block a user