Hi,
Deinit functions have a similar structure to each other. First peripheral registers are accessed then then the peripheral clock is "turned off"
If deinitialization is retried a BusFault will be raised for attempting to access a clockless peripheral.
It would be needed for the deinit functions to check beforehand whether the peripheral is already deinitialized, in which case return without doing anything else.
I have something like this in mind:
add CLOCK_IsClockEnabled() to fsl_clock.h:
And then I would use it in deinit functions:
best regards
Max
Hi @mastupristi,
I have suggested your recommendation to the internal SDK team in hopes that they add this feature in the future. Thanks for sharing.
BR,
Edwin.
Hello @mastupristi
Thanks for your sharing. Would you mind tell us which chip do you used? Thanks.
BR
Alice
RT1051 and RT1175