mirror of https://github.com/ARMmbed/mbed-os.git
STM32 16 bits tickers: save useless instance init
TimMasterHandle.Instance initialization can be removed from here, because it will either have been already done previously, or it will be done in the us_ticker_init() call immediately below.pull/4424/head
parent
7bcabf7cc0
commit
572a096c08
|
@ -49,8 +49,6 @@ void us_ticker_init(void)
|
||||||
|
|
||||||
uint32_t us_ticker_read()
|
uint32_t us_ticker_read()
|
||||||
{
|
{
|
||||||
TimMasterHandle.Instance = TIM_MST;
|
|
||||||
|
|
||||||
if (!us_ticker_inited) us_ticker_init();
|
if (!us_ticker_inited) us_ticker_init();
|
||||||
|
|
||||||
uint16_t cntH_old, cntH, cntL;
|
uint16_t cntH_old, cntH, cntL;
|
||||||
|
|
Loading…
Reference in New Issue