update lib to latest, and fix for changes
rcc_core_frequency -> rcc_ahb_frequency
This commit is contained in:
@@ -37,7 +37,7 @@ static void systick_setup(int freq)
|
|||||||
/* clear counter so it starts right away */
|
/* clear counter so it starts right away */
|
||||||
STK_CVR = 0;
|
STK_CVR = 0;
|
||||||
|
|
||||||
systick_set_reload(rcc_core_frequency / freq);
|
systick_set_reload(rcc_ahb_frequency / freq);
|
||||||
systick_counter_enable();
|
systick_counter_enable();
|
||||||
systick_interrupt_enable();
|
systick_interrupt_enable();
|
||||||
}
|
}
|
||||||
|
|||||||
Submodule libopencm3 updated: 99f83eedcd...3974e5f48d
Reference in New Issue
Block a user