Skip to content

Commit 572a096

Browse files
committed
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.
1 parent 7bcabf7 commit 572a096

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

targets/TARGET_STM/us_ticker_16b.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ void us_ticker_init(void)
4949

5050
uint32_t us_ticker_read()
5151
{
52-
TimMasterHandle.Instance = TIM_MST;
53-
5452
if (!us_ticker_inited) us_ticker_init();
5553

5654
uint16_t cntH_old, cntH, cntL;

0 commit comments

Comments
 (0)