mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
Diff: targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/us_ticker.c
- Revision:
- 94:6519f69185ce
- Parent:
- 92:05f19f05c134
- Child:
- 96:c359415e941f
diff -r 80910ff1aebe -r 6519f69185ce targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/us_ticker.c --- a/targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/us_ticker.c Tue Feb 18 10:30:06 2014 +0000 +++ b/targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/us_ticker.c Tue Feb 18 11:15:06 2014 +0000 @@ -52,10 +52,10 @@ // Used to increment the slave counter static void tim_update_irq_handler(void) { - SlaveCounter++; if (__HAL_TIM_GET_ITSTATUS(&TimMasterHandle, TIM_IT_UPDATE) == SET) { __HAL_TIM_CLEAR_IT(&TimMasterHandle, TIM_IT_UPDATE); __HAL_TIM_SetCounter(&TimMasterHandle, 0); // Reset counter !!! + SlaveCounter++; } }