コード例 #1
0
/*----------------------------------------------------------------------------*/
__inline void AT91F_PWMC_CH0_CfgPIO( AT91PS_PIO pPIOA, AT91PS_PIO pPIOB )
{
	/* Configure PIO controllers to periph mode */
	AT91F_PIO_CfgPeripheral(
		pPIOB, /* PIO controller base address */
		((U32) AT91C_PB19_PWM0    ), /* Peripheral A */
		((U32) AT91C_PB27_PWM0    )); /* Peripheral B */
}
コード例 #2
0
/*----------------------------------------------------------------------------*/
__inline void AT91F_DBGU_CfgPIO( AT91PS_PIO pPIOA, AT91PS_PIO pPIOB )
{
	/* Configure PIO controllers to periph mode */
	AT91F_PIO_CfgPeripheral(
		pPIOA, /* PIO controller base address */
		((U32) AT91C_PA28_DTXD    ) |
		((U32) AT91C_PA27_DRXD    ), /* Peripheral A */
		0); /* Peripheral B */
}