diff --git a/libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/us_ticker.c b/libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/us_ticker.c index ce89e65754..7b33e2edd0 100644 --- a/libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/us_ticker.c +++ b/libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/us_ticker.c @@ -141,6 +141,7 @@ void us_ticker_set_interrupt(unsigned int timestamp) { TIM_SetCompare1(TIM_MST, us_ticker_int_remainder); us_ticker_int_remainder = 0; } + TIM_ITConfig(TIM_MST, TIM_IT_CC1, ENABLE); } } diff --git a/libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/us_ticker.c b/libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/us_ticker.c index de9accdeb1..a7f21b40a2 100644 --- a/libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/us_ticker.c +++ b/libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/us_ticker.c @@ -141,6 +141,7 @@ void us_ticker_set_interrupt(unsigned int timestamp) { TIM_SetCompare1(TIM_MST, us_ticker_int_remainder); us_ticker_int_remainder = 0; } + TIM_ITConfig(TIM_MST, TIM_IT_CC1, ENABLE); } } diff --git a/libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_L152RE/us_ticker.c b/libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_L152RE/us_ticker.c index 99d043b369..9cb17c8c88 100644 --- a/libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_L152RE/us_ticker.c +++ b/libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_L152RE/us_ticker.c @@ -132,6 +132,7 @@ void us_ticker_set_interrupt(unsigned int timestamp) { TIM_SetCompare1(TIM_MST, us_ticker_int_remainder); us_ticker_int_remainder = 0; } + TIM_ITConfig(TIM_MST, TIM_IT_CC1, ENABLE); } }