8.4.6.8.2 Deactivation Procedure
The QSPI deactivation procedure is as follows.
- Wait for QSPI_SR.RBUSY=0 and QSPI_SR.HIDLE=1.
- Send a QSPI_CR.LASTXFER command.
- Wait for QSPI_ISR.CSRA=1.
- Set QSPI_CR.QSPIDIS and wait for QSPI_SR.QSPIENS=0.
- Disable the GCLK clock.
- Disable the peripheral clock.