Matrix: Systick, please
This commit is contained in:
parent
de5465a0fa
commit
de8f60e79a
1 changed files with 4 additions and 0 deletions
|
@ -67,6 +67,10 @@ int main(void)
|
|||
rcc_periph_clock_enable(RCC_GPIOB);
|
||||
rcc_periph_clock_enable(RCC_GPIOC);
|
||||
|
||||
systick_set_clocksource(STK_CSR_CLKSOURCE_AHB);
|
||||
systick_set_reload(71999);
|
||||
systick_counter_enable();
|
||||
|
||||
// PC13 = BluePill LED
|
||||
gpio_set_mode(GPIOC, GPIO_MODE_OUTPUT_50_MHZ, GPIO_CNF_OUTPUT_PUSHPULL, GPIO13);
|
||||
|
||||
|
|
Loading…
Reference in a new issue