Skip to content

Commit b1fc971

Browse files
author
pchiacha
authored
reconfigure systick interrupt
interrupts every 50us instead of 100us
1 parent 9446948 commit b1fc971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tekdaqc_Libraries_Firmware/src/Tekdaqc_Timers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void Timer_Config(void) {
9090

9191
/* SystTick configuration: an interrupt every 1ms */
9292
RCC_GetClocksFreq(&RCC_Clocks);
93-
SysTick_Config(RCC_Clocks.HCLK_Frequency / SYSTEMTICK_DIVIDER);
93+
SysTick_Config(RCC_Clocks.HCLK_Frequency / (1000000/50)); //50us
9494

9595
/* Set Systick interrupt priority to 0*/
9696
NVIC_SetPriority(SysTick_IRQn, 0U);

0 commit comments

Comments
 (0)