Commit Graph

4 Commits (mbed-os-5.9)

Author SHA1 Message Date
bcostm 9f73ba13e9 stm32 ticker: change th eplace where timer init in done, fix overflow issue with 16-bit timer
- Move back the 16/32bit timer initialization in HAL_InitTick() and not in us_ticker_init()
- Use ticker_read_us() and us_ticker_read() in HAL_GetTick() to fix potential overflow issue with the 16bit timer

==> These corrections allow timer, rtc, sleep, tick tests to PASS
2018-07-15 22:53:45 -05:00
bcostm fcad2a6f0a stm32 ticker: corrections in order to pass tests 2018-07-15 22:53:45 -05:00
bcostm 92fe07f02f stm32 ticker: rename macro and update ST HAL Tick functions
- rename TIM_MST_16BIT in TIM_MST_BIT_WIDTH in order to use it directly in ticker info structure
- change HAL_InitTick() and HAL_GetTick()
2018-07-15 22:53:45 -05:00
bcostm 609ade7130 stm32 ticker: rename files and move functions
- rename hal_tick_common.c in hal_tick_overrides.c
- move 16 and 32bits timer functions in us_ticker.c
2018-07-15 22:53:45 -05:00