mbed library sources
Fork of mbed-src by
Diff: targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/us_ticker.c
- Revision:
- 96:c359415e941f
- Parent:
- 94:6519f69185ce
- Child:
- 100:0412b5443284
--- a/targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/us_ticker.c Tue Feb 18 14:15:05 2014 +0000 +++ b/targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/us_ticker.c Tue Feb 18 15:45:07 2014 +0000 @@ -40,8 +40,8 @@ static int us_ticker_inited = 0; static volatile uint32_t SlaveCounter = 0; -static uint32_t oc_int_part = 0; -static uint16_t oc_rem_part = 0; +static volatile uint32_t oc_int_part = 0; +static volatile uint16_t oc_rem_part = 0; void set_compare(uint16_t count) { // Set new output compare value