/* Enable/disable the DIV_ONE feature of the specified SPI port. 
When this fuction is enabled, both the REORDER field and the VARCLK_EN field must be configured as 0. In other words, the byte-reorder function, byte suspend function and variable clock function must be disable. */
void SPIDivOneFunction(unsigned long ulBase, xtBoolean xtEnable)
/* Enable/disable the DIV_ONE feature of the specified SPI port. 
When this fuction is enabled, both the REORDER field and the VARCLK_EN field must be configured as 0. In other words, the byte-reorder function, byte suspend function and variable clock function must be disable. */
void SPIDivOneFunction(unsigned long ulBase, xtBoolean xtEnable)
{
    xASSERT(ulBase == SPI0_BASE);
    if (xtEnable)
    {
        xHWREG(ulBase + SPI_CNTRL2) |= SPI_CNTRL2_DIV_ONE;
        xHWREG(ulBase + SPI_CNTRL) &= ~SPI_CNTRL_VARCLK_EN; 
        xHWREG(ulBase + SPI_CNTRL) &= (~SPI_CNTRL_REORDER_M);
    }
    else
    {
        xHWREG(ulBase + SPI_CNTRL2) &= ~SPI_CNTRL2_DIV_ONE;
    }
}