/* This handler function must be called by the AC97C interrupt service routine. Identifies which event was activated and calls the associated function.  */
void AC97C_Handler(void)
/* This handler function must be called by the AC97C interrupt service routine. Identifies which event was activated and calls the associated function.  */
void AC97C_Handler(void)
{
    unsigned int status;
    status = AT91C_BASE_AC97C->AC97C_SR;
    status &= AT91C_BASE_AC97C->AC97C_IMR;
    if ((status & AT91C_AC97C_COEVT) != 0) {
        CodecHandler();    
    }
    if ((status & AT91C_AC97C_CAEVT) != 0) {
        ChannelAHandler();  
    }
}