[FIX] Populate the STK_CTRL to STK_CSR change
This commit is contained in:
committed by
Piotr Esden-Tempski
parent
9338034eea
commit
80ba923da1
@@ -268,7 +268,7 @@ static void hid_set_config(usbd_device *dev, uint16_t wValue)
|
||||
dfu_control_request);
|
||||
#endif
|
||||
|
||||
systick_set_clocksource(STK_CTRL_CLKSOURCE_AHB_DIV8);
|
||||
systick_set_clocksource(STK_CSR_CLKSOURCE_AHB_DIV8);
|
||||
/* SysTick interrupt every N clock pulses: set reload to N-1 */
|
||||
systick_set_reload(99999);
|
||||
systick_interrupt_enable();
|
||||
|
||||
Reference in New Issue
Block a user