mirror of https://github.com/ARMmbed/mbed-os.git
fix us_ticker issue for Nucleo boards
parent
3136fcc15c
commit
b87dac9fce
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
static TIM_HandleTypeDef TimMasterHandle;
|
||||
|
||||
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;
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
#define TIM_MST_RCC RCC_APB2PeriphClockCmd(RCC_APB2Periph_TIM9, 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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue