/* set the SPI clock status when the MCU enters wait mode. 
The  */
void SPIClkStatusForWaitMode(unsigned long ulBase, unsigned long ulMode)
/* set the SPI clock status when the MCU enters wait mode. 
The  */
void SPIClkStatusForWaitMode(unsigned long ulBase, unsigned long ulMode)
{
    xASSERT((ulBase == SPI0_BASE) || (ulBase == SPI1_BASE));
    xHWREGB(ulBase + SPI_C2) &= ~SPI_C2_SPISWAI;
    if(ulMode == SPI_CLK_STOP)
    {
        xHWREGB(ulBase + SPI_C2) |= SPI_C2_SPISWAI;
    }
}