Skip to content

Commit

Permalink
fix systick clock source
Browse files Browse the repository at this point in the history
after compatibility with old clocksource was removed in libopencm3 in bfc65271c083ad2cd79e61901a769d8c354d863b
  • Loading branch information
flixr committed Feb 1, 2014
1 parent 3b6a352 commit 26456fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/luftboot.c
Expand Up @@ -483,7 +483,7 @@ int main(void)

gpio_init();

systick_set_clocksource(STK_CTRL_CLKSOURCE_AHB_DIV8);
systick_set_clocksource(STK_CSR_CLKSOURCE_AHB_DIV8);
systick_set_reload(900000);
systick_interrupt_enable();
systick_counter_enable();
Expand Down

0 comments on commit 26456fe

Please sign in to comment.