/* Sends one data frame through a SSC peripheral. If another frame is currently being sent, this function waits for the previous transfer to complete.  */
void SSC_Write(AT91S_SSC *ssc, unsigned int frame)
/* Sends one data frame through a SSC peripheral. If another frame is currently being sent, this function waits for the previous transfer to complete.  */
void SSC_Write(AT91S_SSC *ssc, unsigned int frame)
{
    while ((ssc->SSC_SR & AT91C_SSC_TXRDY) == 0);
    ssc->SSC_THR = frame;
}