target/linux/at91/image/dfboot/src/include/lib_AT91RM9200.h
//*----------------------------------------------------------------------------
//* \fn    AT91F_SPI_CfgPIO
//* \brief Configure PIO controllers to drive SPI signals
//*----------------------------------------------------------------------------
\fn    AT91F_SPI_CfgPIO
\brief Configure PIO controllers to drive SPI signals
\ fn AT91F_SPI_CfgPIO \ brief Configure PIO controllers to drive SPI signals
static inline void AT91F_SPI_CfgPIO (void)
{
	AT91F_PIO_CfgPeriph(
		AT91C_BASE_PIOA, 
		((unsigned int) AT91C_PA3_NPCS0   ) |
		((unsigned int) AT91C_PA4_NPCS1   ) |
		((unsigned int) AT91C_PA1_MOSI    ) |
		((unsigned int) AT91C_PA5_NPCS2   ) |
		((unsigned int) AT91C_PA6_NPCS3   ) |
		((unsigned int) AT91C_PA0_MISO    ) |
		((unsigned int) AT91C_PA2_SPCK    ), 
		0); 
}
static inline void AT91F_SPI_CfgPIO ( void ) { AT91F_PIO_CfgPeriph ( AT91C_BASE_PIOA , ( ( unsigned int ) AT91C_PA3_NPCS0 ) | ( ( unsigned int ) AT91C_PA4_NPCS1 ) | ( ( unsigned int ) AT91C_PA1_MOSI ) | ( ( unsigned int ) AT91C_PA5_NPCS2 ) | ( ( unsigned int ) AT91C_PA6_NPCS3 ) | ( ( unsigned int ) AT91C_PA0_MISO ) | ( ( unsigned int ) AT91C_PA2_SPCK ) , 0 ) ; }
\fn    AT91F_SPI_CfgPIO
\brief Configure PIO controllers to drive SPI signals
\ fn AT91F_SPI_CfgPIO \ brief Configure PIO controllers to drive SPI signals
// Configure PIO controllers to periph mode // PIO controller base address // Peripheral A // Peripheral B