Skip to content

Instantly share code, notes, and snippets.

@maknoll
Created January 16, 2014 14:46
Show Gist options
  • Save maknoll/8456095 to your computer and use it in GitHub Desktop.
Save maknoll/8456095 to your computer and use it in GitHub Desktop.
diff --git a/src/luftboot.c b/src/luftboot.c
index d83cd52..730c420 100644
--- a/src/luftboot.c
+++ b/src/luftboot.c
@@ -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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment