target/linux/at91/image/dfboot/src/include/lib_AT91RM9200.h
//*----------------------------------------------------------------------------
//* \fn    AT91F_TWI_Configure
//* \brief Configure TWI in master mode
//*----------------------------------------------------------------------------
\fn    AT91F_TWI_Configure
\brief Configure TWI in master mode
\ fn AT91F_TWI_Configure \ brief Configure TWI in master mode
static inline void AT91F_TWI_Configure ( AT91PS_TWI pTWI )          
{
	pTWI->TWI_IDR = (unsigned int) -1;
	pTWI->TWI_CR = AT91C_TWI_SWRST;
	pTWI->TWI_CR = AT91C_TWI_MSEN | AT91C_TWI_SVDIS;
}
static inline void AT91F_TWI_Configure ( AT91PS_TWI pTWI ) { pTWI -> TWI_IDR = ( unsigned int ) -1 ; pTWI -> TWI_CR = AT91C_TWI_SWRST ; pTWI -> TWI_CR = AT91C_TWI_MSEN | AT91C_TWI_SVDIS ; }
\fn    AT91F_TWI_Configure
\brief Configure TWI in master mode
\ fn AT91F_TWI_Configure \ brief Configure TWI in master mode
// \arg pointer to a TWI controller //* Disable interrupts //* Reset peripheral //* Set Master mode