/* Gets the FIFO level at which DMA requests or interrupts are generated. */
void SPIFIFOLevelGet(unsigned long ulBase, unsigned long *pulTxLevel, unsigned long *pulRxLevel)
/* Gets the FIFO level at which DMA requests or interrupts are generated. */
void SPIFIFOLevelGet(unsigned long ulBase, unsigned long *pulTxLevel, unsigned long *pulRxLevel)
{
  unsigned long ulRegVal;
  ulRegVal = HWREG(ulBase + MCSPI_O_XFERLEVEL);
  *pulTxLevel = (ulRegVal & 0xFF);
  *pulRxLevel = ((ulRegVal >> 8) & 0xFF);
}