Skip to content

Commit 87496df

Browse files
committed
Add the clear process of "inited" flag in lp_ticker_free()
I added "lp_ticker_inited = 0" in lp_ticker_free() of lp_ticker.c, so re-initialization will work.
1 parent 52cbc33 commit 87496df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

targets/TARGET_RENESAS/TARGET_RZ_A1XX/lp_ticker.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ void lp_ticker_free(void)
7979
GIC_ClearPendingIRQ(LP_TICKER_TIMER_IRQn);
8080

8181
MTU2TIER &= ~MTU2_TIER_n_TGIEA;
82+
lp_ticker_inited = 0;
8283
mtu2_free();
8384
}
8485

0 commit comments

Comments
 (0)