mirror of https://github.com/ARMmbed/mbed-os.git
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.pull/7552/head
parent
52cbc33d44
commit
87496df078
|
@ -79,6 +79,7 @@ void lp_ticker_free(void)
|
||||||
GIC_ClearPendingIRQ(LP_TICKER_TIMER_IRQn);
|
GIC_ClearPendingIRQ(LP_TICKER_TIMER_IRQn);
|
||||||
|
|
||||||
MTU2TIER &= ~MTU2_TIER_n_TGIEA;
|
MTU2TIER &= ~MTU2_TIER_n_TGIEA;
|
||||||
|
lp_ticker_inited = 0;
|
||||||
mtu2_free();
|
mtu2_free();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue