target/linux/at91/image/dfboot/src/include/lib_AT91RM9200.h
//*----------------------------------------------------------------------------
//* \fn    AT91F_SPI_PutChar
//* \brief Send a character,does not check if ready to send
//*----------------------------------------------------------------------------
\fn    AT91F_SPI_PutChar
\brief Send a character,does not check if ready to send
\ fn AT91F_SPI_PutChar \ brief Send a character does not check if ready to send
static inline void AT91F_SPI_PutChar (
	AT91PS_SPI pSPI,
	unsigned int character,
             unsigned int cs_number )
{
    unsigned int value_for_cs;
    value_for_cs = (~(1 << cs_number)) & 0xF;  
    pSPI->SPI_TDR = (character & 0xFFFF) | (value_for_cs << 16);
}
static inline void AT91F_SPI_PutChar ( AT91PS_SPI pSPI , unsigned int character , unsigned int cs_number ) { unsigned int value_for_cs ; value_for_cs = ( ~ ( 1 << cs_number ) ) & 0xF ; pSPI -> SPI_TDR = ( character & 0xFFFF ) | ( value_for_cs << 16 ) ; }
\fn    AT91F_SPI_PutChar
\brief Send a character,does not check if ready to send
\ fn AT91F_SPI_PutChar \ brief Send a character does not check if ready to send
//Place a zero among a 4 ONEs number