📄 mcf532x_gpio.h
字号:
#define MCF_GPIO_PCLRR_UART_PCLRR_UART2 (0x04)
#define MCF_GPIO_PCLRR_UART_PCLRR_UART3 (0x08)
#define MCF_GPIO_PCLRR_UART_PCLRR_UART4 (0x10)
#define MCF_GPIO_PCLRR_UART_PCLRR_UART5 (0x20)
#define MCF_GPIO_PCLRR_UART_PCLRR_UART6 (0x40)
#define MCF_GPIO_PCLRR_UART_PCLRR_UART7 (0x80)
/* 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)
/* Bit definitions and macros for MCF_GPIO_PCLRR_TIMER */
#define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER0 (0x01)
#define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER1 (0x02)
#define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER2 (0x04)
#define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER3 (0x08)
/* Bit definitions and macros for MCF_GPIO_PCLRR_LCDDATAH */
#define MCF_GPIO_PCLRR_LCDDATAH_PCLRR_LCDDATAH0 (0x01)
#define MCF_GPIO_PCLRR_LCDDATAH_PCLRR_LCDDATAH1 (0x02)
/* Bit definitions and macros for MCF_GPIO_PCLRR_LCDDATAM */
#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM0 (0x01)
#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM1 (0x02)
#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM2 (0x04)
#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM3 (0x08)
#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM4 (0x10)
#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM5 (0x20)
#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM6 (0x40)
#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM7 (0x80)
/* Bit definitions and macros for MCF_GPIO_PCLRR_LCDDATAL */
#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL0 (0x01)
#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL1 (0x02)
#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL2 (0x04)
#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL3 (0x08)
#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL4 (0x10)
#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL5 (0x20)
#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL6 (0x40)
#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL7 (0x80)
/* Bit definitions and macros for MCF_GPIO_PCLRR_LCDCTLH */
#define MCF_GPIO_PCLRR_LCDCTLH_PCLRR_LCDCTLH0 (0x01)
/* Bit definitions and macros for MCF_GPIO_PCLRR_LCDCTLL */
#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL0 (0x01)
#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL1 (0x02)
#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL2 (0x04)
#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL3 (0x08)
#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL4 (0x10)
#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL5 (0x20)
#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL6 (0x40)
#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL7 (0x80)
/* Bit definitions and macros for MCF_GPIO_PAR_FEC */
#define MCF_GPIO_PAR_FEC_PAR_FEC_MII(x) (((x)&0x03)<<0)
#define MCF_GPIO_PAR_FEC_PAR_FEC_7W(x) (((x)&0x03)<<2)
#define MCF_GPIO_PAR_FEC_PAR_FEC_7W_GPIO (0x00)
#define MCF_GPIO_PAR_FEC_PAR_FEC_7W_URTS1 (0x04)
#define MCF_GPIO_PAR_FEC_PAR_FEC_7W_FEC (0x0C)
#define MCF_GPIO_PAR_FEC_PAR_FEC_MII_GPIO (0x00)
#define MCF_GPIO_PAR_FEC_PAR_FEC_MII_UART (0x01)
#define MCF_GPIO_PAR_FEC_PAR_FEC_MII_FEC (0x03)
/* Bit definitions and macros for MCF_GPIO_PAR_PWM */
#define MCF_GPIO_PAR_PWM_PAR_PWM1(x) (((x)&0x03)<<0)
#define MCF_GPIO_PAR_PWM_PAR_PWM3(x) (((x)&0x03)<<2)
#define MCF_GPIO_PAR_PWM_PAR_PWM5 (0x10)
#define MCF_GPIO_PAR_PWM_PAR_PWM7 (0x20)
/* Bit definitions and macros for MCF_GPIO_PAR_BUSCTL */
#define MCF_GPIO_PAR_BUSCTL_PAR_TS(x) (((x)&0x03)<<3)
#define MCF_GPIO_PAR_BUSCTL_PAR_RWB (0x20)
#define MCF_GPIO_PAR_BUSCTL_PAR_TA (0x40)
#define MCF_GPIO_PAR_BUSCTL_PAR_OE (0x80)
#define MCF_GPIO_PAR_BUSCTL_PAR_OE_GPIO (0x00)
#define MCF_GPIO_PAR_BUSCTL_PAR_OE_OE (0x80)
#define MCF_GPIO_PAR_BUSCTL_PAR_TA_GPIO (0x00)
#define MCF_GPIO_PAR_BUSCTL_PAR_TA_TA (0x40)
#define MCF_GPIO_PAR_BUSCTL_PAR_RWB_GPIO (0x00)
#define MCF_GPIO_PAR_BUSCTL_PAR_RWB_RWB (0x20)
#define MCF_GPIO_PAR_BUSCTL_PAR_TS_GPIO (0x00)
#define MCF_GPIO_PAR_BUSCTL_PAR_TS_DACK0 (0x10)
#define MCF_GPIO_PAR_BUSCTL_PAR_TS_TS (0x18)
/* Bit definitions and macros for MCF_GPIO_PAR_FECI2C */
#define MCF_GPIO_PAR_FECI2C_PAR_SDA(x) (((x)&0x03)<<0)
#define MCF_GPIO_PAR_FECI2C_PAR_SCL(x) (((x)&0x03)<<2)
#define MCF_GPIO_PAR_FECI2C_PAR_MDIO(x) (((x)&0x03)<<4)
#define MCF_GPIO_PAR_FECI2C_PAR_MDC(x) (((x)&0x03)<<6)
#define MCF_GPIO_PAR_FECI2C_PAR_MDC_GPIO (0x00)
#define MCF_GPIO_PAR_FECI2C_PAR_MDC_UTXD2 (0x40)
#define MCF_GPIO_PAR_FECI2C_PAR_MDC_SCL (0x80)
#define MCF_GPIO_PAR_FECI2C_PAR_MDC_EMDC (0xC0)
#define MCF_GPIO_PAR_FECI2C_PAR_MDIO_GPIO (0x00)
#define MCF_GPIO_PAR_FECI2C_PAR_MDIO_URXD2 (0x10)
#define MCF_GPIO_PAR_FECI2C_PAR_MDIO_SDA (0x20)
#define MCF_GPIO_PAR_FECI2C_PAR_MDIO_EMDIO (0x30)
#define MCF_GPIO_PAR_FECI2C_PAR_SCL_GPIO (0x00)
#define MCF_GPIO_PAR_FECI2C_PAR_SCL_UTXD2 (0x04)
#define MCF_GPIO_PAR_FECI2C_PAR_SCL_SCL (0x0C)
#define MCF_GPIO_PAR_FECI2C_PAR_SDA_GPIO (0x00)
#define MCF_GPIO_PAR_FECI2C_PAR_SDA_URXD2 (0x01)
#define MCF_GPIO_PAR_FECI2C_PAR_SDA_SDA (0x03)
/* Bit definitions and macros for MCF_GPIO_PAR_BE */
#define MCF_GPIO_PAR_BE_PAR_BE0 (0x01)
#define MCF_GPIO_PAR_BE_PAR_BE1 (0x02)
#define MCF_GPIO_PAR_BE_PAR_BE2 (0x04)
#define MCF_GPIO_PAR_BE_PAR_BE3 (0x08)
/* 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_CS_CS1_GPIO (0x00)
#define MCF_GPIO_PAR_CS_PAR_CS_CS1_SDCS1 (0x01)
#define MCF_GPIO_PAR_CS_PAR_CS_CS1_CS1 (0x03)
/* Bit definitions and macros for MCF_GPIO_PAR_SSI */
#define MCF_GPIO_PAR_SSI_PAR_MCLK (0x0080)
#define MCF_GPIO_PAR_SSI_PAR_TXD(x) (((x)&0x0003)<<8)
#define MCF_GPIO_PAR_SSI_PAR_RXD(x) (((x)&0x0003)<<10)
#define MCF_GPIO_PAR_SSI_PAR_FS(x) (((x)&0x0003)<<12)
#define MCF_GPIO_PAR_SSI_PAR_BCLK(x) (((x)&0x0003)<<14)
/* Bit definitions and macros for MCF_GPIO_PAR_UART */
#define MCF_GPIO_PAR_UART_PAR_UTXD0 (0x0001)
#define MCF_GPIO_PAR_UART_PAR_URXD0 (0x0002)
#define MCF_GPIO_PAR_UART_PAR_URTS0 (0x0004)
#define MCF_GPIO_PAR_UART_PAR_UCTS0 (0x0008)
#define MCF_GPIO_PAR_UART_PAR_UTXD1(x) (((x)&0x0003)<<4)
#define MCF_GPIO_PAR_UART_PAR_URXD1(x) (((x)&0x0003)<<6)
#define MCF_GPIO_PAR_UART_PAR_URTS1(x) (((x)&0x0003)<<8)
#define MCF_GPIO_PAR_UART_PAR_UCTS1(x) (((x)&0x0003)<<10)
#define MCF_GPIO_PAR_UART_PAR_UCTS1_GPIO (0x0000)
#define MCF_GPIO_PAR_UART_PAR_UCTS1_SSI_BCLK (0x0800)
#define MCF_GPIO_PAR_UART_PAR_UCTS1_ULPI_D7 (0x0400)
#define MCF_GPIO_PAR_UART_PAR_UCTS1_UCTS1 (0x0C00)
#define MCF_GPIO_PAR_UART_PAR_URTS1_GPIO (0x0000)
#define MCF_GPIO_PAR_UART_PAR_URTS1_SSI_FS (0x0200)
#define MCF_GPIO_PAR_UART_PAR_URTS1_ULPI_D6 (0x0100)
#define MCF_GPIO_PAR_UART_PAR_URTS1_URTS1 (0x0300)
#define MCF_GPIO_PAR_UART_PAR_URXD1_GPIO (0x0000)
#define MCF_GPIO_PAR_UART_PAR_URXD1_SSI_RXD (0x0080)
#define MCF_GPIO_PAR_UART_PAR_URXD1_ULPI_D5 (0x0040)
#define MCF_GPIO_PAR_UART_PAR_URXD1_URXD1 (0x00C0)
#define MCF_GPIO_PAR_UART_PAR_UTXD1_GPIO (0x0000)
#define MCF_GPIO_PAR_UART_PAR_UTXD1_SSI_TXD (0x0020)
#define MCF_GPIO_PAR_UART_PAR_UTXD1_ULPI_D4 (0x0010)
#define MCF_GPIO_PAR_UART_PAR_UTXD1_UTXD1 (0x0030)
/* Bit definitions and macros for MCF_GPIO_PAR_QSPI */
#define MCF_GPIO_PAR_QSPI_PAR_SCK(x) (((x)&0x0003)<<4)
#define MCF_GPIO_PAR_QSPI_PAR_DOUT(x) (((x)&0x0003)<<6)
#define MCF_GPIO_PAR_QSPI_PAR_DIN(x) (((x)&0x0003)<<8)
#define MCF_GPIO_PAR_QSPI_PAR_PCS0(x) (((x)&0x0003)<<10)
#define MCF_GPIO_PAR_QSPI_PAR_PCS1(x) (((x)&0x0003)<<12)
#define MCF_GPIO_PAR_QSPI_PAR_PCS2(x) (((x)&0x0003)<<14)
/* Bit definitions and macros for MCF_GPIO_PAR_TIMER */
#define MCF_GPIO_PAR_TIMER_PAR_TIN0(x) (((x)&0x03)<<0)
#define MCF_GPIO_PAR_TIMER_PAR_TIN1(x) (((x)&0x03)<<2)
#define MCF_GPIO_PAR_TIMER_PAR_TIN2(x) (((x)&0x03)<<4)
#define MCF_GPIO_PAR_TIMER_PAR_TIN3(x) (((x)&0x03)<<6)
#define MCF_GPIO_PAR_TIMER_PAR_TIN3_GPIO (0x00)
#define MCF_GPIO_PAR_TIMER_PAR_TIN3_TOUT3 (0x80)
#define MCF_GPIO_PAR_TIMER_PAR_TIN3_URXD2 (0x40)
#define MCF_GPIO_PAR_TIMER_PAR_TIN3_TIN3 (0xC0)
#define MCF_GPIO_PAR_TIMER_PAR_TIN2_GPIO (0x00)
#define MCF_GPIO_PAR_TIMER_PAR_TIN2_TOUT2 (0x20)
#define MCF_GPIO_PAR_TIMER_PAR_TIN2_UTXD2 (0x10)
#define MCF_GPIO_PAR_TIMER_PAR_TIN2_TIN2 (0x30)
#define MCF_GPIO_PAR_TIMER_PAR_TIN1_GPIO (0x00)
#define MCF_GPIO_PAR_TIMER_PAR_TIN1_TOUT1 (0x08)
#define MCF_GPIO_PAR_TIMER_PAR_TIN1_DACK1 (0x04)
#define MCF_GPIO_PAR_TIMER_PAR_TIN1_TIN1 (0x0C)
#define MCF_GPIO_PAR_TIMER_PAR_TIN0_GPIO (0x00)
#define MCF_GPIO_PAR_TIMER_PAR_TIN0_TOUT0 (0x02)
#define MCF_GPIO_PAR_TIMER_PAR_TIN0_DREQ0 (0x01)
#define MCF_GPIO_PAR_TIMER_PAR_TIN0_TIN0 (0x03)
/* Bit definitions and macros for MCF_GPIO_PAR_LCDDATA */
#define MCF_GPIO_PAR_LCDDATA_PAR_LD7_0(x) (((x)&0x03)<<0)
#define MCF_GPIO_PAR_LCDDATA_PAR_LD15_8(x) (((x)&0x03)<<2)
#define MCF_GPIO_PAR_LCDDATA_PAR_LD16(x) (((x)&0x03)<<4)
#define MCF_GPIO_PAR_LCDDATA_PAR_LD17(x) (((x)&0x03)<<6)
/* Bit definitions and macros for MCF_GPIO_PAR_LCDCTL */
#define MCF_GPIO_PAR_LCDCTL_PAR_CLS (0x0001)
#define MCF_GPIO_PAR_LCDCTL_PAR_PS (0x0002)
#define MCF_GPIO_PAR_LCDCTL_PAR_REV (0x0004)
#define MCF_GPIO_PAR_LCDCTL_PAR_SPL_SPR (0x0008)
#define MCF_GPIO_PAR_LCDCTL_PAR_CONTRAST (0x0010)
#define MCF_GPIO_PAR_LCDCTL_PAR_LSCLK (0x0020)
#define MCF_GPIO_PAR_LCDCTL_PAR_LP_HSYNC (0x0040)
#define MCF_GPIO_PAR_LCDCTL_PAR_FLM_VSYNC (0x0080)
#define MCF_GPIO_PAR_LCDCTL_PAR_ACD_OE (0x0100)
/* Bit definitions and macros for MCF_GPIO_PAR_IRQ */
#define MCF_GPIO_PAR_IRQ_PAR_IRQ1(x) (((x)&0x0003)<<4)
#define MCF_GPIO_PAR_IRQ_PAR_IRQ2(x) (((x)&0x0003)<<6)
#define MCF_GPIO_PAR_IRQ_PAR_IRQ4(x) (((x)&0x0003)<<8)
#define MCF_GPIO_PAR_IRQ_PAR_IRQ5(x) (((x)&0x0003)<<10)
#define MCF_GPIO_PAR_IRQ_PAR_IRQ6(x) (((x)&0x0003)<<12)
/* Bit definitions and macros for MCF_GPIO_MSCR_FLEXBUS */
#define MCF_GPIO_MSCR_FLEXBUS_MSCR_ADDRCTL(x) (((x)&0x03)<<0)
#define MCF_GPIO_MSCR_FLEXBUS_MSCR_DLOWER(x) (((x)&0x03)<<2)
#define MCF_GPIO_MSCR_FLEXBUS_MSCR_DUPPER(x) (((x)&0x03)<<4)
/* Bit definitions and macros for MCF_GPIO_MSCR_SDRAM */
#define MCF_GPIO_MSCR_SDRAM_MSCR_SDRAM(x) (((x)&0x03)<<0)
#define MCF_GPIO_MSCR_SDRAM_MSCR_SDCLK(x) (((x)&0x03)<<2)
#define MCF_GPIO_MSCR_SDRAM_MSCR_SDCLKB(x) (((x)&0x03)<<4)
/* Bit definitions and macros for MCF_GPIO_DSCR_I2C */
#define MCF_GPIO_DSCR_I2C_I2C_DSE(x) (((x)&0x03)<<0)
/* Bit definitions and macros for MCF_GPIO_DSCR_PWM */
#define MCF_GPIO_DSCR_PWM_PWM_DSE(x) (((x)&0x03)<<0)
/* Bit definitions and macros for MCF_GPIO_DSCR_FEC */
#define MCF_GPIO_DSCR_FEC_FEC_DSE(x) (((x)&0x03)<<0)
/* Bit definitions and macros for MCF_GPIO_DSCR_UART */
#define MCF_GPIO_DSCR_UART_UART0_DSE(x) (((x)&0x03)<<0)
#define MCF_GPIO_DSCR_UART_UART1_DSE(x) (((x)&0x03)<<2)
/* Bit definitions and macros for MCF_GPIO_DSCR_QSPI */
#define MCF_GPIO_DSCR_QSPI_QSPI_DSE(x) (((x)&0x03)<<0)
/* Bit definitions and macros for MCF_GPIO_DSCR_TIMER */
#define MCF_GPIO_DSCR_TIMER_TIMER_DSE(x) (((x)&0x03)<<0)
/* Bit definitions and macros for MCF_GPIO_DSCR_SSI */
#define MCF_GPIO_DSCR_SSI_SSI_DSE(x) (((x)&0x03)<<0)
/* Bit definitions and macros for MCF_GPIO_DSCR_LCD */
#define MCF_GPIO_DSCR_LCD_LCD_DSE(x) (((x)&0x03)<<0)
/* Bit definitions and macros for MCF_GPIO_DSCR_DEBUG */
#define MCF_GPIO_DSCR_DEBUG_DEBUG_DSE(x) (((x)&0x03)<<0)
/* Bit definitions and macros for MCF_GPIO_DSCR_CLKRST */
#define MCF_GPIO_DSCR_CLKRST_MSCR_FBCLK(x) (((x)&0x03)<<0)
#define MCF_GPIO_DSCR_CLKRST_RSTOUT_DSE(x) (((x)&0x03)<<2)
/* Bit definitions and macros for MCF_GPIO_DSCR_IRQ */
#define MCF_GPIO_DSCR_IRQ_IRQ_DSE(x) (((x)&0x03)<<0)
/********************************************************************/
#endif /* __MCF532X_GPIO_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -