mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
Diff: targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/us_ticker.c
- Revision:
- 92:05f19f05c134
- Parent:
- 91:0a39e62a0464
- Child:
- 94:6519f69185ce
diff -r 0a39e62a0464 -r 05f19f05c134 targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/us_ticker.c --- a/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/us_ticker.c Thu Feb 13 18:15:05 2014 +0000 +++ b/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/us_ticker.c Mon Feb 17 16:15:17 2014 +0000 @@ -36,7 +36,7 @@ #define TIM_MST_RCC RCC_APB2PeriphClockCmd(RCC_APB2Periph_TIM1, ENABLE) static int us_ticker_inited = 0; -static uint32_t SlaveCounter = 0; +static volatile uint32_t SlaveCounter = 0; static uint32_t oc_int_part = 0; static uint16_t oc_rem_part = 0;