Rev 171 | Rev 195 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 171 | Rev 180 | ||
---|---|---|---|
Line 248... | Line 248... | ||
248 | 248 | ||
249 | void TIMER2_Deinit(void) |
249 | void TIMER2_Deinit(void) |
250 | { |
250 | { |
Line -... | Line 251... | ||
- | 251 | GPIO_InitTypeDef GPIO_InitStructure; |
|
- | 252 | ||
251 | GPIO_InitTypeDef GPIO_InitStructure; |
253 | UART1_PutString("\r\n Timer2 deinit..."); |
252 | 254 | ||
253 | VIC_ITCmd(TIM2_ITLine, DISABLE); |
255 | VIC_ITCmd(TIM2_ITLine, DISABLE); |
254 | TIM_CounterCmd(TIM2, TIM_STOP); // stop the timer |
256 | TIM_CounterCmd(TIM2, TIM_STOP); // stop the timer |
255 | TIM_CounterCmd(TIM2, TIM_CLEAR); // stop the timer |
257 | TIM_CounterCmd(TIM2, TIM_CLEAR); // stop the timer |