📄 mcf5445x_gpio.h
字号:
#define MCF_GPIO_PAR_FBCTL_TA_TA (0x40) #define MCF_GPIO_PAR_FBCTL_TA_GPIO (0x00) #define MCF_GPIO_PAR_FBCTL_RW_RW (0x20) #define MCF_GPIO_PAR_FBCTL_RW_GPIO (0x00) #define MCF_GPIO_PAR_FBCTL_TS_MASK (0xE7) #define MCF_GPIO_PAR_FBCTL_TS_TS (0x18) #define MCF_GPIO_PAR_FBCTL_TS_ALE (0x10) #define MCF_GPIO_PAR_FBCTL_TS_TBST (0x08) #define MCF_GPIO_PAR_FBCTL_TS_GPIO (0x80) /* Bit definitions and macros for PAR_DSPI */#define MCF_GPIO_PAR_DSPI_SCK (0x01) #define MCF_GPIO_PAR_DSPI_SOUT (0x02) #define MCF_GPIO_PAR_DSPI_SIN (0x04) #define MCF_GPIO_PAR_DSPI_PCS0 (0x08) #define MCF_GPIO_PAR_DSPI_PCS1 (0x10) #define MCF_GPIO_PAR_DSPI_PCS2 (0x20) #define MCF_GPIO_PAR_DSPI_PCS5 (0x40) #define MCF_GPIO_PAR_DSPI_PCS5_PCS5 (0x40) #define MCF_GPIO_PAR_DSPI_PCS5_GPIO (0x00) #define MCF_GPIO_PAR_DSPI_PCS2_PCS2 (0x20) #define MCF_GPIO_PAR_DSPI_PCS2_GPIO (0x00) #define MCF_GPIO_PAR_DSPI_PCS1_PCS1 (0x10) #define MCF_GPIO_PAR_DSPI_PCS1_GPIO (0x00) #define MCF_GPIO_PAR_DSPI_PCS0_PCS0 (0x08) #define MCF_GPIO_PAR_DSPI_PCS0_GPIO (0x00) #define MCF_GPIO_PAR_DSPI_SIN_SIN (0x04) #define MCF_GPIO_PAR_DSPI_SIN_GPIO (0x00) #define MCF_GPIO_PAR_DSPI_SOUT_SOUT (0x02) #define MCF_GPIO_PAR_DSPI_SOUT_GPIO (0x00) #define MCF_GPIO_PAR_DSPI_SCK_SCK (0x01) #define MCF_GPIO_PAR_DSPI_SCK_GPIO (0x00) /* Bit definitions and macros for PAR_BE */#define MCF_GPIO_PAR_BE_BE0 (0x01) #define MCF_GPIO_PAR_BE_BE1 (0x04) #define MCF_GPIO_PAR_BE_BE2(x) (((x)&0x03)<<4) #define MCF_GPIO_PAR_BE_BE3(x) (((x)&0x03)<<6) #define MCF_GPIO_PAR_BE_BE3_MASK (0x3F) #define MCF_GPIO_PAR_BE_BE3_BE3 (0xC0) #define MCF_GPIO_PAR_BE_BE3_TSIZ1 (0x80) #define MCF_GPIO_PAR_BE_BE3_GPIO (0x00) #define MCF_GPIO_PAR_BE_BE2_MASK (0xCF) #define MCF_GPIO_PAR_BE_BE2_BE2 (0x30) #define MCF_GPIO_PAR_BE_BE2_TSIZ0 (0x20) #define MCF_GPIO_PAR_BE_BE2_GPIO (0x00) #define MCF_GPIO_PAR_BE_BE1_BE1 (0x04) #define MCF_GPIO_PAR_BE_BE1_GPIO (0x00) #define MCF_GPIO_PAR_BE_BE0_BE0 (0x01) #define MCF_GPIO_PAR_BE_BE0_GPIO (0x00) /* Bit definitions and macros for PAR_CS */#define MCF_GPIO_PAR_CS_CS1 (0x02) #define MCF_GPIO_PAR_CS_CS2 (0x04) #define MCF_GPIO_PAR_CS_CS3 (0x08) #define MCF_GPIO_PAR_CS_CS3_CS3 (0x08) #define MCF_GPIO_PAR_CS_CS3_GPIO (0x00) #define MCF_GPIO_PAR_CS_CS2_CS2 (0x04) #define MCF_GPIO_PAR_CS_CS2_GPIO (0x00) #define MCF_GPIO_PAR_CS_CS1_CS1 (0x02) #define MCF_GPIO_PAR_CS_CS1_GPIO (0x00) /* Bit definitions and macros for PAR_TIMER */#define MCF_GPIO_PAR_TIMER_T0IN(x) (((x)&0x03)) #define MCF_GPIO_PAR_TIMER_T1IN(x) (((x)&0x03)<<2) #define MCF_GPIO_PAR_TIMER_T2IN(x) (((x)&0x03)<<4) #define MCF_GPIO_PAR_TIMER_T3IN(x) (((x)&0x03)<<6) #define MCF_GPIO_PAR_TIMER_T3IN_MASK (0x3F) #define MCF_GPIO_PAR_TIMER_T3IN_T3IN (0xC0) #define MCF_GPIO_PAR_TIMER_T3IN_T3OUT (0x80) #define MCF_GPIO_PAR_TIMER_T3IN_U2RXD (0x40) #define MCF_GPIO_PAR_TIMER_T3IN_GPIO (0x00) #define MCF_GPIO_PAR_TIMER_T2IN_MASK (0xCF) #define MCF_GPIO_PAR_TIMER_T2IN_T2IN (0x30) #define MCF_GPIO_PAR_TIMER_T2IN_T2OUT (0x20) #define MCF_GPIO_PAR_TIMER_T2IN_U2TXD (0x10) #define MCF_GPIO_PAR_TIMER_T2IN_GPIO (0x00) #define MCF_GPIO_PAR_TIMER_T1IN_MASK (0xF3) #define MCF_GPIO_PAR_TIMER_T1IN_T1IN (0x0C) #define MCF_GPIO_PAR_TIMER_T1IN_T1OUT (0x08) #define MCF_GPIO_PAR_TIMER_T1IN_U2CTS (0x04) #define MCF_GPIO_PAR_TIMER_T1IN_GPIO (0x00) #define MCF_GPIO_PAR_TIMER_T0IN_MASK (0xFC) #define MCF_GPIO_PAR_TIMER_T0IN_T0IN (0x03) #define MCF_GPIO_PAR_TIMER_T0IN_T0OUT (0x02) #define MCF_GPIO_PAR_TIMER_T0IN_U2RTS (0x01) #define MCF_GPIO_PAR_TIMER_T0IN_GPIO (0x00) /* Bit definitions and macros for PAR_USB */#define MCF_GPIO_PAR_USB_VBUSOC(x) (((x)&0x03)) #define MCF_GPIO_PAR_USB_VBUSEN(x) (((x)&0x03)<<2) #define MCF_GPIO_PAR_USB_VBUSEN_MASK (0xF3) #define MCF_GPIO_PAR_USB_VBUSEN_VBUSEN (0x0C) #define MCF_GPIO_PAR_USB_VBUSEN_USBPULLUP (0x08) #define MCF_GPIO_PAR_USB_VBUSEN_ULPI_NXT (0x04) #define MCF_GPIO_PAR_USB_VBUSEN_GPIO (0x00) #define MCF_GPIO_PAR_USB_VBUSOC_MASK (0xFC) #define MCF_GPIO_PAR_USB_VBUSOC_VBUSOC (0x03) #define MCF_GPIO_PAR_USB_VBUSOC_ULPI_STP (0x01) #define MCF_GPIO_PAR_USB_VBUSOC_GPIO (0x00) /* Bit definitions and macros for PAR_UART */#define MCF_GPIO_PAR_UART_U0TXD (0x01) #define MCF_GPIO_PAR_UART_U0RXD (0x02) #define MCF_GPIO_PAR_UART_U0RTS (0x04) #define MCF_GPIO_PAR_UART_U0CTS (0x08) #define MCF_GPIO_PAR_UART_U1TXD (0x10) #define MCF_GPIO_PAR_UART_U1RXD (0x20) #define MCF_GPIO_PAR_UART_U1RTS (0x40) #define MCF_GPIO_PAR_UART_U1CTS (0x80) #define MCF_GPIO_PAR_UART_U1CTS_U1CTS (0x80) #define MCF_GPIO_PAR_UART_U1CTS_GPIO (0x00) #define MCF_GPIO_PAR_UART_U1RTS_U1RTS (0x40) #define MCF_GPIO_PAR_UART_U1RTS_GPIO (0x00) #define MCF_GPIO_PAR_UART_U1RXD_U1RXD (0x20) #define MCF_GPIO_PAR_UART_U1RXD_GPIO (0x00) #define MCF_GPIO_PAR_UART_U1TXD_U1TXD (0x10) #define MCF_GPIO_PAR_UART_U1TXD_GPIO (0x00) #define MCF_GPIO_PAR_UART_U0CTS_U0CTS (0x08) #define MCF_GPIO_PAR_UART_U0CTS_GPIO (0x00) #define MCF_GPIO_PAR_UART_U0RTS_U0RTS (0x04) #define MCF_GPIO_PAR_UART_U0RTS_GPIO (0x00) #define MCF_GPIO_PAR_UART_U0RXD_U0RXD (0x02) #define MCF_GPIO_PAR_UART_U0RXD_GPIO (0x00) #define MCF_GPIO_PAR_UART_U0TXD_U0TXD (0x01) #define MCF_GPIO_PAR_UART_U0TXD_GPIO (0x00) /* Bit definitions and macros for PAR_FECI2C */#define MCF_GPIO_PAR_FECI2C_SDA(x) (((x)&0x0003)) #define MCF_GPIO_PAR_FECI2C_SCL(x) (((x)&0x0003)<<2) #define MCF_GPIO_PAR_FECI2C_MDIO0 (0x0010) #define MCF_GPIO_PAR_FECI2C_MDC0 (0x0040) #define MCF_GPIO_PAR_FECI2C_MDIO1(x) (((x)&0x0003)<<8) #define MCF_GPIO_PAR_FECI2C_MDC1(x) (((x)&0x0003)<<10) #define MCF_GPIO_PAR_FECI2C_MDC1_MASK (0xF3FF) #define MCF_GPIO_PAR_FECI2C_MDC1_MDC1 (0x0C00) #define MCF_GPIO_PAR_FECI2C_MDC1_ATA_DIOR (0x0800) #define MCF_GPIO_PAR_FECI2C_MDC1_GPIO (0x0000) #define MCF_GPIO_PAR_FECI2C_MDIO1_MASK (0xFCFF) #define MCF_GPIO_PAR_FECI2C_MDIO1_MDIO1 (0x0300) #define MCF_GPIO_PAR_FECI2C_MDIO1_ATA_DIOW (0x0200) #define MCF_GPIO_PAR_FECI2C_MDIO1_GPIO (0x0000) #define MCF_GPIO_PAR_FECI2C_MDC0_MDC0 (0x0040) #define MCF_GPIO_PAR_FECI2C_MDC0_GPIO (0x0000) #define MCF_GPIO_PAR_FECI2C_MDIO0_MDIO0 (0x0010) #define MCF_GPIO_PAR_FECI2C_MDIO0_GPIO (0x0000) #define MCF_GPIO_PAR_FECI2C_SCL_MASK (0xFFF3) #define MCF_GPIO_PAR_FECI2C_SCL_SCL (0x000C) #define MCF_GPIO_PAR_FECI2C_SCL_U2TXD (0x0004) #define MCF_GPIO_PAR_FECI2C_SCL_GPIO (0x0000) #define MCF_GPIO_PAR_FECI2C_SDA_MASK (0xFFFC) #define MCF_GPIO_PAR_FECI2C_SDA_SDA (0x0003) #define MCF_GPIO_PAR_FECI2C_SDA_U2RXD (0x0001) #define MCF_GPIO_PAR_FECI2C_SDA_GPIO (0x0000) /* Bit definitions and macros for PAR_SSI */#define MCF_GPIO_PAR_SSI_MCLK (0x0001) #define MCF_GPIO_PAR_SSI_STXD(x) (((x)&0x0003)<<2) #define MCF_GPIO_PAR_SSI_SRXD(x) (((x)&0x0003)<<4) #define MCF_GPIO_PAR_SSI_FS(x) (((x)&0x0003)<<6) #define MCF_GPIO_PAR_SSI_BCLK(x) (((x)&0x0003)<<8) #define MCF_GPIO_PAR_SSI_BCLK_MASK (0xFCFF) #define MCF_GPIO_PAR_SSI_BCLK_BCLK (0x0300) #define MCF_GPIO_PAR_SSI_BCLK_U1CTS (0x0200) #define MCF_GPIO_PAR_SSI_BCLK_GPIO (0x0000) #define MCF_GPIO_PAR_SSI_FS_MASK (0xFF3F) #define MCF_GPIO_PAR_SSI_FS_FS (0x00C0) #define MCF_GPIO_PAR_SSI_FS_U1RTS (0x0080) #define MCF_GPIO_PAR_SSI_FS_GPIO (0x0000) #define MCF_GPIO_PAR_SSI_SRXD_MASK (0xFFCF) #define MCF_GPIO_PAR_SSI_SRXD_SRXD (0x0030) #define MCF_GPIO_PAR_SSI_SRXD_U1RXD (0x0020) #define MCF_GPIO_PAR_SSI_SRXD_GPIO (0x0000) #define MCF_GPIO_PAR_SSI_STXD_MASK (0xFFF3) #define MCF_GPIO_PAR_SSI_STXD_STXD (0x000C) #define MCF_GPIO_PAR_SSI_STXD_U1TXD (0x0008) #define MCF_GPIO_PAR_SSI_STXD_GPIO (0x0000) #define MCF_GPIO_PAR_SSI_MCLK_MCLK (0x0001) #define MCF_GPIO_PAR_SSI_MCLK_GPIO (0x0000) /* Bit definitions and macros for PAR_ATA */#define MCF_GPIO_PAR_ATA_IORDY (0x0001) #define MCF_GPIO_PAR_ATA_DMARQ (0x0002) #define MCF_GPIO_PAR_ATA_RESET (0x0004) #define MCF_GPIO_PAR_ATA_DA0 (0x0020) #define MCF_GPIO_PAR_ATA_DA1 (0x0040) #define MCF_GPIO_PAR_ATA_DA2 (0x0080) #define MCF_GPIO_PAR_ATA_CS0 (0x0100) #define MCF_GPIO_PAR_ATA_CS1 (0x0200) #define MCF_GPIO_PAR_ATA_BUFEN (0x0400) #define MCF_GPIO_PAR_ATA_BUFEN_BUFEN (0x0400) #define MCF_GPIO_PAR_ATA_BUFEN_GPIO (0x0000) #define MCF_GPIO_PAR_ATA_CS1_CS1 (0x0200) #define MCF_GPIO_PAR_ATA_CS1_GPIO (0x0000) #define MCF_GPIO_PAR_ATA_CS0_CS0 (0x0100) #define MCF_GPIO_PAR_ATA_CS0_GPIO (0x0000) #define MCF_GPIO_PAR_ATA_DA2_DA2 (0x0080) #define MCF_GPIO_PAR_ATA_DA2_GPIO (0x0000) #define MCF_GPIO_PAR_ATA_DA1_DA1 (0x0040) #define MCF_GPIO_PAR_ATA_DA1_GPIO (0x0000) #define MCF_GPIO_PAR_ATA_DA0_DA0 (0x0020) #define MCF_GPIO_PAR_ATA_DA0_GPIO (0x0000) #define MCF_GPIO_PAR_ATA_RESET_RESET (0x0004) #define MCF_GPIO_PAR_ATA_RESET_GPIO (0x0000) #define MCF_GPIO_PAR_ATA_DMARQ_DMARQ (0x0002) #define MCF_GPIO_PAR_ATA_DMARQ_GPIO (0x0000) #define MCF_GPIO_PAR_ATA_IORDY_IORDY (0x0001) #define MCF_GPIO_PAR_ATA_IORDY_GPIO (0x0000) /* Bit definitions and macros for PAR_IRQ */#define MCF_GPIO_PAR_IRQ_IRQ1 (0x02) #define MCF_GPIO_PAR_IRQ_IRQ4 (0x10) #define MCF_GPIO_PAR_IRQ_IRQ
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -