/* Enables or disables the receiver of an USART peripheral  */
void USART_SetReceiverEnabled(AT91S_USART *usart, unsigned char enabled)
/* Enables or disables the receiver of an USART peripheral  */
void USART_SetReceiverEnabled(AT91S_USART *usart, unsigned char enabled)
{
    if (enabled) {
        usart->US_CR = AT91C_US_RXEN;
    }
    else {
        usart->US_CR = AT91C_US_RXDIS;
    }
}