Hello,
I'm working on an application in which I have to dynamically switch between a TWI master peripheral and SPI master peripheral that use the same peripheral ID (our application requires this, since we need the extra buses). Is there a way to check whether a peripheral has been previously initialized or not? I have found that simply disabling a peripheral that is not currently initialized leads to subtle, tricky issues that cause the SPI drivers to crash, so I would very much like to know if there is a way to check if a peripheral has been initialized. If not, I can set up a series of flags/locks to do it myself, but it would be nice if there was a default implementation.
Thank you,
- Charles