Fix the STK_CTRL to the STK_CSR library change.

This commit is contained in:
Frantisek Burian 2014-02-13 17:52:09 +01:00
parent e5624a7e6d
commit 690e99c6b2
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ int main(void)
stlink_set_rev();
systick_set_clocksource(STK_CTRL_CLKSOURCE_AHB_DIV8);
systick_set_clocksource(STK_CSR_CLKSOURCE_AHB_DIV8);
systick_set_reload(900000);
dfu_protect(UPD_MODE);

View File

@ -38,7 +38,7 @@ static int stlink_test_nrst(void)
uint16_t pin;
uint32_t systick_value;
systick_set_clocksource(STK_CTRL_CLKSOURCE_AHB_DIV8);
systick_set_clocksource(STK_CSR_CLKSOURCE_AHB_DIV8);
systick_set_reload(0xffffff); /* no underflow for about 16.7 seconds*/
systick_counter_enable();
/* systick ist now running with 1 MHz, systick counts down */