[FIX] Populate the STK_CTRL to STK_CSR change

This commit is contained in:
Frantisek Burian
2014-01-02 23:04:23 +01:00
committed by Piotr Esden-Tempski
parent 9338034eea
commit 80ba923da1
12 changed files with 12 additions and 12 deletions

View File

@@ -59,7 +59,7 @@ int main(void)
temp32 = 0;
/* 72MHz / 8 => 9000000 counts per second */
systick_set_clocksource(STK_CTRL_CLKSOURCE_AHB_DIV8);
systick_set_clocksource(STK_CSR_CLKSOURCE_AHB_DIV8);
/* 9000000/9000 = 1000 overflows per second - every 1ms one interrupt */
/* SysTick interrupt every N clock pulses: set reload to N-1 */