/* Configure the QSPI peripheral according to the specified parameters in the qspiConfig.  */
void QSPI_Config(QSPI_Config_T *qspiConfig)
/* Configure the QSPI peripheral according to the specified parameters in the qspiConfig.  */
void QSPI_Config(QSPI_Config_T *qspiConfig)
{
    QSPI->CTRL1_B.CPHA = qspiConfig->clockPhase;
    QSPI->CTRL1_B.CPOL = qspiConfig->clockPolarity;
    QSPI->CTRL1_B.FRF = qspiConfig->frameFormat;
    QSPI->CTRL1_B.DFS = qspiConfig->dataFrameSize;;
    QSPI->CTRL1_B.SSTEN = qspiConfig->selectSlaveToggle;
    QSPI->BR = qspiConfig->clockDiv;
}