📄 mcf5275_gpio.h
字号:
/* Bit definitions and macros for MCF_GPIO_PCLRR_FECI2C */
#define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C0 (0x01)
#define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C1 (0x02)
#define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C2 (0x04)
#define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C3 (0x08)
#define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C4 (0x10)
#define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C5 (0x20)
/* Bit definitions and macros for MCF_GPIO_PCLRR_QSPI */
#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI0 (0x01)
#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI1 (0x02)
#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI2 (0x04)
#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI3 (0x08)
#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI4 (0x10)
#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI5 (0x20)
#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI6 (0x40)
/* Bit definitions and macros for MCF_GPIO_PCLRR_SDRAM */
#define MCF_GPIO_PCLRR_SDRAM_PCLRR_SDRAM0 (0x01)
#define MCF_GPIO_PCLRR_SDRAM_PCLRR_SDRAM1 (0x02)
#define MCF_GPIO_PCLRR_SDRAM_PCLRR_SDRAM2 (0x04)
#define MCF_GPIO_PCLRR_SDRAM_PCLRR_SDRAM3 (0x08)
#define MCF_GPIO_PCLRR_SDRAM_PCLRR_SDRAM4 (0x10)
#define MCF_GPIO_PCLRR_SDRAM_PCLRR_SDRAM5 (0x20)
#define MCF_GPIO_PCLRR_SDRAM_PCLRR_SDRAM6 (0x40)
#define MCF_GPIO_PCLRR_SDRAM_PCLRR_SDRAM7 (0x80)
/* Bit definitions and macros for MCF_GPIO_PCLRR_TIMERH */
#define MCF_GPIO_PCLRR_TIMERH_PCLRR_TIMERH0 (0x01)
#define MCF_GPIO_PCLRR_TIMERH_PCLRR_TIMERH1 (0x02)
#define MCF_GPIO_PCLRR_TIMERH_PCLRR_TIMERH2 (0x04)
#define MCF_GPIO_PCLRR_TIMERH_PCLRR_TIMERH3 (0x08)
/* Bit definitions and macros for MCF_GPIO_PCLRR_TIMERL */
#define MCF_GPIO_PCLRR_TIMERL_PCLRR_TIMERL0 (0x01)
#define MCF_GPIO_PCLRR_TIMERL_PCLRR_TIMERL1 (0x02)
#define MCF_GPIO_PCLRR_TIMERL_PCLRR_TIMERL2 (0x04)
#define MCF_GPIO_PCLRR_TIMERL_PCLRR_TIMERL3 (0x08)
/* Bit definitions and macros for MCF_GPIO_PCLRR_UARTL */
#define MCF_GPIO_PCLRR_UARTL_PCLRR_UARTL0 (0x01)
#define MCF_GPIO_PCLRR_UARTL_PCLRR_UARTL1 (0x02)
#define MCF_GPIO_PCLRR_UARTL_PCLRR_UARTL2 (0x04)
#define MCF_GPIO_PCLRR_UARTL_PCLRR_UARTL3 (0x08)
#define MCF_GPIO_PCLRR_UARTL_PCLRR_UARTL4 (0x10)
#define MCF_GPIO_PCLRR_UARTL_PCLRR_UARTL5 (0x20)
#define MCF_GPIO_PCLRR_UARTL_PCLRR_UARTL6 (0x40)
#define MCF_GPIO_PCLRR_UARTL_PCLRR_UARTL7 (0x80)
/* Bit definitions and macros for MCF_GPIO_PCLRR_FEC1H */
#define MCF_GPIO_PCLRR_FEC1H_PCLRR_FEC1H0 (0x01)
#define MCF_GPIO_PCLRR_FEC1H_PCLRR_FEC1H1 (0x02)
#define MCF_GPIO_PCLRR_FEC1H_PCLRR_FEC1H2 (0x04)
#define MCF_GPIO_PCLRR_FEC1H_PCLRR_FEC1H3 (0x08)
#define MCF_GPIO_PCLRR_FEC1H_PCLRR_FEC1H4 (0x10)
#define MCF_GPIO_PCLRR_FEC1H_PCLRR_FEC1H5 (0x20)
#define MCF_GPIO_PCLRR_FEC1H_PCLRR_FEC1H6 (0x40)
#define MCF_GPIO_PCLRR_FEC1H_PCLRR_FEC1H7 (0x80)
/* Bit definitions and macros for MCF_GPIO_PCLRR_FEC1L */
#define MCF_GPIO_PCLRR_FEC1L_PCLRR_FEC1L0 (0x01)
#define MCF_GPIO_PCLRR_FEC1L_PCLRR_FEC1L1 (0x02)
#define MCF_GPIO_PCLRR_FEC1L_PCLRR_FEC1L2 (0x04)
#define MCF_GPIO_PCLRR_FEC1L_PCLRR_FEC1L3 (0x08)
#define MCF_GPIO_PCLRR_FEC1L_PCLRR_FEC1L4 (0x10)
#define MCF_GPIO_PCLRR_FEC1L_PCLRR_FEC1L5 (0x20)
#define MCF_GPIO_PCLRR_FEC1L_PCLRR_FEC1L6 (0x40)
#define MCF_GPIO_PCLRR_FEC1L_PCLRR_FEC1L7 (0x80)
/* Bit definitions and macros for MCF_GPIO_PCLRR_BS */
#define MCF_GPIO_PCLRR_BS_PCLRR_BS2 (0x04)
#define MCF_GPIO_PCLRR_BS_PCLRR_BS3 (0x08)
/* Bit definitions and macros for MCF_GPIO_PCLRR_IRQ */
#define MCF_GPIO_PCLRR_IRQ_PCLRR_IRQ(x) (((x)&0x7F)<<1)
/* Bit definitions and macros for MCF_GPIO_PCLRR_USBH */
#define MCF_GPIO_PCLRR_USBH_PCLRR_USBH0 (0x01)
/* Bit definitions and macros for MCF_GPIO_PCLRR_USBL */
#define MCF_GPIO_PCLRR_USBL_PCLRR_USBL0 (0x01)
#define MCF_GPIO_PCLRR_USBL_PCLRR_USBL1 (0x02)
#define MCF_GPIO_PCLRR_USBL_PCLRR_USBL2 (0x04)
#define MCF_GPIO_PCLRR_USBL_PCLRR_USBL3 (0x08)
#define MCF_GPIO_PCLRR_USBL_PCLRR_USBL4 (0x10)
#define MCF_GPIO_PCLRR_USBL_PCLRR_USBL5 (0x20)
#define MCF_GPIO_PCLRR_USBL_PCLRR_USBL6 (0x40)
#define MCF_GPIO_PCLRR_USBL_PCLRR_USBL7 (0x80)
/* Bit definitions and macros for MCF_GPIO_PCLRR_UARTH */
#define MCF_GPIO_PCLRR_UARTH_PCLRR_UART0 (0x01)
#define MCF_GPIO_PCLRR_UARTH_PCLRR_UART1 (0x02)
#define MCF_GPIO_PCLRR_UARTH_PCLRR_UART2 (0x04)
#define MCF_GPIO_PCLRR_UARTH_PCLRR_UART3 (0x08)
/* Bit definitions and macros for MCF_GPIO_PAR_ADDR */
#define MCF_GPIO_PAR_ADDR_PAR_ADDR21 (0x20)
#define MCF_GPIO_PAR_ADDR_PAR_ADDR22 (0x40)
#define MCF_GPIO_PAR_ADDR_PAR_ADDR23 (0x80)
/* Bit definitions and macros for MCF_GPIO_PAR_CS */
#define MCF_GPIO_PAR_CS_PAR_CS1 (0x02)
#define MCF_GPIO_PAR_CS_PAR_CS2 (0x04)
#define MCF_GPIO_PAR_CS_PAR_CS3 (0x08)
#define MCF_GPIO_PAR_CS_PAR_CS4 (0x10)
#define MCF_GPIO_PAR_CS_PAR_CS5 (0x20)
#define MCF_GPIO_PAR_CS_PAR_CS6 (0x40)
#define MCF_GPIO_PAR_CS_PAR_CS7 (0x80)
/* Bit definitions and macros for MCF_GPIO_PAR_BUSCTL */
#define MCF_GPIO_PAR_BUSCTL_PAR_TIP(x) (((x)&0x0003)<<0)
#define MCF_GPIO_PAR_BUSCTL_PAR_TS(x) (((x)&0x0003)<<2)
#define MCF_GPIO_PAR_BUSCTL_PAR_TSIZ0(x) (((x)&0x0003)<<4)
#define MCF_GPIO_PAR_BUSCTL_PAR_TSIZ1(x) (((x)&0x0003)<<6)
#define MCF_GPIO_PAR_BUSCTL_PAR_RWB (0x0200)
#define MCF_GPIO_PAR_BUSCTL_PAR_TEA(x) (((x)&0x0003)<<10)
#define MCF_GPIO_PAR_BUSCTL_PAR_TA (0x1000)
#define MCF_GPIO_PAR_BUSCTL_PAR_OE (0x2000)
#define MCF_GPIO_PAR_BUSCTL_PAR_TEA_GPIO (0x0000)
#define MCF_GPIO_PAR_BUSCTL_PAR_TEA_DREQ1 (0x0800)
#define MCF_GPIO_PAR_BUSCTL_PAR_TEA_TEA (0x0C00)
#define MCF_GPIO_PAR_BUSCTL_PAR_TSIZ1_GPIO (0x0000)
#define MCF_GPIO_PAR_BUSCTL_PAR_TSIZ1_DACK1 (0x0080)
#define MCF_GPIO_PAR_BUSCTL_PAR_TSIZ1_TSIZ1 (0x00C0)
#define MCF_GPIO_PAR_BUSCTL_PAR_TSIZ0_GPIO (0x0000)
#define MCF_GPIO_PAR_BUSCTL_PAR_TSIZ0_DACK0 (0x0020)
#define MCF_GPIO_PAR_BUSCTL_PAR_TSIZ0_TSIZ0 (0x0030)
#define MCF_GPIO_PAR_BUSCTL_PAR_TS_GPIO (0x0000)
#define MCF_GPIO_PAR_BUSCTL_PAR_TS_DACK2 (0x0008)
#define MCF_GPIO_PAR_BUSCTL_PAR_TS_TS (0x000C)
#define MCF_GPIO_PAR_BUSCTL_PAR_TIP_GPIO (0x0000)
#define MCF_GPIO_PAR_BUSCTL_PAR_TIP_DREQ0 (0x0002)
#define MCF_GPIO_PAR_BUSCTL_PAR_TIP_TEA (0x0003)
/* Bit definitions and macros for MCF_GPIO_PAR_IRQ */
#define MCF_GPIO_PAR_IRQ_PAR_IRQ1 (0x0002)
#define MCF_GPIO_PAR_IRQ_PAR_IRQ2(x) (((x)&0x0003)<<2)
#define MCF_GPIO_PAR_IRQ_PAR_IRQ3(x) (((x)&0x0003)<<4)
#define MCF_GPIO_PAR_IRQ_PAR_IRQ4(x) (((x)&0x0003)<<6)
#define MCF_GPIO_PAR_IRQ_PAR_IRQ5 (0x0100)
#define MCF_GPIO_PAR_IRQ_PAR_IRQ6 (0x0200)
#define MCF_GPIO_PAR_IRQ_PAR_IRQ7 (0x0400)
/* Bit definitions and macros for MCF_GPIO_PAR_USB */
#define MCF_GPIO_PAR_USB_PAR_UTXEN (0x0001)
#define MCF_GPIO_PAR_USB_PAR_UTP (0x0002)
#define MCF_GPIO_PAR_USB_PAR_UTN (0x0004)
#define MCF_GPIO_PAR_USB_PAR_USSP (0x0008)
#define MCF_GPIO_PAR_USB_PAR_URX (0x0010)
#define MCF_GPIO_PAR_USB_PAR_URP (0x0020)
#define MCF_GPIO_PAR_USB_PAR_URN (0x0040)
#define MCF_GPIO_PAR_USB_PAR_UCLK (0x0080)
#define MCF_GPIO_PAR_USB_PAR_USPD (0x0100)
/* Bit definitions and macros for MCF_GPIO_PAR_FEC0HL */
#define MCF_GPIO_PAR_FEC0HL_PAR_FEC0L (0x40)
#define MCF_GPIO_PAR_FEC0HL_PAR_FEC0H (0x80)
/* Bit definitions and macros for MCF_GPIO_PAR_FEC1HL */
#define MCF_GPIO_PAR_FEC1HL_PAR_FEC1L (0x40)
#define MCF_GPIO_PAR_FEC1HL_PAR_FEC1H (0x80)
/* Bit definitions and macros for MCF_GPIO_PAR_TIMER */
#define MCF_GPIO_PAR_TIMER_PAR_T0OUT(x) (((x)&0x0003)<<0)
#define MCF_GPIO_PAR_TIMER_PAR_T0IN(x) (((x)&0x0003)<<2)
#define MCF_GPIO_PAR_TIMER_PAR_T1OUT(x) (((x)&0x0003)<<4)
#define MCF_GPIO_PAR_TIMER_PAR_T1IN(x) (((x)&0x0003)<<6)
#define MCF_GPIO_PAR_TIMER_PAR_T2OUT(x) (((x)&0x0003)<<8)
#define MCF_GPIO_PAR_TIMER_PAR_T2IN(x) (((x)&0x0003)<<10)
#define MCF_GPIO_PAR_TIMER_PAR_T3OUT(x) (((x)&0x0003)<<12)
#define MCF_GPIO_PAR_TIMER_PAR_T3IN(x) (((x)&0x0003)<<14)
#define MCF_GPIO_PAR_TIMER_PAR_T3IN_GPIO (0x0000)
#define MCF_GPIO_PAR_TIMER_PAR_T3IN_QSPI (0x4000)
#define MCF_GPIO_PAR_TIMER_PAR_T3IN_UART2 (0x8000)
#define MCF_GPIO_PAR_TIMER_PAR_T3IN_T3IN (0xC000)
#define MCF_GPIO_PAR_TIMER_PAR_T2IN_GPIO (0x0000)
#define MCF_GPIO_PAR_TIMER_PAR_T2IN_T2OUT (0x1000)
#define MCF_GPIO_PAR_TIMER_PAR_T2IN_DMA (0x2000)
#define MCF_GPIO_PAR_TIMER_PAR_T2IN_T2IN (0x3000)
#define MCF_GPIO_PAR_TIMER_PAR_T1IN_GPIO (0x0000)
#define MCF_GPIO_PAR_TIMER_PAR_T1IN_T1OUT (0x0400)
#define MCF_GPIO_PAR_TIMER_PAR_T1IN_DMA (0x0800)
#define MCF_GPIO_PAR_TIMER_PAR_T1IN_T1IN (0x0C00)
#define MCF_GPIO_PAR_TIMER_PAR_T0IN_GPIO (0x0000)
#define MCF_GPIO_PAR_TIMER_PAR_T0IN_DMA (0x0200)
#define MCF_GPIO_PAR_TIMER_PAR_T0IN_T0IN (0x0300)
#define MCF_GPIO_PAR_TIMER_PAR_T3OUT_GPIO (0x0000)
#define MCF_GPIO_PAR_TIMER_PAR_T3OUT_QSPI (0x0040)
#define MCF_GPIO_PAR_TIMER_PAR_T3OUT_UART2 (0x0080)
#define MCF_GPIO_PAR_TIMER_PAR_T3OUT_T3OUT (0x00C0)
#define MCF_GPIO_PAR_TIMER_PAR_T2OUT_GPIO (0x0000)
#define MCF_GPIO_PAR_TIMER_PAR_T2OUT_DMA (0x0020)
#define MCF_GPIO_PAR_TIMER_PAR_T2OUT_T2OUT (0x0030)
#define MCF_GPIO_PAR_TIMER_PAR_T1OUT_GPIO (0x0000)
#define MCF_GPIO_PAR_TIMER_PAR_T1OUT_DMA (0x0008)
#define MCF_GPIO_PAR_TIMER_PAR_T1OUT_T1OUT (0x000C)
#define MCF_GPIO_PAR_TIMER_PAR_T0OUT_GPIO (0x0000)
#define MCF_GPIO_PAR_TIMER_PAR_T0OUT_DMA (0x0002)
#define MCF_GPIO_PAR_TIMER_PAR_T0OUT_T0OUT (0x0003)
/* Bit definitions and macros for MCF_GPIO_PAR_UART */
#define MCF_GPIO_PAR_UART_PAR_U2CTS_GPIO (0x0000)
#define MCF_GPIO_PAR_UART_PAR_U2CTS_UART2 (0x0800)
#define MCF_GPIO_PAR_UART_PAR_U2CTS_UART1 (0x0C00)
#define MCF_GPIO_PAR_UART_PAR_U2RTS_GPIO (0x0000)
#define MCF_GPIO_PAR_UART_PAR_U2RTS_UART2 (0x0200)
#define MCF_GPIO_PAR_UART_PAR_U2RTS_UART1 (0x0300)
/* Bit definitions and macros for MCF_GPIO_PAR_QSPI */
#define MCF_GPIO_PAR_QSPI_PAR_DOUT (0x0002)
#define MCF_GPIO_PAR_QSPI_PAR_DIN(x) (((x)&0x0003)<<2)
#define MCF_GPIO_PAR_QSPI_PAR_SCK(x) (((x)&0x0003)<<4)
#define MCF_GPIO_PAR_QSPI_PAR_PCS0 (0x0080)
#define MCF_GPIO_PAR_QSPI_PAR_PCS1 (0x0200)
#define MCF_GPIO_PAR_QSPI_PARPCS2(x) (((x)&0x0003)<<10)
#define MCF_GPIO_PAR_QSPI_PAR_PCS3(x) (((x)&0x0003)<<12)
#define MCF_GPIO_PAR_QSPI_PAR_PCS3_GPIO (0x0000)
#define MCF_GPIO_PAR_QSPI_PAR_PCS3_DACK3 (0x1000)
#define MCF_GPIO_PAR_QSPI_PAR_PCS3_PWM3 (0x2000)
#define MCF_GPIO_PAR_QSPI_PAR_PCS3_QSPI (0x3000)
#define MCF_GPIO_PAR_QSPI_PAR_PCS2_GPIO (0x0000)
#define MCF_GPIO_PAR_QSPI_PAR_PCS2_DACK2 (0x0400)
#define MCF_GPIO_PAR_QSPI_PAR_PCS2_PWM2 (0x0800)
#define MCF_GPIO_PAR_QSPI_PAR_PCS2_QSPI (0x0C00)
#define MCF_GPIO_PAR_QSPI_PAR_SCK_GPIO (0x0000)
#define MCF_GPIO_PAR_QSPI_PAR_SCK_I2C (0x0020)
#define MCF_GPIO_PAR_QSPI_PAR_SCK_QSPI (0x0030)
#define MCF_GPIO_PAR_QSPI_PAR_DIN_GPIO (0x0000)
#define MCF_GPIO_PAR_QSPI_PAR_DIN_I2C (0x0080)
#define MCF_GPIO_PAR_QSPI_PAR_DIN_QSPI (0x00C0)
/* Bit definitions and macros for MCF_GPIO_PAR_SDRAM */
#define MCF_GPIO_PAR_SDRAM_PAR_SDQS(x) (((x)&0x0003)<<0)
#define MCF_GPIO_PAR_SDRAM_PAR_SCKE (0x0004)
#define MCF_GPIO_PAR_SDRAM_PAR_SDWE (0x0008)
#define MCF_GPIO_PAR_SDRAM_PAR_SCAS (0x0010)
#define MCF_GPIO_PAR_SDRAM_PAR_SRAS (0x0020)
#define MCF_GPIO_PAR_SDRAM_PAR_SDCS0(x) (((x)&0x0003)<<6)
#define MCF_GPIO_PAR_SDRAM_PAR_SDCS1(x) (((x)&0x0003)<<8)
#define MCF_GPIO_PAR_SDRAM_PAR_SDCS1_GPIO (0x0000)
#define MCF_GPIO_PAR_SDRAM_PAR_SDCS1_CS3 (0x0200)
#define MCF_GPIO_PAR_SDRAM_PAR_SDCS1_SDCS1 (0x0300)
#define MCF_GPIO_PAR_SDRAM_PAR_SDCS0_GPIO (0x0000)
#define MCF_GPIO_PAR_SDRAM_PAR_SDCS0_CS2 (0x0080)
#define MCF_GPIO_PAR_SDRAM_PAR_SDCS0_SDCS0 (0x00C0)
#define MCF_GPIO_PAR_SDRAM_PAR_SDQS_GPIO (0x0000)
#define MCF_GPIO_PAR_SDRAM_PAR_SDQS_SDQS (0x0003)
/* Bit definitions and macros for MCF_GPIO_PAR_FECI2C */
#define MCF_GPIO_PAR_FECI2C_PAR_SCL(x) (((x)&0x0003)<<0)
#define MCF_GPIO_PAR_FECI2C_PAR_SDA(x) (((x)&0x0003)<<2)
#define MCF_GPIO_PAR_FECI2C_PAR_MDC1 (0x0020)
#define MCF_GPIO_PAR_FECI2C_PAR_MDIO1 (0x0080)
#define MCF_GPIO_PAR_FECI2C_PAR_MDC0(x) (((x)&0x0003)<<8)
#define MCF_GPIO_PAR_FECI2C_PAR_MDIO0(x) (((x)&0x0003)<<10)
#define MCF_GPIO_PAR_FECI2C_PAR_MDIO0_GPIO (0x0000)
#define MCF_GPIO_PAR_FECI2C_PAR_MDIO0_UART2 (0x0400)
#define MCF_GPIO_PAR_FECI2C_PAR_MDIO0_I2C (0x0800)
#define MCF_GPIO_PAR_FECI2C_PAR_MDIO0_FEC (0x0C00)
#define MCF_GPIO_PAR_FECI2C_PAR_MDC0_GPIO (0x0000)
#define MCF_GPIO_PAR_FECI2C_PAR_MDC0_UART2 (0x0100)
#define MCF_GPIO_PAR_FECI2C_PAR_MDC0_I2C (0x0200)
#define MCF_GPIO_PAR_FECI2C_PAR_MDC0_FEC (0x0300)
#define MCF_GPIO_PAR_FECI2C_PAR_SDA_GPIO (0x0000)
#define MCF_GPIO_PAR_FECI2C_PAR_SDA_UART2 (0x0008)
#define MCF_GPIO_PAR_FECI2C_PAR_SDA_I2C (0x000C)
#define MCF_GPIO_PAR_FECI2C_PAR_SCL_GPIO (0x0000)
#define MCF_GPIO_PAR_FECI2C_PAR_SCL_UART2 (0x0002)
#define MCF_GPIO_PAR_FECI2C_PAR_SCL_I2C (0x0003)
/* Bit definitions and macros for MCF_GPIO_PAR_BS */
#define MCF_GPIO_PAR_BS_PAR_BS(x) (((x)&0x03)<<2)
#define MCF_GPIO_PAR_BS_PAR_BS_GPIO (0x00)
#define MCF_GPIO_PAR_BS_PAR_BS_BS (0x0C)
/********************************************************************/
#endif /* __MCF5275_GPIO_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -