target/linux/at91/image/dfboot/src/include/lib_AT91RM9200.h
//*----------------------------------------------------------------------------
//* \fn    AT91F_US_Close
//* \brief Close USART: disable IT disable receiver and transmitter, close PDC
//*----------------------------------------------------------------------------
\fn    AT91F_US_Close
\brief Close USART: disable IT disable receiver and transmitter, close PDC
\ fn AT91F_US_Close \ brief Close USART : disable IT disable receiver and transmitter close PDC
static inline void AT91F_US_Close (
	AT91PS_USART pUSART)     
{
    pUSART->US_BRGR = 0 ;
    pUSART->US_MR = 0  ;
    pUSART->US_TTGR = 0;
    pUSART->US_IDR = 0xFFFFFFFF ;
    AT91F_PDC_Close((AT91PS_PDC) &(pUSART->US_RPR));
    pUSART->US_CR = AT91C_US_TXDIS | AT91C_US_RXDIS | AT91C_US_RSTTX | AT91C_US_RSTRX ;
}
static inline void AT91F_US_Close ( AT91PS_USART pUSART ) { pUSART -> US_BRGR = 0 ; pUSART -> US_MR = 0 ; pUSART -> US_TTGR = 0 ; pUSART -> US_IDR = 0xFFFFFFFF ; AT91F_PDC_Close ( ( AT91PS_PDC ) & ( pUSART -> US_RPR ) ) ; pUSART -> US_CR = AT91C_US_TXDIS | AT91C_US_RXDIS | AT91C_US_RSTTX | AT91C_US_RSTRX ; }
\fn    AT91F_US_Close
\brief Close USART: disable IT disable receiver and transmitter, close PDC
\ fn AT91F_US_Close \ brief Close USART : disable IT disable receiver and transmitter close PDC
// \arg pointer to a USART controller //* Reset the baud rate divisor register //* Reset the USART mode //* Reset the Timeguard Register //* Disable all interrupts //* Abort the Peripheral Data Transfers //* Disable receiver and transmitter and stop any activity immediately