/* Waits until one frame is received on a SSC peripheral, and returns it.  */
unsigned int SSC_Read(AT91S_SSC *ssc)
/* Waits until one frame is received on a SSC peripheral, and returns it.  */
unsigned int SSC_Read(AT91S_SSC *ssc)
{
    while ((ssc->SSC_SR & AT91C_SSC_RXRDY) == 0);
    return ssc->SSC_RHR;
}