Add missing interrupt enable

pull/161/head
bcostm 2014-02-04 13:03:00 +01:00
parent 4ad143ae95
commit 01fc443ef8
3 changed files with 3 additions and 0 deletions

View File

@ -141,6 +141,7 @@ void us_ticker_set_interrupt(unsigned int timestamp) {
TIM_SetCompare1(TIM_MST, us_ticker_int_remainder); TIM_SetCompare1(TIM_MST, us_ticker_int_remainder);
us_ticker_int_remainder = 0; us_ticker_int_remainder = 0;
} }
TIM_ITConfig(TIM_MST, TIM_IT_CC1, ENABLE);
} }
} }

View File

@ -141,6 +141,7 @@ void us_ticker_set_interrupt(unsigned int timestamp) {
TIM_SetCompare1(TIM_MST, us_ticker_int_remainder); TIM_SetCompare1(TIM_MST, us_ticker_int_remainder);
us_ticker_int_remainder = 0; us_ticker_int_remainder = 0;
} }
TIM_ITConfig(TIM_MST, TIM_IT_CC1, ENABLE);
} }
} }

View File

@ -132,6 +132,7 @@ void us_ticker_set_interrupt(unsigned int timestamp) {
TIM_SetCompare1(TIM_MST, us_ticker_int_remainder); TIM_SetCompare1(TIM_MST, us_ticker_int_remainder);
us_ticker_int_remainder = 0; us_ticker_int_remainder = 0;
} }
TIM_ITConfig(TIM_MST, TIM_IT_CC1, ENABLE);
} }
} }