target/linux/at91/image/dfboot/src/include/lib_AT91RM9200.h
//*----------------------------------------------------------------------------
//* \fn    AT91F_SPI_CfgPCS
//* \brief Switch to the correct PCS of SPI Mode Register : Fixed Peripheral Selected
//*----------------------------------------------------------------------------
\fn    AT91F_SPI_CfgPCS
\brief Switch to the correct PCS of SPI Mode Register : Fixed Peripheral Selected
\ fn AT91F_SPI_CfgPCS \ brief Switch to the correct PCS of SPI Mode Register : Fixed Peripheral Selected
static inline void AT91F_SPI_CfgPCS (
	AT91PS_SPI pSPI, 
	char PCS_Device) 
{	
	pSPI->SPI_MR &= 0xFFF0FFFF;
	pSPI->SPI_MR |= ( (PCS_Device<<16) & AT91C_SPI_PCS );
}
static inline void AT91F_SPI_CfgPCS ( AT91PS_SPI pSPI , char PCS_Device ) { pSPI -> SPI_MR &= 0xFFF0FFFF ; pSPI -> SPI_MR |= ( ( PCS_Device << 16 ) & AT91C_SPI_PCS ) ; }
\fn    AT91F_SPI_CfgPCS
\brief Switch to the correct PCS of SPI Mode Register : Fixed Peripheral Selected
\ fn AT91F_SPI_CfgPCS \ brief Switch to the correct PCS of SPI Mode Register : Fixed Peripheral Selected
// pointer to a SPI controller // PCS of the Device //* Write to the MR register