FreeBSD/sys/boot/arm/at91/libat91/lib_AT91RM9200.h
static inline void
AT91F_MCI_CfgPIO(void)
{
	// Configure PIO controllers to periph mode
	AT91F_PIO_CfgPeriph(
		AT91C_BASE_PIOA, // PIO controller base address
		((unsigned int) AT91C_PIO_PA28   ) |
		((unsigned int) AT91C_PIO_PA29   ) |
		((unsigned int) AT91C_PIO_PA27    ), // Peripheral A
		0); // Peripheral B
	// Configure PIO controllers to periph mode
	AT91F_PIO_CfgPeriph(
		AT91C_BASE_PIOB, // PIO controller base address
		0, // Peripheral A
		((unsigned int) AT91C_PIO_PB5   ) |
		((unsigned int) AT91C_PIO_PB3   ) |
		((unsigned int) AT91C_PIO_PB4   )); // Peripheral B
}
//*----------------------------------------------------------------------------
//* \fn    AT91F_MCI_CfgPIO
//* \brief Configure PIO controllers to drive MCI signals
//*----------------------------------------------------------------------------
\fn    AT91F_MCI_CfgPIO
\brief Configure PIO controllers to drive MCI signals
\ fn AT91F_MCI_CfgPIO \ brief Configure PIO controllers to drive MCI signals
static inline void
AT91F_MCI_CfgPIO(void)
{
	AT91F_PIO_CfgPeriph(
		AT91C_BASE_PIOA, 
		((unsigned int) AT91C_PIO_PA28   ) |
		((unsigned int) AT91C_PIO_PA29   ) |
		((unsigned int) AT91C_PIO_PA27    ), 
		0); 
	AT91F_PIO_CfgPeriph(
		AT91C_BASE_PIOB, 
		0, 
		((unsigned int) AT91C_PIO_PB5   ) |
		((unsigned int) AT91C_PIO_PB3   ) |
		((unsigned int) AT91C_PIO_PB4   )); 
}
static inline void AT91F_MCI_CfgPIO ( void ) { AT91F_PIO_CfgPeriph ( AT91C_BASE_PIOA , ( ( unsigned int ) AT91C_PIO_PA28 ) | ( ( unsigned int ) AT91C_PIO_PA29 ) | ( ( unsigned int ) AT91C_PIO_PA27 ) , 0 ) ; AT91F_PIO_CfgPeriph ( AT91C_BASE_PIOB , 0 , ( ( unsigned int ) AT91C_PIO_PB5 ) | ( ( unsigned int ) AT91C_PIO_PB3 ) | ( ( unsigned int ) AT91C_PIO_PB4 ) ) ; }
\fn    AT91F_MCI_CfgPIO
\brief Configure PIO controllers to drive MCI signals
\ fn AT91F_MCI_CfgPIO \ brief Configure PIO controllers to drive MCI signals
// Configure PIO controllers to periph mode // PIO controller base address // Peripheral A // Peripheral B // Configure PIO controllers to periph mode // PIO controller base address // Peripheral A // Peripheral B