From 73256b9ab2fb654040731778c352eb3f346f5b47 Mon Sep 17 00:00:00 2001 From: Mike Szczys Date: Sun, 17 Jun 2012 13:28:59 -0500 Subject: [PATCH] Removed erroeous TIM2 settings from blink example --- src/main.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main.c b/src/main.c index ede5792..80d4ddf 100755 --- a/src/main.c +++ b/src/main.c @@ -22,12 +22,6 @@ int main(void) SysTick_Config(SystemCoreClock/100); - TIM2->PSC = 0x0; // no prescaler, timer counts up in sync with the peripheral clock - TIM2->DIER |= TIM_DIER_UIE; // enable update interrupt - TIM2->ARR = 0x01; // count to 1 (autoreload value 1) - TIM2->CR1 |= TIM_CR1_ARPE | TIM_CR1_CEN; // autoreload on, counter enabled - TIM2->EGR = 1; // trigger update event to reload timer registers - while(1); }