| // THIS HEADER FILE IS AUTOMATICALLY GENERATED -- DO NOT EDIT |
| |
| /** |
| * Copyright (c) 2024 Raspberry Pi Ltd. |
| * |
| * SPDX-License-Identifier: BSD-3-Clause |
| */ |
| // ============================================================================= |
| // Register block : IO_BANK0 |
| // Version : 1 |
| // Bus type : apb |
| // ============================================================================= |
| #ifndef _HARDWARE_REGS_IO_BANK0_H |
| #define _HARDWARE_REGS_IO_BANK0_H |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO0_STATUS |
| // Description : GPIO status |
| #define IO_BANK0_GPIO0_STATUS_OFFSET _u(0x00000000) |
| #define IO_BANK0_GPIO0_STATUS_BITS _u(0x050a3300) |
| #define IO_BANK0_GPIO0_STATUS_RESET _u(0x00000000) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO0_STATUS_IRQTOPROC |
| // Description : interrupt to processors, after override is applied |
| #define IO_BANK0_GPIO0_STATUS_IRQTOPROC_RESET _u(0x0) |
| #define IO_BANK0_GPIO0_STATUS_IRQTOPROC_BITS _u(0x04000000) |
| #define IO_BANK0_GPIO0_STATUS_IRQTOPROC_MSB _u(26) |
| #define IO_BANK0_GPIO0_STATUS_IRQTOPROC_LSB _u(26) |
| #define IO_BANK0_GPIO0_STATUS_IRQTOPROC_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO0_STATUS_IRQFROMPAD |
| // Description : interrupt from pad before override is applied |
| #define IO_BANK0_GPIO0_STATUS_IRQFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO0_STATUS_IRQFROMPAD_BITS _u(0x01000000) |
| #define IO_BANK0_GPIO0_STATUS_IRQFROMPAD_MSB _u(24) |
| #define IO_BANK0_GPIO0_STATUS_IRQFROMPAD_LSB _u(24) |
| #define IO_BANK0_GPIO0_STATUS_IRQFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO0_STATUS_INTOPERI |
| // Description : input signal to peripheral, after override is applied |
| #define IO_BANK0_GPIO0_STATUS_INTOPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO0_STATUS_INTOPERI_BITS _u(0x00080000) |
| #define IO_BANK0_GPIO0_STATUS_INTOPERI_MSB _u(19) |
| #define IO_BANK0_GPIO0_STATUS_INTOPERI_LSB _u(19) |
| #define IO_BANK0_GPIO0_STATUS_INTOPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO0_STATUS_INFROMPAD |
| // Description : input signal from pad, before override is applied |
| #define IO_BANK0_GPIO0_STATUS_INFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO0_STATUS_INFROMPAD_BITS _u(0x00020000) |
| #define IO_BANK0_GPIO0_STATUS_INFROMPAD_MSB _u(17) |
| #define IO_BANK0_GPIO0_STATUS_INFROMPAD_LSB _u(17) |
| #define IO_BANK0_GPIO0_STATUS_INFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO0_STATUS_OETOPAD |
| // Description : output enable to pad after register override is applied |
| #define IO_BANK0_GPIO0_STATUS_OETOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO0_STATUS_OETOPAD_BITS _u(0x00002000) |
| #define IO_BANK0_GPIO0_STATUS_OETOPAD_MSB _u(13) |
| #define IO_BANK0_GPIO0_STATUS_OETOPAD_LSB _u(13) |
| #define IO_BANK0_GPIO0_STATUS_OETOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO0_STATUS_OEFROMPERI |
| // Description : output enable from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO0_STATUS_OEFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO0_STATUS_OEFROMPERI_BITS _u(0x00001000) |
| #define IO_BANK0_GPIO0_STATUS_OEFROMPERI_MSB _u(12) |
| #define IO_BANK0_GPIO0_STATUS_OEFROMPERI_LSB _u(12) |
| #define IO_BANK0_GPIO0_STATUS_OEFROMPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO0_STATUS_OUTTOPAD |
| // Description : output signal to pad after register override is applied |
| #define IO_BANK0_GPIO0_STATUS_OUTTOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO0_STATUS_OUTTOPAD_BITS _u(0x00000200) |
| #define IO_BANK0_GPIO0_STATUS_OUTTOPAD_MSB _u(9) |
| #define IO_BANK0_GPIO0_STATUS_OUTTOPAD_LSB _u(9) |
| #define IO_BANK0_GPIO0_STATUS_OUTTOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO0_STATUS_OUTFROMPERI |
| // Description : output signal from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO0_STATUS_OUTFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO0_STATUS_OUTFROMPERI_BITS _u(0x00000100) |
| #define IO_BANK0_GPIO0_STATUS_OUTFROMPERI_MSB _u(8) |
| #define IO_BANK0_GPIO0_STATUS_OUTFROMPERI_LSB _u(8) |
| #define IO_BANK0_GPIO0_STATUS_OUTFROMPERI_ACCESS "RO" |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO0_CTRL |
| // Description : GPIO control including function select and overrides. |
| #define IO_BANK0_GPIO0_CTRL_OFFSET _u(0x00000004) |
| #define IO_BANK0_GPIO0_CTRL_BITS _u(0x3003331f) |
| #define IO_BANK0_GPIO0_CTRL_RESET _u(0x0000001f) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO0_CTRL_IRQOVER |
| // 0x0 -> don't invert the interrupt |
| // 0x1 -> invert the interrupt |
| // 0x2 -> drive interrupt low |
| // 0x3 -> drive interrupt high |
| #define IO_BANK0_GPIO0_CTRL_IRQOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO0_CTRL_IRQOVER_BITS _u(0x30000000) |
| #define IO_BANK0_GPIO0_CTRL_IRQOVER_MSB _u(29) |
| #define IO_BANK0_GPIO0_CTRL_IRQOVER_LSB _u(28) |
| #define IO_BANK0_GPIO0_CTRL_IRQOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO0_CTRL_IRQOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO0_CTRL_IRQOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO0_CTRL_IRQOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO0_CTRL_IRQOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO0_CTRL_INOVER |
| // 0x0 -> don't invert the peri input |
| // 0x1 -> invert the peri input |
| // 0x2 -> drive peri input low |
| // 0x3 -> drive peri input high |
| #define IO_BANK0_GPIO0_CTRL_INOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO0_CTRL_INOVER_BITS _u(0x00030000) |
| #define IO_BANK0_GPIO0_CTRL_INOVER_MSB _u(17) |
| #define IO_BANK0_GPIO0_CTRL_INOVER_LSB _u(16) |
| #define IO_BANK0_GPIO0_CTRL_INOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO0_CTRL_INOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO0_CTRL_INOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO0_CTRL_INOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO0_CTRL_INOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO0_CTRL_OEOVER |
| // 0x0 -> drive output enable from peripheral signal selected by funcsel |
| // 0x1 -> drive output enable from inverse of peripheral signal selected by funcsel |
| // 0x2 -> disable output |
| // 0x3 -> enable output |
| #define IO_BANK0_GPIO0_CTRL_OEOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO0_CTRL_OEOVER_BITS _u(0x00003000) |
| #define IO_BANK0_GPIO0_CTRL_OEOVER_MSB _u(13) |
| #define IO_BANK0_GPIO0_CTRL_OEOVER_LSB _u(12) |
| #define IO_BANK0_GPIO0_CTRL_OEOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO0_CTRL_OEOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO0_CTRL_OEOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO0_CTRL_OEOVER_VALUE_DISABLE _u(0x2) |
| #define IO_BANK0_GPIO0_CTRL_OEOVER_VALUE_ENABLE _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO0_CTRL_OUTOVER |
| // 0x0 -> drive output from peripheral signal selected by funcsel |
| // 0x1 -> drive output from inverse of peripheral signal selected by funcsel |
| // 0x2 -> drive output low |
| // 0x3 -> drive output high |
| #define IO_BANK0_GPIO0_CTRL_OUTOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO0_CTRL_OUTOVER_BITS _u(0x00000300) |
| #define IO_BANK0_GPIO0_CTRL_OUTOVER_MSB _u(9) |
| #define IO_BANK0_GPIO0_CTRL_OUTOVER_LSB _u(8) |
| #define IO_BANK0_GPIO0_CTRL_OUTOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO0_CTRL_OUTOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO0_CTRL_OUTOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO0_CTRL_OUTOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO0_CTRL_OUTOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO0_CTRL_FUNCSEL |
| // Description : 0-31 -> selects pin function according to the gpio table |
| // 31 == NULL |
| // 0x00 -> jtag_tck |
| // 0x01 -> spi0_rx |
| // 0x02 -> uart0_tx |
| // 0x03 -> i2c0_sda |
| // 0x04 -> pwm_a_0 |
| // 0x05 -> sio_0 |
| // 0x06 -> pio0_0 |
| // 0x07 -> pio1_0 |
| // 0x09 -> usb_muxing_overcurr_detect |
| // 0x1f -> null |
| #define IO_BANK0_GPIO0_CTRL_FUNCSEL_RESET _u(0x1f) |
| #define IO_BANK0_GPIO0_CTRL_FUNCSEL_BITS _u(0x0000001f) |
| #define IO_BANK0_GPIO0_CTRL_FUNCSEL_MSB _u(4) |
| #define IO_BANK0_GPIO0_CTRL_FUNCSEL_LSB _u(0) |
| #define IO_BANK0_GPIO0_CTRL_FUNCSEL_ACCESS "RW" |
| #define IO_BANK0_GPIO0_CTRL_FUNCSEL_VALUE_JTAG_TCK _u(0x00) |
| #define IO_BANK0_GPIO0_CTRL_FUNCSEL_VALUE_SPI0_RX _u(0x01) |
| #define IO_BANK0_GPIO0_CTRL_FUNCSEL_VALUE_UART0_TX _u(0x02) |
| #define IO_BANK0_GPIO0_CTRL_FUNCSEL_VALUE_I2C0_SDA _u(0x03) |
| #define IO_BANK0_GPIO0_CTRL_FUNCSEL_VALUE_PWM_A_0 _u(0x04) |
| #define IO_BANK0_GPIO0_CTRL_FUNCSEL_VALUE_SIO_0 _u(0x05) |
| #define IO_BANK0_GPIO0_CTRL_FUNCSEL_VALUE_PIO0_0 _u(0x06) |
| #define IO_BANK0_GPIO0_CTRL_FUNCSEL_VALUE_PIO1_0 _u(0x07) |
| #define IO_BANK0_GPIO0_CTRL_FUNCSEL_VALUE_USB_MUXING_OVERCURR_DETECT _u(0x09) |
| #define IO_BANK0_GPIO0_CTRL_FUNCSEL_VALUE_NULL _u(0x1f) |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO1_STATUS |
| // Description : GPIO status |
| #define IO_BANK0_GPIO1_STATUS_OFFSET _u(0x00000008) |
| #define IO_BANK0_GPIO1_STATUS_BITS _u(0x050a3300) |
| #define IO_BANK0_GPIO1_STATUS_RESET _u(0x00000000) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO1_STATUS_IRQTOPROC |
| // Description : interrupt to processors, after override is applied |
| #define IO_BANK0_GPIO1_STATUS_IRQTOPROC_RESET _u(0x0) |
| #define IO_BANK0_GPIO1_STATUS_IRQTOPROC_BITS _u(0x04000000) |
| #define IO_BANK0_GPIO1_STATUS_IRQTOPROC_MSB _u(26) |
| #define IO_BANK0_GPIO1_STATUS_IRQTOPROC_LSB _u(26) |
| #define IO_BANK0_GPIO1_STATUS_IRQTOPROC_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO1_STATUS_IRQFROMPAD |
| // Description : interrupt from pad before override is applied |
| #define IO_BANK0_GPIO1_STATUS_IRQFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO1_STATUS_IRQFROMPAD_BITS _u(0x01000000) |
| #define IO_BANK0_GPIO1_STATUS_IRQFROMPAD_MSB _u(24) |
| #define IO_BANK0_GPIO1_STATUS_IRQFROMPAD_LSB _u(24) |
| #define IO_BANK0_GPIO1_STATUS_IRQFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO1_STATUS_INTOPERI |
| // Description : input signal to peripheral, after override is applied |
| #define IO_BANK0_GPIO1_STATUS_INTOPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO1_STATUS_INTOPERI_BITS _u(0x00080000) |
| #define IO_BANK0_GPIO1_STATUS_INTOPERI_MSB _u(19) |
| #define IO_BANK0_GPIO1_STATUS_INTOPERI_LSB _u(19) |
| #define IO_BANK0_GPIO1_STATUS_INTOPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO1_STATUS_INFROMPAD |
| // Description : input signal from pad, before override is applied |
| #define IO_BANK0_GPIO1_STATUS_INFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO1_STATUS_INFROMPAD_BITS _u(0x00020000) |
| #define IO_BANK0_GPIO1_STATUS_INFROMPAD_MSB _u(17) |
| #define IO_BANK0_GPIO1_STATUS_INFROMPAD_LSB _u(17) |
| #define IO_BANK0_GPIO1_STATUS_INFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO1_STATUS_OETOPAD |
| // Description : output enable to pad after register override is applied |
| #define IO_BANK0_GPIO1_STATUS_OETOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO1_STATUS_OETOPAD_BITS _u(0x00002000) |
| #define IO_BANK0_GPIO1_STATUS_OETOPAD_MSB _u(13) |
| #define IO_BANK0_GPIO1_STATUS_OETOPAD_LSB _u(13) |
| #define IO_BANK0_GPIO1_STATUS_OETOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO1_STATUS_OEFROMPERI |
| // Description : output enable from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO1_STATUS_OEFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO1_STATUS_OEFROMPERI_BITS _u(0x00001000) |
| #define IO_BANK0_GPIO1_STATUS_OEFROMPERI_MSB _u(12) |
| #define IO_BANK0_GPIO1_STATUS_OEFROMPERI_LSB _u(12) |
| #define IO_BANK0_GPIO1_STATUS_OEFROMPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO1_STATUS_OUTTOPAD |
| // Description : output signal to pad after register override is applied |
| #define IO_BANK0_GPIO1_STATUS_OUTTOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO1_STATUS_OUTTOPAD_BITS _u(0x00000200) |
| #define IO_BANK0_GPIO1_STATUS_OUTTOPAD_MSB _u(9) |
| #define IO_BANK0_GPIO1_STATUS_OUTTOPAD_LSB _u(9) |
| #define IO_BANK0_GPIO1_STATUS_OUTTOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO1_STATUS_OUTFROMPERI |
| // Description : output signal from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO1_STATUS_OUTFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO1_STATUS_OUTFROMPERI_BITS _u(0x00000100) |
| #define IO_BANK0_GPIO1_STATUS_OUTFROMPERI_MSB _u(8) |
| #define IO_BANK0_GPIO1_STATUS_OUTFROMPERI_LSB _u(8) |
| #define IO_BANK0_GPIO1_STATUS_OUTFROMPERI_ACCESS "RO" |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO1_CTRL |
| // Description : GPIO control including function select and overrides. |
| #define IO_BANK0_GPIO1_CTRL_OFFSET _u(0x0000000c) |
| #define IO_BANK0_GPIO1_CTRL_BITS _u(0x3003331f) |
| #define IO_BANK0_GPIO1_CTRL_RESET _u(0x0000001f) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO1_CTRL_IRQOVER |
| // 0x0 -> don't invert the interrupt |
| // 0x1 -> invert the interrupt |
| // 0x2 -> drive interrupt low |
| // 0x3 -> drive interrupt high |
| #define IO_BANK0_GPIO1_CTRL_IRQOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO1_CTRL_IRQOVER_BITS _u(0x30000000) |
| #define IO_BANK0_GPIO1_CTRL_IRQOVER_MSB _u(29) |
| #define IO_BANK0_GPIO1_CTRL_IRQOVER_LSB _u(28) |
| #define IO_BANK0_GPIO1_CTRL_IRQOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO1_CTRL_IRQOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO1_CTRL_IRQOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO1_CTRL_IRQOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO1_CTRL_IRQOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO1_CTRL_INOVER |
| // 0x0 -> don't invert the peri input |
| // 0x1 -> invert the peri input |
| // 0x2 -> drive peri input low |
| // 0x3 -> drive peri input high |
| #define IO_BANK0_GPIO1_CTRL_INOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO1_CTRL_INOVER_BITS _u(0x00030000) |
| #define IO_BANK0_GPIO1_CTRL_INOVER_MSB _u(17) |
| #define IO_BANK0_GPIO1_CTRL_INOVER_LSB _u(16) |
| #define IO_BANK0_GPIO1_CTRL_INOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO1_CTRL_INOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO1_CTRL_INOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO1_CTRL_INOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO1_CTRL_INOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO1_CTRL_OEOVER |
| // 0x0 -> drive output enable from peripheral signal selected by funcsel |
| // 0x1 -> drive output enable from inverse of peripheral signal selected by funcsel |
| // 0x2 -> disable output |
| // 0x3 -> enable output |
| #define IO_BANK0_GPIO1_CTRL_OEOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO1_CTRL_OEOVER_BITS _u(0x00003000) |
| #define IO_BANK0_GPIO1_CTRL_OEOVER_MSB _u(13) |
| #define IO_BANK0_GPIO1_CTRL_OEOVER_LSB _u(12) |
| #define IO_BANK0_GPIO1_CTRL_OEOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO1_CTRL_OEOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO1_CTRL_OEOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO1_CTRL_OEOVER_VALUE_DISABLE _u(0x2) |
| #define IO_BANK0_GPIO1_CTRL_OEOVER_VALUE_ENABLE _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO1_CTRL_OUTOVER |
| // 0x0 -> drive output from peripheral signal selected by funcsel |
| // 0x1 -> drive output from inverse of peripheral signal selected by funcsel |
| // 0x2 -> drive output low |
| // 0x3 -> drive output high |
| #define IO_BANK0_GPIO1_CTRL_OUTOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO1_CTRL_OUTOVER_BITS _u(0x00000300) |
| #define IO_BANK0_GPIO1_CTRL_OUTOVER_MSB _u(9) |
| #define IO_BANK0_GPIO1_CTRL_OUTOVER_LSB _u(8) |
| #define IO_BANK0_GPIO1_CTRL_OUTOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO1_CTRL_OUTOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO1_CTRL_OUTOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO1_CTRL_OUTOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO1_CTRL_OUTOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO1_CTRL_FUNCSEL |
| // Description : 0-31 -> selects pin function according to the gpio table |
| // 31 == NULL |
| // 0x00 -> jtag_tms |
| // 0x01 -> spi0_ss_n |
| // 0x02 -> uart0_rx |
| // 0x03 -> i2c0_scl |
| // 0x04 -> pwm_b_0 |
| // 0x05 -> sio_1 |
| // 0x06 -> pio0_1 |
| // 0x07 -> pio1_1 |
| // 0x09 -> usb_muxing_vbus_detect |
| // 0x1f -> null |
| #define IO_BANK0_GPIO1_CTRL_FUNCSEL_RESET _u(0x1f) |
| #define IO_BANK0_GPIO1_CTRL_FUNCSEL_BITS _u(0x0000001f) |
| #define IO_BANK0_GPIO1_CTRL_FUNCSEL_MSB _u(4) |
| #define IO_BANK0_GPIO1_CTRL_FUNCSEL_LSB _u(0) |
| #define IO_BANK0_GPIO1_CTRL_FUNCSEL_ACCESS "RW" |
| #define IO_BANK0_GPIO1_CTRL_FUNCSEL_VALUE_JTAG_TMS _u(0x00) |
| #define IO_BANK0_GPIO1_CTRL_FUNCSEL_VALUE_SPI0_SS_N _u(0x01) |
| #define IO_BANK0_GPIO1_CTRL_FUNCSEL_VALUE_UART0_RX _u(0x02) |
| #define IO_BANK0_GPIO1_CTRL_FUNCSEL_VALUE_I2C0_SCL _u(0x03) |
| #define IO_BANK0_GPIO1_CTRL_FUNCSEL_VALUE_PWM_B_0 _u(0x04) |
| #define IO_BANK0_GPIO1_CTRL_FUNCSEL_VALUE_SIO_1 _u(0x05) |
| #define IO_BANK0_GPIO1_CTRL_FUNCSEL_VALUE_PIO0_1 _u(0x06) |
| #define IO_BANK0_GPIO1_CTRL_FUNCSEL_VALUE_PIO1_1 _u(0x07) |
| #define IO_BANK0_GPIO1_CTRL_FUNCSEL_VALUE_USB_MUXING_VBUS_DETECT _u(0x09) |
| #define IO_BANK0_GPIO1_CTRL_FUNCSEL_VALUE_NULL _u(0x1f) |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO2_STATUS |
| // Description : GPIO status |
| #define IO_BANK0_GPIO2_STATUS_OFFSET _u(0x00000010) |
| #define IO_BANK0_GPIO2_STATUS_BITS _u(0x050a3300) |
| #define IO_BANK0_GPIO2_STATUS_RESET _u(0x00000000) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO2_STATUS_IRQTOPROC |
| // Description : interrupt to processors, after override is applied |
| #define IO_BANK0_GPIO2_STATUS_IRQTOPROC_RESET _u(0x0) |
| #define IO_BANK0_GPIO2_STATUS_IRQTOPROC_BITS _u(0x04000000) |
| #define IO_BANK0_GPIO2_STATUS_IRQTOPROC_MSB _u(26) |
| #define IO_BANK0_GPIO2_STATUS_IRQTOPROC_LSB _u(26) |
| #define IO_BANK0_GPIO2_STATUS_IRQTOPROC_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO2_STATUS_IRQFROMPAD |
| // Description : interrupt from pad before override is applied |
| #define IO_BANK0_GPIO2_STATUS_IRQFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO2_STATUS_IRQFROMPAD_BITS _u(0x01000000) |
| #define IO_BANK0_GPIO2_STATUS_IRQFROMPAD_MSB _u(24) |
| #define IO_BANK0_GPIO2_STATUS_IRQFROMPAD_LSB _u(24) |
| #define IO_BANK0_GPIO2_STATUS_IRQFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO2_STATUS_INTOPERI |
| // Description : input signal to peripheral, after override is applied |
| #define IO_BANK0_GPIO2_STATUS_INTOPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO2_STATUS_INTOPERI_BITS _u(0x00080000) |
| #define IO_BANK0_GPIO2_STATUS_INTOPERI_MSB _u(19) |
| #define IO_BANK0_GPIO2_STATUS_INTOPERI_LSB _u(19) |
| #define IO_BANK0_GPIO2_STATUS_INTOPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO2_STATUS_INFROMPAD |
| // Description : input signal from pad, before override is applied |
| #define IO_BANK0_GPIO2_STATUS_INFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO2_STATUS_INFROMPAD_BITS _u(0x00020000) |
| #define IO_BANK0_GPIO2_STATUS_INFROMPAD_MSB _u(17) |
| #define IO_BANK0_GPIO2_STATUS_INFROMPAD_LSB _u(17) |
| #define IO_BANK0_GPIO2_STATUS_INFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO2_STATUS_OETOPAD |
| // Description : output enable to pad after register override is applied |
| #define IO_BANK0_GPIO2_STATUS_OETOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO2_STATUS_OETOPAD_BITS _u(0x00002000) |
| #define IO_BANK0_GPIO2_STATUS_OETOPAD_MSB _u(13) |
| #define IO_BANK0_GPIO2_STATUS_OETOPAD_LSB _u(13) |
| #define IO_BANK0_GPIO2_STATUS_OETOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO2_STATUS_OEFROMPERI |
| // Description : output enable from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO2_STATUS_OEFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO2_STATUS_OEFROMPERI_BITS _u(0x00001000) |
| #define IO_BANK0_GPIO2_STATUS_OEFROMPERI_MSB _u(12) |
| #define IO_BANK0_GPIO2_STATUS_OEFROMPERI_LSB _u(12) |
| #define IO_BANK0_GPIO2_STATUS_OEFROMPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO2_STATUS_OUTTOPAD |
| // Description : output signal to pad after register override is applied |
| #define IO_BANK0_GPIO2_STATUS_OUTTOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO2_STATUS_OUTTOPAD_BITS _u(0x00000200) |
| #define IO_BANK0_GPIO2_STATUS_OUTTOPAD_MSB _u(9) |
| #define IO_BANK0_GPIO2_STATUS_OUTTOPAD_LSB _u(9) |
| #define IO_BANK0_GPIO2_STATUS_OUTTOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO2_STATUS_OUTFROMPERI |
| // Description : output signal from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO2_STATUS_OUTFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO2_STATUS_OUTFROMPERI_BITS _u(0x00000100) |
| #define IO_BANK0_GPIO2_STATUS_OUTFROMPERI_MSB _u(8) |
| #define IO_BANK0_GPIO2_STATUS_OUTFROMPERI_LSB _u(8) |
| #define IO_BANK0_GPIO2_STATUS_OUTFROMPERI_ACCESS "RO" |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO2_CTRL |
| // Description : GPIO control including function select and overrides. |
| #define IO_BANK0_GPIO2_CTRL_OFFSET _u(0x00000014) |
| #define IO_BANK0_GPIO2_CTRL_BITS _u(0x3003331f) |
| #define IO_BANK0_GPIO2_CTRL_RESET _u(0x0000001f) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO2_CTRL_IRQOVER |
| // 0x0 -> don't invert the interrupt |
| // 0x1 -> invert the interrupt |
| // 0x2 -> drive interrupt low |
| // 0x3 -> drive interrupt high |
| #define IO_BANK0_GPIO2_CTRL_IRQOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO2_CTRL_IRQOVER_BITS _u(0x30000000) |
| #define IO_BANK0_GPIO2_CTRL_IRQOVER_MSB _u(29) |
| #define IO_BANK0_GPIO2_CTRL_IRQOVER_LSB _u(28) |
| #define IO_BANK0_GPIO2_CTRL_IRQOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO2_CTRL_IRQOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO2_CTRL_IRQOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO2_CTRL_IRQOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO2_CTRL_IRQOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO2_CTRL_INOVER |
| // 0x0 -> don't invert the peri input |
| // 0x1 -> invert the peri input |
| // 0x2 -> drive peri input low |
| // 0x3 -> drive peri input high |
| #define IO_BANK0_GPIO2_CTRL_INOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO2_CTRL_INOVER_BITS _u(0x00030000) |
| #define IO_BANK0_GPIO2_CTRL_INOVER_MSB _u(17) |
| #define IO_BANK0_GPIO2_CTRL_INOVER_LSB _u(16) |
| #define IO_BANK0_GPIO2_CTRL_INOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO2_CTRL_INOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO2_CTRL_INOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO2_CTRL_INOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO2_CTRL_INOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO2_CTRL_OEOVER |
| // 0x0 -> drive output enable from peripheral signal selected by funcsel |
| // 0x1 -> drive output enable from inverse of peripheral signal selected by funcsel |
| // 0x2 -> disable output |
| // 0x3 -> enable output |
| #define IO_BANK0_GPIO2_CTRL_OEOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO2_CTRL_OEOVER_BITS _u(0x00003000) |
| #define IO_BANK0_GPIO2_CTRL_OEOVER_MSB _u(13) |
| #define IO_BANK0_GPIO2_CTRL_OEOVER_LSB _u(12) |
| #define IO_BANK0_GPIO2_CTRL_OEOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO2_CTRL_OEOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO2_CTRL_OEOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO2_CTRL_OEOVER_VALUE_DISABLE _u(0x2) |
| #define IO_BANK0_GPIO2_CTRL_OEOVER_VALUE_ENABLE _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO2_CTRL_OUTOVER |
| // 0x0 -> drive output from peripheral signal selected by funcsel |
| // 0x1 -> drive output from inverse of peripheral signal selected by funcsel |
| // 0x2 -> drive output low |
| // 0x3 -> drive output high |
| #define IO_BANK0_GPIO2_CTRL_OUTOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO2_CTRL_OUTOVER_BITS _u(0x00000300) |
| #define IO_BANK0_GPIO2_CTRL_OUTOVER_MSB _u(9) |
| #define IO_BANK0_GPIO2_CTRL_OUTOVER_LSB _u(8) |
| #define IO_BANK0_GPIO2_CTRL_OUTOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO2_CTRL_OUTOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO2_CTRL_OUTOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO2_CTRL_OUTOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO2_CTRL_OUTOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO2_CTRL_FUNCSEL |
| // Description : 0-31 -> selects pin function according to the gpio table |
| // 31 == NULL |
| // 0x00 -> jtag_tdi |
| // 0x01 -> spi0_sclk |
| // 0x02 -> uart0_cts |
| // 0x03 -> i2c1_sda |
| // 0x04 -> pwm_a_1 |
| // 0x05 -> sio_2 |
| // 0x06 -> pio0_2 |
| // 0x07 -> pio1_2 |
| // 0x09 -> usb_muxing_vbus_en |
| // 0x1f -> null |
| #define IO_BANK0_GPIO2_CTRL_FUNCSEL_RESET _u(0x1f) |
| #define IO_BANK0_GPIO2_CTRL_FUNCSEL_BITS _u(0x0000001f) |
| #define IO_BANK0_GPIO2_CTRL_FUNCSEL_MSB _u(4) |
| #define IO_BANK0_GPIO2_CTRL_FUNCSEL_LSB _u(0) |
| #define IO_BANK0_GPIO2_CTRL_FUNCSEL_ACCESS "RW" |
| #define IO_BANK0_GPIO2_CTRL_FUNCSEL_VALUE_JTAG_TDI _u(0x00) |
| #define IO_BANK0_GPIO2_CTRL_FUNCSEL_VALUE_SPI0_SCLK _u(0x01) |
| #define IO_BANK0_GPIO2_CTRL_FUNCSEL_VALUE_UART0_CTS _u(0x02) |
| #define IO_BANK0_GPIO2_CTRL_FUNCSEL_VALUE_I2C1_SDA _u(0x03) |
| #define IO_BANK0_GPIO2_CTRL_FUNCSEL_VALUE_PWM_A_1 _u(0x04) |
| #define IO_BANK0_GPIO2_CTRL_FUNCSEL_VALUE_SIO_2 _u(0x05) |
| #define IO_BANK0_GPIO2_CTRL_FUNCSEL_VALUE_PIO0_2 _u(0x06) |
| #define IO_BANK0_GPIO2_CTRL_FUNCSEL_VALUE_PIO1_2 _u(0x07) |
| #define IO_BANK0_GPIO2_CTRL_FUNCSEL_VALUE_USB_MUXING_VBUS_EN _u(0x09) |
| #define IO_BANK0_GPIO2_CTRL_FUNCSEL_VALUE_NULL _u(0x1f) |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO3_STATUS |
| // Description : GPIO status |
| #define IO_BANK0_GPIO3_STATUS_OFFSET _u(0x00000018) |
| #define IO_BANK0_GPIO3_STATUS_BITS _u(0x050a3300) |
| #define IO_BANK0_GPIO3_STATUS_RESET _u(0x00000000) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO3_STATUS_IRQTOPROC |
| // Description : interrupt to processors, after override is applied |
| #define IO_BANK0_GPIO3_STATUS_IRQTOPROC_RESET _u(0x0) |
| #define IO_BANK0_GPIO3_STATUS_IRQTOPROC_BITS _u(0x04000000) |
| #define IO_BANK0_GPIO3_STATUS_IRQTOPROC_MSB _u(26) |
| #define IO_BANK0_GPIO3_STATUS_IRQTOPROC_LSB _u(26) |
| #define IO_BANK0_GPIO3_STATUS_IRQTOPROC_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO3_STATUS_IRQFROMPAD |
| // Description : interrupt from pad before override is applied |
| #define IO_BANK0_GPIO3_STATUS_IRQFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO3_STATUS_IRQFROMPAD_BITS _u(0x01000000) |
| #define IO_BANK0_GPIO3_STATUS_IRQFROMPAD_MSB _u(24) |
| #define IO_BANK0_GPIO3_STATUS_IRQFROMPAD_LSB _u(24) |
| #define IO_BANK0_GPIO3_STATUS_IRQFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO3_STATUS_INTOPERI |
| // Description : input signal to peripheral, after override is applied |
| #define IO_BANK0_GPIO3_STATUS_INTOPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO3_STATUS_INTOPERI_BITS _u(0x00080000) |
| #define IO_BANK0_GPIO3_STATUS_INTOPERI_MSB _u(19) |
| #define IO_BANK0_GPIO3_STATUS_INTOPERI_LSB _u(19) |
| #define IO_BANK0_GPIO3_STATUS_INTOPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO3_STATUS_INFROMPAD |
| // Description : input signal from pad, before override is applied |
| #define IO_BANK0_GPIO3_STATUS_INFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO3_STATUS_INFROMPAD_BITS _u(0x00020000) |
| #define IO_BANK0_GPIO3_STATUS_INFROMPAD_MSB _u(17) |
| #define IO_BANK0_GPIO3_STATUS_INFROMPAD_LSB _u(17) |
| #define IO_BANK0_GPIO3_STATUS_INFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO3_STATUS_OETOPAD |
| // Description : output enable to pad after register override is applied |
| #define IO_BANK0_GPIO3_STATUS_OETOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO3_STATUS_OETOPAD_BITS _u(0x00002000) |
| #define IO_BANK0_GPIO3_STATUS_OETOPAD_MSB _u(13) |
| #define IO_BANK0_GPIO3_STATUS_OETOPAD_LSB _u(13) |
| #define IO_BANK0_GPIO3_STATUS_OETOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO3_STATUS_OEFROMPERI |
| // Description : output enable from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO3_STATUS_OEFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO3_STATUS_OEFROMPERI_BITS _u(0x00001000) |
| #define IO_BANK0_GPIO3_STATUS_OEFROMPERI_MSB _u(12) |
| #define IO_BANK0_GPIO3_STATUS_OEFROMPERI_LSB _u(12) |
| #define IO_BANK0_GPIO3_STATUS_OEFROMPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO3_STATUS_OUTTOPAD |
| // Description : output signal to pad after register override is applied |
| #define IO_BANK0_GPIO3_STATUS_OUTTOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO3_STATUS_OUTTOPAD_BITS _u(0x00000200) |
| #define IO_BANK0_GPIO3_STATUS_OUTTOPAD_MSB _u(9) |
| #define IO_BANK0_GPIO3_STATUS_OUTTOPAD_LSB _u(9) |
| #define IO_BANK0_GPIO3_STATUS_OUTTOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO3_STATUS_OUTFROMPERI |
| // Description : output signal from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO3_STATUS_OUTFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO3_STATUS_OUTFROMPERI_BITS _u(0x00000100) |
| #define IO_BANK0_GPIO3_STATUS_OUTFROMPERI_MSB _u(8) |
| #define IO_BANK0_GPIO3_STATUS_OUTFROMPERI_LSB _u(8) |
| #define IO_BANK0_GPIO3_STATUS_OUTFROMPERI_ACCESS "RO" |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO3_CTRL |
| // Description : GPIO control including function select and overrides. |
| #define IO_BANK0_GPIO3_CTRL_OFFSET _u(0x0000001c) |
| #define IO_BANK0_GPIO3_CTRL_BITS _u(0x3003331f) |
| #define IO_BANK0_GPIO3_CTRL_RESET _u(0x0000001f) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO3_CTRL_IRQOVER |
| // 0x0 -> don't invert the interrupt |
| // 0x1 -> invert the interrupt |
| // 0x2 -> drive interrupt low |
| // 0x3 -> drive interrupt high |
| #define IO_BANK0_GPIO3_CTRL_IRQOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO3_CTRL_IRQOVER_BITS _u(0x30000000) |
| #define IO_BANK0_GPIO3_CTRL_IRQOVER_MSB _u(29) |
| #define IO_BANK0_GPIO3_CTRL_IRQOVER_LSB _u(28) |
| #define IO_BANK0_GPIO3_CTRL_IRQOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO3_CTRL_IRQOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO3_CTRL_IRQOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO3_CTRL_IRQOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO3_CTRL_IRQOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO3_CTRL_INOVER |
| // 0x0 -> don't invert the peri input |
| // 0x1 -> invert the peri input |
| // 0x2 -> drive peri input low |
| // 0x3 -> drive peri input high |
| #define IO_BANK0_GPIO3_CTRL_INOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO3_CTRL_INOVER_BITS _u(0x00030000) |
| #define IO_BANK0_GPIO3_CTRL_INOVER_MSB _u(17) |
| #define IO_BANK0_GPIO3_CTRL_INOVER_LSB _u(16) |
| #define IO_BANK0_GPIO3_CTRL_INOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO3_CTRL_INOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO3_CTRL_INOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO3_CTRL_INOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO3_CTRL_INOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO3_CTRL_OEOVER |
| // 0x0 -> drive output enable from peripheral signal selected by funcsel |
| // 0x1 -> drive output enable from inverse of peripheral signal selected by funcsel |
| // 0x2 -> disable output |
| // 0x3 -> enable output |
| #define IO_BANK0_GPIO3_CTRL_OEOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO3_CTRL_OEOVER_BITS _u(0x00003000) |
| #define IO_BANK0_GPIO3_CTRL_OEOVER_MSB _u(13) |
| #define IO_BANK0_GPIO3_CTRL_OEOVER_LSB _u(12) |
| #define IO_BANK0_GPIO3_CTRL_OEOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO3_CTRL_OEOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO3_CTRL_OEOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO3_CTRL_OEOVER_VALUE_DISABLE _u(0x2) |
| #define IO_BANK0_GPIO3_CTRL_OEOVER_VALUE_ENABLE _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO3_CTRL_OUTOVER |
| // 0x0 -> drive output from peripheral signal selected by funcsel |
| // 0x1 -> drive output from inverse of peripheral signal selected by funcsel |
| // 0x2 -> drive output low |
| // 0x3 -> drive output high |
| #define IO_BANK0_GPIO3_CTRL_OUTOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO3_CTRL_OUTOVER_BITS _u(0x00000300) |
| #define IO_BANK0_GPIO3_CTRL_OUTOVER_MSB _u(9) |
| #define IO_BANK0_GPIO3_CTRL_OUTOVER_LSB _u(8) |
| #define IO_BANK0_GPIO3_CTRL_OUTOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO3_CTRL_OUTOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO3_CTRL_OUTOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO3_CTRL_OUTOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO3_CTRL_OUTOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO3_CTRL_FUNCSEL |
| // Description : 0-31 -> selects pin function according to the gpio table |
| // 31 == NULL |
| // 0x00 -> jtag_tdo |
| // 0x01 -> spi0_tx |
| // 0x02 -> uart0_rts |
| // 0x03 -> i2c1_scl |
| // 0x04 -> pwm_b_1 |
| // 0x05 -> sio_3 |
| // 0x06 -> pio0_3 |
| // 0x07 -> pio1_3 |
| // 0x09 -> usb_muxing_overcurr_detect |
| // 0x1f -> null |
| #define IO_BANK0_GPIO3_CTRL_FUNCSEL_RESET _u(0x1f) |
| #define IO_BANK0_GPIO3_CTRL_FUNCSEL_BITS _u(0x0000001f) |
| #define IO_BANK0_GPIO3_CTRL_FUNCSEL_MSB _u(4) |
| #define IO_BANK0_GPIO3_CTRL_FUNCSEL_LSB _u(0) |
| #define IO_BANK0_GPIO3_CTRL_FUNCSEL_ACCESS "RW" |
| #define IO_BANK0_GPIO3_CTRL_FUNCSEL_VALUE_JTAG_TDO _u(0x00) |
| #define IO_BANK0_GPIO3_CTRL_FUNCSEL_VALUE_SPI0_TX _u(0x01) |
| #define IO_BANK0_GPIO3_CTRL_FUNCSEL_VALUE_UART0_RTS _u(0x02) |
| #define IO_BANK0_GPIO3_CTRL_FUNCSEL_VALUE_I2C1_SCL _u(0x03) |
| #define IO_BANK0_GPIO3_CTRL_FUNCSEL_VALUE_PWM_B_1 _u(0x04) |
| #define IO_BANK0_GPIO3_CTRL_FUNCSEL_VALUE_SIO_3 _u(0x05) |
| #define IO_BANK0_GPIO3_CTRL_FUNCSEL_VALUE_PIO0_3 _u(0x06) |
| #define IO_BANK0_GPIO3_CTRL_FUNCSEL_VALUE_PIO1_3 _u(0x07) |
| #define IO_BANK0_GPIO3_CTRL_FUNCSEL_VALUE_USB_MUXING_OVERCURR_DETECT _u(0x09) |
| #define IO_BANK0_GPIO3_CTRL_FUNCSEL_VALUE_NULL _u(0x1f) |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO4_STATUS |
| // Description : GPIO status |
| #define IO_BANK0_GPIO4_STATUS_OFFSET _u(0x00000020) |
| #define IO_BANK0_GPIO4_STATUS_BITS _u(0x050a3300) |
| #define IO_BANK0_GPIO4_STATUS_RESET _u(0x00000000) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO4_STATUS_IRQTOPROC |
| // Description : interrupt to processors, after override is applied |
| #define IO_BANK0_GPIO4_STATUS_IRQTOPROC_RESET _u(0x0) |
| #define IO_BANK0_GPIO4_STATUS_IRQTOPROC_BITS _u(0x04000000) |
| #define IO_BANK0_GPIO4_STATUS_IRQTOPROC_MSB _u(26) |
| #define IO_BANK0_GPIO4_STATUS_IRQTOPROC_LSB _u(26) |
| #define IO_BANK0_GPIO4_STATUS_IRQTOPROC_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO4_STATUS_IRQFROMPAD |
| // Description : interrupt from pad before override is applied |
| #define IO_BANK0_GPIO4_STATUS_IRQFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO4_STATUS_IRQFROMPAD_BITS _u(0x01000000) |
| #define IO_BANK0_GPIO4_STATUS_IRQFROMPAD_MSB _u(24) |
| #define IO_BANK0_GPIO4_STATUS_IRQFROMPAD_LSB _u(24) |
| #define IO_BANK0_GPIO4_STATUS_IRQFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO4_STATUS_INTOPERI |
| // Description : input signal to peripheral, after override is applied |
| #define IO_BANK0_GPIO4_STATUS_INTOPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO4_STATUS_INTOPERI_BITS _u(0x00080000) |
| #define IO_BANK0_GPIO4_STATUS_INTOPERI_MSB _u(19) |
| #define IO_BANK0_GPIO4_STATUS_INTOPERI_LSB _u(19) |
| #define IO_BANK0_GPIO4_STATUS_INTOPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO4_STATUS_INFROMPAD |
| // Description : input signal from pad, before override is applied |
| #define IO_BANK0_GPIO4_STATUS_INFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO4_STATUS_INFROMPAD_BITS _u(0x00020000) |
| #define IO_BANK0_GPIO4_STATUS_INFROMPAD_MSB _u(17) |
| #define IO_BANK0_GPIO4_STATUS_INFROMPAD_LSB _u(17) |
| #define IO_BANK0_GPIO4_STATUS_INFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO4_STATUS_OETOPAD |
| // Description : output enable to pad after register override is applied |
| #define IO_BANK0_GPIO4_STATUS_OETOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO4_STATUS_OETOPAD_BITS _u(0x00002000) |
| #define IO_BANK0_GPIO4_STATUS_OETOPAD_MSB _u(13) |
| #define IO_BANK0_GPIO4_STATUS_OETOPAD_LSB _u(13) |
| #define IO_BANK0_GPIO4_STATUS_OETOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO4_STATUS_OEFROMPERI |
| // Description : output enable from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO4_STATUS_OEFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO4_STATUS_OEFROMPERI_BITS _u(0x00001000) |
| #define IO_BANK0_GPIO4_STATUS_OEFROMPERI_MSB _u(12) |
| #define IO_BANK0_GPIO4_STATUS_OEFROMPERI_LSB _u(12) |
| #define IO_BANK0_GPIO4_STATUS_OEFROMPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO4_STATUS_OUTTOPAD |
| // Description : output signal to pad after register override is applied |
| #define IO_BANK0_GPIO4_STATUS_OUTTOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO4_STATUS_OUTTOPAD_BITS _u(0x00000200) |
| #define IO_BANK0_GPIO4_STATUS_OUTTOPAD_MSB _u(9) |
| #define IO_BANK0_GPIO4_STATUS_OUTTOPAD_LSB _u(9) |
| #define IO_BANK0_GPIO4_STATUS_OUTTOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO4_STATUS_OUTFROMPERI |
| // Description : output signal from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO4_STATUS_OUTFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO4_STATUS_OUTFROMPERI_BITS _u(0x00000100) |
| #define IO_BANK0_GPIO4_STATUS_OUTFROMPERI_MSB _u(8) |
| #define IO_BANK0_GPIO4_STATUS_OUTFROMPERI_LSB _u(8) |
| #define IO_BANK0_GPIO4_STATUS_OUTFROMPERI_ACCESS "RO" |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO4_CTRL |
| // Description : GPIO control including function select and overrides. |
| #define IO_BANK0_GPIO4_CTRL_OFFSET _u(0x00000024) |
| #define IO_BANK0_GPIO4_CTRL_BITS _u(0x3003331f) |
| #define IO_BANK0_GPIO4_CTRL_RESET _u(0x0000001f) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO4_CTRL_IRQOVER |
| // 0x0 -> don't invert the interrupt |
| // 0x1 -> invert the interrupt |
| // 0x2 -> drive interrupt low |
| // 0x3 -> drive interrupt high |
| #define IO_BANK0_GPIO4_CTRL_IRQOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO4_CTRL_IRQOVER_BITS _u(0x30000000) |
| #define IO_BANK0_GPIO4_CTRL_IRQOVER_MSB _u(29) |
| #define IO_BANK0_GPIO4_CTRL_IRQOVER_LSB _u(28) |
| #define IO_BANK0_GPIO4_CTRL_IRQOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO4_CTRL_IRQOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO4_CTRL_IRQOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO4_CTRL_IRQOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO4_CTRL_IRQOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO4_CTRL_INOVER |
| // 0x0 -> don't invert the peri input |
| // 0x1 -> invert the peri input |
| // 0x2 -> drive peri input low |
| // 0x3 -> drive peri input high |
| #define IO_BANK0_GPIO4_CTRL_INOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO4_CTRL_INOVER_BITS _u(0x00030000) |
| #define IO_BANK0_GPIO4_CTRL_INOVER_MSB _u(17) |
| #define IO_BANK0_GPIO4_CTRL_INOVER_LSB _u(16) |
| #define IO_BANK0_GPIO4_CTRL_INOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO4_CTRL_INOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO4_CTRL_INOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO4_CTRL_INOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO4_CTRL_INOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO4_CTRL_OEOVER |
| // 0x0 -> drive output enable from peripheral signal selected by funcsel |
| // 0x1 -> drive output enable from inverse of peripheral signal selected by funcsel |
| // 0x2 -> disable output |
| // 0x3 -> enable output |
| #define IO_BANK0_GPIO4_CTRL_OEOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO4_CTRL_OEOVER_BITS _u(0x00003000) |
| #define IO_BANK0_GPIO4_CTRL_OEOVER_MSB _u(13) |
| #define IO_BANK0_GPIO4_CTRL_OEOVER_LSB _u(12) |
| #define IO_BANK0_GPIO4_CTRL_OEOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO4_CTRL_OEOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO4_CTRL_OEOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO4_CTRL_OEOVER_VALUE_DISABLE _u(0x2) |
| #define IO_BANK0_GPIO4_CTRL_OEOVER_VALUE_ENABLE _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO4_CTRL_OUTOVER |
| // 0x0 -> drive output from peripheral signal selected by funcsel |
| // 0x1 -> drive output from inverse of peripheral signal selected by funcsel |
| // 0x2 -> drive output low |
| // 0x3 -> drive output high |
| #define IO_BANK0_GPIO4_CTRL_OUTOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO4_CTRL_OUTOVER_BITS _u(0x00000300) |
| #define IO_BANK0_GPIO4_CTRL_OUTOVER_MSB _u(9) |
| #define IO_BANK0_GPIO4_CTRL_OUTOVER_LSB _u(8) |
| #define IO_BANK0_GPIO4_CTRL_OUTOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO4_CTRL_OUTOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO4_CTRL_OUTOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO4_CTRL_OUTOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO4_CTRL_OUTOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO4_CTRL_FUNCSEL |
| // Description : 0-31 -> selects pin function according to the gpio table |
| // 31 == NULL |
| // 0x01 -> spi0_rx |
| // 0x02 -> uart1_tx |
| // 0x03 -> i2c0_sda |
| // 0x04 -> pwm_a_2 |
| // 0x05 -> sio_4 |
| // 0x06 -> pio0_4 |
| // 0x07 -> pio1_4 |
| // 0x09 -> usb_muxing_vbus_detect |
| // 0x1f -> null |
| #define IO_BANK0_GPIO4_CTRL_FUNCSEL_RESET _u(0x1f) |
| #define IO_BANK0_GPIO4_CTRL_FUNCSEL_BITS _u(0x0000001f) |
| #define IO_BANK0_GPIO4_CTRL_FUNCSEL_MSB _u(4) |
| #define IO_BANK0_GPIO4_CTRL_FUNCSEL_LSB _u(0) |
| #define IO_BANK0_GPIO4_CTRL_FUNCSEL_ACCESS "RW" |
| #define IO_BANK0_GPIO4_CTRL_FUNCSEL_VALUE_SPI0_RX _u(0x01) |
| #define IO_BANK0_GPIO4_CTRL_FUNCSEL_VALUE_UART1_TX _u(0x02) |
| #define IO_BANK0_GPIO4_CTRL_FUNCSEL_VALUE_I2C0_SDA _u(0x03) |
| #define IO_BANK0_GPIO4_CTRL_FUNCSEL_VALUE_PWM_A_2 _u(0x04) |
| #define IO_BANK0_GPIO4_CTRL_FUNCSEL_VALUE_SIO_4 _u(0x05) |
| #define IO_BANK0_GPIO4_CTRL_FUNCSEL_VALUE_PIO0_4 _u(0x06) |
| #define IO_BANK0_GPIO4_CTRL_FUNCSEL_VALUE_PIO1_4 _u(0x07) |
| #define IO_BANK0_GPIO4_CTRL_FUNCSEL_VALUE_USB_MUXING_VBUS_DETECT _u(0x09) |
| #define IO_BANK0_GPIO4_CTRL_FUNCSEL_VALUE_NULL _u(0x1f) |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO5_STATUS |
| // Description : GPIO status |
| #define IO_BANK0_GPIO5_STATUS_OFFSET _u(0x00000028) |
| #define IO_BANK0_GPIO5_STATUS_BITS _u(0x050a3300) |
| #define IO_BANK0_GPIO5_STATUS_RESET _u(0x00000000) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO5_STATUS_IRQTOPROC |
| // Description : interrupt to processors, after override is applied |
| #define IO_BANK0_GPIO5_STATUS_IRQTOPROC_RESET _u(0x0) |
| #define IO_BANK0_GPIO5_STATUS_IRQTOPROC_BITS _u(0x04000000) |
| #define IO_BANK0_GPIO5_STATUS_IRQTOPROC_MSB _u(26) |
| #define IO_BANK0_GPIO5_STATUS_IRQTOPROC_LSB _u(26) |
| #define IO_BANK0_GPIO5_STATUS_IRQTOPROC_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO5_STATUS_IRQFROMPAD |
| // Description : interrupt from pad before override is applied |
| #define IO_BANK0_GPIO5_STATUS_IRQFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO5_STATUS_IRQFROMPAD_BITS _u(0x01000000) |
| #define IO_BANK0_GPIO5_STATUS_IRQFROMPAD_MSB _u(24) |
| #define IO_BANK0_GPIO5_STATUS_IRQFROMPAD_LSB _u(24) |
| #define IO_BANK0_GPIO5_STATUS_IRQFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO5_STATUS_INTOPERI |
| // Description : input signal to peripheral, after override is applied |
| #define IO_BANK0_GPIO5_STATUS_INTOPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO5_STATUS_INTOPERI_BITS _u(0x00080000) |
| #define IO_BANK0_GPIO5_STATUS_INTOPERI_MSB _u(19) |
| #define IO_BANK0_GPIO5_STATUS_INTOPERI_LSB _u(19) |
| #define IO_BANK0_GPIO5_STATUS_INTOPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO5_STATUS_INFROMPAD |
| // Description : input signal from pad, before override is applied |
| #define IO_BANK0_GPIO5_STATUS_INFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO5_STATUS_INFROMPAD_BITS _u(0x00020000) |
| #define IO_BANK0_GPIO5_STATUS_INFROMPAD_MSB _u(17) |
| #define IO_BANK0_GPIO5_STATUS_INFROMPAD_LSB _u(17) |
| #define IO_BANK0_GPIO5_STATUS_INFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO5_STATUS_OETOPAD |
| // Description : output enable to pad after register override is applied |
| #define IO_BANK0_GPIO5_STATUS_OETOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO5_STATUS_OETOPAD_BITS _u(0x00002000) |
| #define IO_BANK0_GPIO5_STATUS_OETOPAD_MSB _u(13) |
| #define IO_BANK0_GPIO5_STATUS_OETOPAD_LSB _u(13) |
| #define IO_BANK0_GPIO5_STATUS_OETOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO5_STATUS_OEFROMPERI |
| // Description : output enable from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO5_STATUS_OEFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO5_STATUS_OEFROMPERI_BITS _u(0x00001000) |
| #define IO_BANK0_GPIO5_STATUS_OEFROMPERI_MSB _u(12) |
| #define IO_BANK0_GPIO5_STATUS_OEFROMPERI_LSB _u(12) |
| #define IO_BANK0_GPIO5_STATUS_OEFROMPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO5_STATUS_OUTTOPAD |
| // Description : output signal to pad after register override is applied |
| #define IO_BANK0_GPIO5_STATUS_OUTTOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO5_STATUS_OUTTOPAD_BITS _u(0x00000200) |
| #define IO_BANK0_GPIO5_STATUS_OUTTOPAD_MSB _u(9) |
| #define IO_BANK0_GPIO5_STATUS_OUTTOPAD_LSB _u(9) |
| #define IO_BANK0_GPIO5_STATUS_OUTTOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO5_STATUS_OUTFROMPERI |
| // Description : output signal from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO5_STATUS_OUTFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO5_STATUS_OUTFROMPERI_BITS _u(0x00000100) |
| #define IO_BANK0_GPIO5_STATUS_OUTFROMPERI_MSB _u(8) |
| #define IO_BANK0_GPIO5_STATUS_OUTFROMPERI_LSB _u(8) |
| #define IO_BANK0_GPIO5_STATUS_OUTFROMPERI_ACCESS "RO" |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO5_CTRL |
| // Description : GPIO control including function select and overrides. |
| #define IO_BANK0_GPIO5_CTRL_OFFSET _u(0x0000002c) |
| #define IO_BANK0_GPIO5_CTRL_BITS _u(0x3003331f) |
| #define IO_BANK0_GPIO5_CTRL_RESET _u(0x0000001f) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO5_CTRL_IRQOVER |
| // 0x0 -> don't invert the interrupt |
| // 0x1 -> invert the interrupt |
| // 0x2 -> drive interrupt low |
| // 0x3 -> drive interrupt high |
| #define IO_BANK0_GPIO5_CTRL_IRQOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO5_CTRL_IRQOVER_BITS _u(0x30000000) |
| #define IO_BANK0_GPIO5_CTRL_IRQOVER_MSB _u(29) |
| #define IO_BANK0_GPIO5_CTRL_IRQOVER_LSB _u(28) |
| #define IO_BANK0_GPIO5_CTRL_IRQOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO5_CTRL_IRQOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO5_CTRL_IRQOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO5_CTRL_IRQOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO5_CTRL_IRQOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO5_CTRL_INOVER |
| // 0x0 -> don't invert the peri input |
| // 0x1 -> invert the peri input |
| // 0x2 -> drive peri input low |
| // 0x3 -> drive peri input high |
| #define IO_BANK0_GPIO5_CTRL_INOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO5_CTRL_INOVER_BITS _u(0x00030000) |
| #define IO_BANK0_GPIO5_CTRL_INOVER_MSB _u(17) |
| #define IO_BANK0_GPIO5_CTRL_INOVER_LSB _u(16) |
| #define IO_BANK0_GPIO5_CTRL_INOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO5_CTRL_INOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO5_CTRL_INOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO5_CTRL_INOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO5_CTRL_INOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO5_CTRL_OEOVER |
| // 0x0 -> drive output enable from peripheral signal selected by funcsel |
| // 0x1 -> drive output enable from inverse of peripheral signal selected by funcsel |
| // 0x2 -> disable output |
| // 0x3 -> enable output |
| #define IO_BANK0_GPIO5_CTRL_OEOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO5_CTRL_OEOVER_BITS _u(0x00003000) |
| #define IO_BANK0_GPIO5_CTRL_OEOVER_MSB _u(13) |
| #define IO_BANK0_GPIO5_CTRL_OEOVER_LSB _u(12) |
| #define IO_BANK0_GPIO5_CTRL_OEOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO5_CTRL_OEOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO5_CTRL_OEOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO5_CTRL_OEOVER_VALUE_DISABLE _u(0x2) |
| #define IO_BANK0_GPIO5_CTRL_OEOVER_VALUE_ENABLE _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO5_CTRL_OUTOVER |
| // 0x0 -> drive output from peripheral signal selected by funcsel |
| // 0x1 -> drive output from inverse of peripheral signal selected by funcsel |
| // 0x2 -> drive output low |
| // 0x3 -> drive output high |
| #define IO_BANK0_GPIO5_CTRL_OUTOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO5_CTRL_OUTOVER_BITS _u(0x00000300) |
| #define IO_BANK0_GPIO5_CTRL_OUTOVER_MSB _u(9) |
| #define IO_BANK0_GPIO5_CTRL_OUTOVER_LSB _u(8) |
| #define IO_BANK0_GPIO5_CTRL_OUTOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO5_CTRL_OUTOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO5_CTRL_OUTOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO5_CTRL_OUTOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO5_CTRL_OUTOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO5_CTRL_FUNCSEL |
| // Description : 0-31 -> selects pin function according to the gpio table |
| // 31 == NULL |
| // 0x01 -> spi0_ss_n |
| // 0x02 -> uart1_rx |
| // 0x03 -> i2c0_scl |
| // 0x04 -> pwm_b_2 |
| // 0x05 -> sio_5 |
| // 0x06 -> pio0_5 |
| // 0x07 -> pio1_5 |
| // 0x09 -> usb_muxing_vbus_en |
| // 0x1f -> null |
| #define IO_BANK0_GPIO5_CTRL_FUNCSEL_RESET _u(0x1f) |
| #define IO_BANK0_GPIO5_CTRL_FUNCSEL_BITS _u(0x0000001f) |
| #define IO_BANK0_GPIO5_CTRL_FUNCSEL_MSB _u(4) |
| #define IO_BANK0_GPIO5_CTRL_FUNCSEL_LSB _u(0) |
| #define IO_BANK0_GPIO5_CTRL_FUNCSEL_ACCESS "RW" |
| #define IO_BANK0_GPIO5_CTRL_FUNCSEL_VALUE_SPI0_SS_N _u(0x01) |
| #define IO_BANK0_GPIO5_CTRL_FUNCSEL_VALUE_UART1_RX _u(0x02) |
| #define IO_BANK0_GPIO5_CTRL_FUNCSEL_VALUE_I2C0_SCL _u(0x03) |
| #define IO_BANK0_GPIO5_CTRL_FUNCSEL_VALUE_PWM_B_2 _u(0x04) |
| #define IO_BANK0_GPIO5_CTRL_FUNCSEL_VALUE_SIO_5 _u(0x05) |
| #define IO_BANK0_GPIO5_CTRL_FUNCSEL_VALUE_PIO0_5 _u(0x06) |
| #define IO_BANK0_GPIO5_CTRL_FUNCSEL_VALUE_PIO1_5 _u(0x07) |
| #define IO_BANK0_GPIO5_CTRL_FUNCSEL_VALUE_USB_MUXING_VBUS_EN _u(0x09) |
| #define IO_BANK0_GPIO5_CTRL_FUNCSEL_VALUE_NULL _u(0x1f) |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO6_STATUS |
| // Description : GPIO status |
| #define IO_BANK0_GPIO6_STATUS_OFFSET _u(0x00000030) |
| #define IO_BANK0_GPIO6_STATUS_BITS _u(0x050a3300) |
| #define IO_BANK0_GPIO6_STATUS_RESET _u(0x00000000) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO6_STATUS_IRQTOPROC |
| // Description : interrupt to processors, after override is applied |
| #define IO_BANK0_GPIO6_STATUS_IRQTOPROC_RESET _u(0x0) |
| #define IO_BANK0_GPIO6_STATUS_IRQTOPROC_BITS _u(0x04000000) |
| #define IO_BANK0_GPIO6_STATUS_IRQTOPROC_MSB _u(26) |
| #define IO_BANK0_GPIO6_STATUS_IRQTOPROC_LSB _u(26) |
| #define IO_BANK0_GPIO6_STATUS_IRQTOPROC_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO6_STATUS_IRQFROMPAD |
| // Description : interrupt from pad before override is applied |
| #define IO_BANK0_GPIO6_STATUS_IRQFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO6_STATUS_IRQFROMPAD_BITS _u(0x01000000) |
| #define IO_BANK0_GPIO6_STATUS_IRQFROMPAD_MSB _u(24) |
| #define IO_BANK0_GPIO6_STATUS_IRQFROMPAD_LSB _u(24) |
| #define IO_BANK0_GPIO6_STATUS_IRQFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO6_STATUS_INTOPERI |
| // Description : input signal to peripheral, after override is applied |
| #define IO_BANK0_GPIO6_STATUS_INTOPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO6_STATUS_INTOPERI_BITS _u(0x00080000) |
| #define IO_BANK0_GPIO6_STATUS_INTOPERI_MSB _u(19) |
| #define IO_BANK0_GPIO6_STATUS_INTOPERI_LSB _u(19) |
| #define IO_BANK0_GPIO6_STATUS_INTOPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO6_STATUS_INFROMPAD |
| // Description : input signal from pad, before override is applied |
| #define IO_BANK0_GPIO6_STATUS_INFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO6_STATUS_INFROMPAD_BITS _u(0x00020000) |
| #define IO_BANK0_GPIO6_STATUS_INFROMPAD_MSB _u(17) |
| #define IO_BANK0_GPIO6_STATUS_INFROMPAD_LSB _u(17) |
| #define IO_BANK0_GPIO6_STATUS_INFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO6_STATUS_OETOPAD |
| // Description : output enable to pad after register override is applied |
| #define IO_BANK0_GPIO6_STATUS_OETOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO6_STATUS_OETOPAD_BITS _u(0x00002000) |
| #define IO_BANK0_GPIO6_STATUS_OETOPAD_MSB _u(13) |
| #define IO_BANK0_GPIO6_STATUS_OETOPAD_LSB _u(13) |
| #define IO_BANK0_GPIO6_STATUS_OETOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO6_STATUS_OEFROMPERI |
| // Description : output enable from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO6_STATUS_OEFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO6_STATUS_OEFROMPERI_BITS _u(0x00001000) |
| #define IO_BANK0_GPIO6_STATUS_OEFROMPERI_MSB _u(12) |
| #define IO_BANK0_GPIO6_STATUS_OEFROMPERI_LSB _u(12) |
| #define IO_BANK0_GPIO6_STATUS_OEFROMPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO6_STATUS_OUTTOPAD |
| // Description : output signal to pad after register override is applied |
| #define IO_BANK0_GPIO6_STATUS_OUTTOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO6_STATUS_OUTTOPAD_BITS _u(0x00000200) |
| #define IO_BANK0_GPIO6_STATUS_OUTTOPAD_MSB _u(9) |
| #define IO_BANK0_GPIO6_STATUS_OUTTOPAD_LSB _u(9) |
| #define IO_BANK0_GPIO6_STATUS_OUTTOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO6_STATUS_OUTFROMPERI |
| // Description : output signal from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO6_STATUS_OUTFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO6_STATUS_OUTFROMPERI_BITS _u(0x00000100) |
| #define IO_BANK0_GPIO6_STATUS_OUTFROMPERI_MSB _u(8) |
| #define IO_BANK0_GPIO6_STATUS_OUTFROMPERI_LSB _u(8) |
| #define IO_BANK0_GPIO6_STATUS_OUTFROMPERI_ACCESS "RO" |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO6_CTRL |
| // Description : GPIO control including function select and overrides. |
| #define IO_BANK0_GPIO6_CTRL_OFFSET _u(0x00000034) |
| #define IO_BANK0_GPIO6_CTRL_BITS _u(0x3003331f) |
| #define IO_BANK0_GPIO6_CTRL_RESET _u(0x0000001f) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO6_CTRL_IRQOVER |
| // 0x0 -> don't invert the interrupt |
| // 0x1 -> invert the interrupt |
| // 0x2 -> drive interrupt low |
| // 0x3 -> drive interrupt high |
| #define IO_BANK0_GPIO6_CTRL_IRQOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO6_CTRL_IRQOVER_BITS _u(0x30000000) |
| #define IO_BANK0_GPIO6_CTRL_IRQOVER_MSB _u(29) |
| #define IO_BANK0_GPIO6_CTRL_IRQOVER_LSB _u(28) |
| #define IO_BANK0_GPIO6_CTRL_IRQOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO6_CTRL_IRQOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO6_CTRL_IRQOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO6_CTRL_IRQOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO6_CTRL_IRQOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO6_CTRL_INOVER |
| // 0x0 -> don't invert the peri input |
| // 0x1 -> invert the peri input |
| // 0x2 -> drive peri input low |
| // 0x3 -> drive peri input high |
| #define IO_BANK0_GPIO6_CTRL_INOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO6_CTRL_INOVER_BITS _u(0x00030000) |
| #define IO_BANK0_GPIO6_CTRL_INOVER_MSB _u(17) |
| #define IO_BANK0_GPIO6_CTRL_INOVER_LSB _u(16) |
| #define IO_BANK0_GPIO6_CTRL_INOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO6_CTRL_INOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO6_CTRL_INOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO6_CTRL_INOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO6_CTRL_INOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO6_CTRL_OEOVER |
| // 0x0 -> drive output enable from peripheral signal selected by funcsel |
| // 0x1 -> drive output enable from inverse of peripheral signal selected by funcsel |
| // 0x2 -> disable output |
| // 0x3 -> enable output |
| #define IO_BANK0_GPIO6_CTRL_OEOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO6_CTRL_OEOVER_BITS _u(0x00003000) |
| #define IO_BANK0_GPIO6_CTRL_OEOVER_MSB _u(13) |
| #define IO_BANK0_GPIO6_CTRL_OEOVER_LSB _u(12) |
| #define IO_BANK0_GPIO6_CTRL_OEOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO6_CTRL_OEOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO6_CTRL_OEOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO6_CTRL_OEOVER_VALUE_DISABLE _u(0x2) |
| #define IO_BANK0_GPIO6_CTRL_OEOVER_VALUE_ENABLE _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO6_CTRL_OUTOVER |
| // 0x0 -> drive output from peripheral signal selected by funcsel |
| // 0x1 -> drive output from inverse of peripheral signal selected by funcsel |
| // 0x2 -> drive output low |
| // 0x3 -> drive output high |
| #define IO_BANK0_GPIO6_CTRL_OUTOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO6_CTRL_OUTOVER_BITS _u(0x00000300) |
| #define IO_BANK0_GPIO6_CTRL_OUTOVER_MSB _u(9) |
| #define IO_BANK0_GPIO6_CTRL_OUTOVER_LSB _u(8) |
| #define IO_BANK0_GPIO6_CTRL_OUTOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO6_CTRL_OUTOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO6_CTRL_OUTOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO6_CTRL_OUTOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO6_CTRL_OUTOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO6_CTRL_FUNCSEL |
| // Description : 0-31 -> selects pin function according to the gpio table |
| // 31 == NULL |
| // 0x01 -> spi0_sclk |
| // 0x02 -> uart1_cts |
| // 0x03 -> i2c1_sda |
| // 0x04 -> pwm_a_3 |
| // 0x05 -> sio_6 |
| // 0x06 -> pio0_6 |
| // 0x07 -> pio1_6 |
| // 0x08 -> usb_muxing_extphy_softcon |
| // 0x09 -> usb_muxing_overcurr_detect |
| // 0x1f -> null |
| #define IO_BANK0_GPIO6_CTRL_FUNCSEL_RESET _u(0x1f) |
| #define IO_BANK0_GPIO6_CTRL_FUNCSEL_BITS _u(0x0000001f) |
| #define IO_BANK0_GPIO6_CTRL_FUNCSEL_MSB _u(4) |
| #define IO_BANK0_GPIO6_CTRL_FUNCSEL_LSB _u(0) |
| #define IO_BANK0_GPIO6_CTRL_FUNCSEL_ACCESS "RW" |
| #define IO_BANK0_GPIO6_CTRL_FUNCSEL_VALUE_SPI0_SCLK _u(0x01) |
| #define IO_BANK0_GPIO6_CTRL_FUNCSEL_VALUE_UART1_CTS _u(0x02) |
| #define IO_BANK0_GPIO6_CTRL_FUNCSEL_VALUE_I2C1_SDA _u(0x03) |
| #define IO_BANK0_GPIO6_CTRL_FUNCSEL_VALUE_PWM_A_3 _u(0x04) |
| #define IO_BANK0_GPIO6_CTRL_FUNCSEL_VALUE_SIO_6 _u(0x05) |
| #define IO_BANK0_GPIO6_CTRL_FUNCSEL_VALUE_PIO0_6 _u(0x06) |
| #define IO_BANK0_GPIO6_CTRL_FUNCSEL_VALUE_PIO1_6 _u(0x07) |
| #define IO_BANK0_GPIO6_CTRL_FUNCSEL_VALUE_USB_MUXING_EXTPHY_SOFTCON _u(0x08) |
| #define IO_BANK0_GPIO6_CTRL_FUNCSEL_VALUE_USB_MUXING_OVERCURR_DETECT _u(0x09) |
| #define IO_BANK0_GPIO6_CTRL_FUNCSEL_VALUE_NULL _u(0x1f) |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO7_STATUS |
| // Description : GPIO status |
| #define IO_BANK0_GPIO7_STATUS_OFFSET _u(0x00000038) |
| #define IO_BANK0_GPIO7_STATUS_BITS _u(0x050a3300) |
| #define IO_BANK0_GPIO7_STATUS_RESET _u(0x00000000) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO7_STATUS_IRQTOPROC |
| // Description : interrupt to processors, after override is applied |
| #define IO_BANK0_GPIO7_STATUS_IRQTOPROC_RESET _u(0x0) |
| #define IO_BANK0_GPIO7_STATUS_IRQTOPROC_BITS _u(0x04000000) |
| #define IO_BANK0_GPIO7_STATUS_IRQTOPROC_MSB _u(26) |
| #define IO_BANK0_GPIO7_STATUS_IRQTOPROC_LSB _u(26) |
| #define IO_BANK0_GPIO7_STATUS_IRQTOPROC_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO7_STATUS_IRQFROMPAD |
| // Description : interrupt from pad before override is applied |
| #define IO_BANK0_GPIO7_STATUS_IRQFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO7_STATUS_IRQFROMPAD_BITS _u(0x01000000) |
| #define IO_BANK0_GPIO7_STATUS_IRQFROMPAD_MSB _u(24) |
| #define IO_BANK0_GPIO7_STATUS_IRQFROMPAD_LSB _u(24) |
| #define IO_BANK0_GPIO7_STATUS_IRQFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO7_STATUS_INTOPERI |
| // Description : input signal to peripheral, after override is applied |
| #define IO_BANK0_GPIO7_STATUS_INTOPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO7_STATUS_INTOPERI_BITS _u(0x00080000) |
| #define IO_BANK0_GPIO7_STATUS_INTOPERI_MSB _u(19) |
| #define IO_BANK0_GPIO7_STATUS_INTOPERI_LSB _u(19) |
| #define IO_BANK0_GPIO7_STATUS_INTOPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO7_STATUS_INFROMPAD |
| // Description : input signal from pad, before override is applied |
| #define IO_BANK0_GPIO7_STATUS_INFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO7_STATUS_INFROMPAD_BITS _u(0x00020000) |
| #define IO_BANK0_GPIO7_STATUS_INFROMPAD_MSB _u(17) |
| #define IO_BANK0_GPIO7_STATUS_INFROMPAD_LSB _u(17) |
| #define IO_BANK0_GPIO7_STATUS_INFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO7_STATUS_OETOPAD |
| // Description : output enable to pad after register override is applied |
| #define IO_BANK0_GPIO7_STATUS_OETOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO7_STATUS_OETOPAD_BITS _u(0x00002000) |
| #define IO_BANK0_GPIO7_STATUS_OETOPAD_MSB _u(13) |
| #define IO_BANK0_GPIO7_STATUS_OETOPAD_LSB _u(13) |
| #define IO_BANK0_GPIO7_STATUS_OETOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO7_STATUS_OEFROMPERI |
| // Description : output enable from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO7_STATUS_OEFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO7_STATUS_OEFROMPERI_BITS _u(0x00001000) |
| #define IO_BANK0_GPIO7_STATUS_OEFROMPERI_MSB _u(12) |
| #define IO_BANK0_GPIO7_STATUS_OEFROMPERI_LSB _u(12) |
| #define IO_BANK0_GPIO7_STATUS_OEFROMPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO7_STATUS_OUTTOPAD |
| // Description : output signal to pad after register override is applied |
| #define IO_BANK0_GPIO7_STATUS_OUTTOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO7_STATUS_OUTTOPAD_BITS _u(0x00000200) |
| #define IO_BANK0_GPIO7_STATUS_OUTTOPAD_MSB _u(9) |
| #define IO_BANK0_GPIO7_STATUS_OUTTOPAD_LSB _u(9) |
| #define IO_BANK0_GPIO7_STATUS_OUTTOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO7_STATUS_OUTFROMPERI |
| // Description : output signal from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO7_STATUS_OUTFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO7_STATUS_OUTFROMPERI_BITS _u(0x00000100) |
| #define IO_BANK0_GPIO7_STATUS_OUTFROMPERI_MSB _u(8) |
| #define IO_BANK0_GPIO7_STATUS_OUTFROMPERI_LSB _u(8) |
| #define IO_BANK0_GPIO7_STATUS_OUTFROMPERI_ACCESS "RO" |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO7_CTRL |
| // Description : GPIO control including function select and overrides. |
| #define IO_BANK0_GPIO7_CTRL_OFFSET _u(0x0000003c) |
| #define IO_BANK0_GPIO7_CTRL_BITS _u(0x3003331f) |
| #define IO_BANK0_GPIO7_CTRL_RESET _u(0x0000001f) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO7_CTRL_IRQOVER |
| // 0x0 -> don't invert the interrupt |
| // 0x1 -> invert the interrupt |
| // 0x2 -> drive interrupt low |
| // 0x3 -> drive interrupt high |
| #define IO_BANK0_GPIO7_CTRL_IRQOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO7_CTRL_IRQOVER_BITS _u(0x30000000) |
| #define IO_BANK0_GPIO7_CTRL_IRQOVER_MSB _u(29) |
| #define IO_BANK0_GPIO7_CTRL_IRQOVER_LSB _u(28) |
| #define IO_BANK0_GPIO7_CTRL_IRQOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO7_CTRL_IRQOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO7_CTRL_IRQOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO7_CTRL_IRQOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO7_CTRL_IRQOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO7_CTRL_INOVER |
| // 0x0 -> don't invert the peri input |
| // 0x1 -> invert the peri input |
| // 0x2 -> drive peri input low |
| // 0x3 -> drive peri input high |
| #define IO_BANK0_GPIO7_CTRL_INOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO7_CTRL_INOVER_BITS _u(0x00030000) |
| #define IO_BANK0_GPIO7_CTRL_INOVER_MSB _u(17) |
| #define IO_BANK0_GPIO7_CTRL_INOVER_LSB _u(16) |
| #define IO_BANK0_GPIO7_CTRL_INOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO7_CTRL_INOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO7_CTRL_INOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO7_CTRL_INOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO7_CTRL_INOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO7_CTRL_OEOVER |
| // 0x0 -> drive output enable from peripheral signal selected by funcsel |
| // 0x1 -> drive output enable from inverse of peripheral signal selected by funcsel |
| // 0x2 -> disable output |
| // 0x3 -> enable output |
| #define IO_BANK0_GPIO7_CTRL_OEOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO7_CTRL_OEOVER_BITS _u(0x00003000) |
| #define IO_BANK0_GPIO7_CTRL_OEOVER_MSB _u(13) |
| #define IO_BANK0_GPIO7_CTRL_OEOVER_LSB _u(12) |
| #define IO_BANK0_GPIO7_CTRL_OEOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO7_CTRL_OEOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO7_CTRL_OEOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO7_CTRL_OEOVER_VALUE_DISABLE _u(0x2) |
| #define IO_BANK0_GPIO7_CTRL_OEOVER_VALUE_ENABLE _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO7_CTRL_OUTOVER |
| // 0x0 -> drive output from peripheral signal selected by funcsel |
| // 0x1 -> drive output from inverse of peripheral signal selected by funcsel |
| // 0x2 -> drive output low |
| // 0x3 -> drive output high |
| #define IO_BANK0_GPIO7_CTRL_OUTOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO7_CTRL_OUTOVER_BITS _u(0x00000300) |
| #define IO_BANK0_GPIO7_CTRL_OUTOVER_MSB _u(9) |
| #define IO_BANK0_GPIO7_CTRL_OUTOVER_LSB _u(8) |
| #define IO_BANK0_GPIO7_CTRL_OUTOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO7_CTRL_OUTOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO7_CTRL_OUTOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO7_CTRL_OUTOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO7_CTRL_OUTOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO7_CTRL_FUNCSEL |
| // Description : 0-31 -> selects pin function according to the gpio table |
| // 31 == NULL |
| // 0x01 -> spi0_tx |
| // 0x02 -> uart1_rts |
| // 0x03 -> i2c1_scl |
| // 0x04 -> pwm_b_3 |
| // 0x05 -> sio_7 |
| // 0x06 -> pio0_7 |
| // 0x07 -> pio1_7 |
| // 0x08 -> usb_muxing_extphy_oe_n |
| // 0x09 -> usb_muxing_vbus_detect |
| // 0x1f -> null |
| #define IO_BANK0_GPIO7_CTRL_FUNCSEL_RESET _u(0x1f) |
| #define IO_BANK0_GPIO7_CTRL_FUNCSEL_BITS _u(0x0000001f) |
| #define IO_BANK0_GPIO7_CTRL_FUNCSEL_MSB _u(4) |
| #define IO_BANK0_GPIO7_CTRL_FUNCSEL_LSB _u(0) |
| #define IO_BANK0_GPIO7_CTRL_FUNCSEL_ACCESS "RW" |
| #define IO_BANK0_GPIO7_CTRL_FUNCSEL_VALUE_SPI0_TX _u(0x01) |
| #define IO_BANK0_GPIO7_CTRL_FUNCSEL_VALUE_UART1_RTS _u(0x02) |
| #define IO_BANK0_GPIO7_CTRL_FUNCSEL_VALUE_I2C1_SCL _u(0x03) |
| #define IO_BANK0_GPIO7_CTRL_FUNCSEL_VALUE_PWM_B_3 _u(0x04) |
| #define IO_BANK0_GPIO7_CTRL_FUNCSEL_VALUE_SIO_7 _u(0x05) |
| #define IO_BANK0_GPIO7_CTRL_FUNCSEL_VALUE_PIO0_7 _u(0x06) |
| #define IO_BANK0_GPIO7_CTRL_FUNCSEL_VALUE_PIO1_7 _u(0x07) |
| #define IO_BANK0_GPIO7_CTRL_FUNCSEL_VALUE_USB_MUXING_EXTPHY_OE_N _u(0x08) |
| #define IO_BANK0_GPIO7_CTRL_FUNCSEL_VALUE_USB_MUXING_VBUS_DETECT _u(0x09) |
| #define IO_BANK0_GPIO7_CTRL_FUNCSEL_VALUE_NULL _u(0x1f) |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO8_STATUS |
| // Description : GPIO status |
| #define IO_BANK0_GPIO8_STATUS_OFFSET _u(0x00000040) |
| #define IO_BANK0_GPIO8_STATUS_BITS _u(0x050a3300) |
| #define IO_BANK0_GPIO8_STATUS_RESET _u(0x00000000) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO8_STATUS_IRQTOPROC |
| // Description : interrupt to processors, after override is applied |
| #define IO_BANK0_GPIO8_STATUS_IRQTOPROC_RESET _u(0x0) |
| #define IO_BANK0_GPIO8_STATUS_IRQTOPROC_BITS _u(0x04000000) |
| #define IO_BANK0_GPIO8_STATUS_IRQTOPROC_MSB _u(26) |
| #define IO_BANK0_GPIO8_STATUS_IRQTOPROC_LSB _u(26) |
| #define IO_BANK0_GPIO8_STATUS_IRQTOPROC_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO8_STATUS_IRQFROMPAD |
| // Description : interrupt from pad before override is applied |
| #define IO_BANK0_GPIO8_STATUS_IRQFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO8_STATUS_IRQFROMPAD_BITS _u(0x01000000) |
| #define IO_BANK0_GPIO8_STATUS_IRQFROMPAD_MSB _u(24) |
| #define IO_BANK0_GPIO8_STATUS_IRQFROMPAD_LSB _u(24) |
| #define IO_BANK0_GPIO8_STATUS_IRQFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO8_STATUS_INTOPERI |
| // Description : input signal to peripheral, after override is applied |
| #define IO_BANK0_GPIO8_STATUS_INTOPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO8_STATUS_INTOPERI_BITS _u(0x00080000) |
| #define IO_BANK0_GPIO8_STATUS_INTOPERI_MSB _u(19) |
| #define IO_BANK0_GPIO8_STATUS_INTOPERI_LSB _u(19) |
| #define IO_BANK0_GPIO8_STATUS_INTOPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO8_STATUS_INFROMPAD |
| // Description : input signal from pad, before override is applied |
| #define IO_BANK0_GPIO8_STATUS_INFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO8_STATUS_INFROMPAD_BITS _u(0x00020000) |
| #define IO_BANK0_GPIO8_STATUS_INFROMPAD_MSB _u(17) |
| #define IO_BANK0_GPIO8_STATUS_INFROMPAD_LSB _u(17) |
| #define IO_BANK0_GPIO8_STATUS_INFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO8_STATUS_OETOPAD |
| // Description : output enable to pad after register override is applied |
| #define IO_BANK0_GPIO8_STATUS_OETOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO8_STATUS_OETOPAD_BITS _u(0x00002000) |
| #define IO_BANK0_GPIO8_STATUS_OETOPAD_MSB _u(13) |
| #define IO_BANK0_GPIO8_STATUS_OETOPAD_LSB _u(13) |
| #define IO_BANK0_GPIO8_STATUS_OETOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO8_STATUS_OEFROMPERI |
| // Description : output enable from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO8_STATUS_OEFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO8_STATUS_OEFROMPERI_BITS _u(0x00001000) |
| #define IO_BANK0_GPIO8_STATUS_OEFROMPERI_MSB _u(12) |
| #define IO_BANK0_GPIO8_STATUS_OEFROMPERI_LSB _u(12) |
| #define IO_BANK0_GPIO8_STATUS_OEFROMPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO8_STATUS_OUTTOPAD |
| // Description : output signal to pad after register override is applied |
| #define IO_BANK0_GPIO8_STATUS_OUTTOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO8_STATUS_OUTTOPAD_BITS _u(0x00000200) |
| #define IO_BANK0_GPIO8_STATUS_OUTTOPAD_MSB _u(9) |
| #define IO_BANK0_GPIO8_STATUS_OUTTOPAD_LSB _u(9) |
| #define IO_BANK0_GPIO8_STATUS_OUTTOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO8_STATUS_OUTFROMPERI |
| // Description : output signal from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO8_STATUS_OUTFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO8_STATUS_OUTFROMPERI_BITS _u(0x00000100) |
| #define IO_BANK0_GPIO8_STATUS_OUTFROMPERI_MSB _u(8) |
| #define IO_BANK0_GPIO8_STATUS_OUTFROMPERI_LSB _u(8) |
| #define IO_BANK0_GPIO8_STATUS_OUTFROMPERI_ACCESS "RO" |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO8_CTRL |
| // Description : GPIO control including function select and overrides. |
| #define IO_BANK0_GPIO8_CTRL_OFFSET _u(0x00000044) |
| #define IO_BANK0_GPIO8_CTRL_BITS _u(0x3003331f) |
| #define IO_BANK0_GPIO8_CTRL_RESET _u(0x0000001f) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO8_CTRL_IRQOVER |
| // 0x0 -> don't invert the interrupt |
| // 0x1 -> invert the interrupt |
| // 0x2 -> drive interrupt low |
| // 0x3 -> drive interrupt high |
| #define IO_BANK0_GPIO8_CTRL_IRQOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO8_CTRL_IRQOVER_BITS _u(0x30000000) |
| #define IO_BANK0_GPIO8_CTRL_IRQOVER_MSB _u(29) |
| #define IO_BANK0_GPIO8_CTRL_IRQOVER_LSB _u(28) |
| #define IO_BANK0_GPIO8_CTRL_IRQOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO8_CTRL_IRQOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO8_CTRL_IRQOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO8_CTRL_IRQOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO8_CTRL_IRQOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO8_CTRL_INOVER |
| // 0x0 -> don't invert the peri input |
| // 0x1 -> invert the peri input |
| // 0x2 -> drive peri input low |
| // 0x3 -> drive peri input high |
| #define IO_BANK0_GPIO8_CTRL_INOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO8_CTRL_INOVER_BITS _u(0x00030000) |
| #define IO_BANK0_GPIO8_CTRL_INOVER_MSB _u(17) |
| #define IO_BANK0_GPIO8_CTRL_INOVER_LSB _u(16) |
| #define IO_BANK0_GPIO8_CTRL_INOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO8_CTRL_INOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO8_CTRL_INOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO8_CTRL_INOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO8_CTRL_INOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO8_CTRL_OEOVER |
| // 0x0 -> drive output enable from peripheral signal selected by funcsel |
| // 0x1 -> drive output enable from inverse of peripheral signal selected by funcsel |
| // 0x2 -> disable output |
| // 0x3 -> enable output |
| #define IO_BANK0_GPIO8_CTRL_OEOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO8_CTRL_OEOVER_BITS _u(0x00003000) |
| #define IO_BANK0_GPIO8_CTRL_OEOVER_MSB _u(13) |
| #define IO_BANK0_GPIO8_CTRL_OEOVER_LSB _u(12) |
| #define IO_BANK0_GPIO8_CTRL_OEOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO8_CTRL_OEOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO8_CTRL_OEOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO8_CTRL_OEOVER_VALUE_DISABLE _u(0x2) |
| #define IO_BANK0_GPIO8_CTRL_OEOVER_VALUE_ENABLE _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO8_CTRL_OUTOVER |
| // 0x0 -> drive output from peripheral signal selected by funcsel |
| // 0x1 -> drive output from inverse of peripheral signal selected by funcsel |
| // 0x2 -> drive output low |
| // 0x3 -> drive output high |
| #define IO_BANK0_GPIO8_CTRL_OUTOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO8_CTRL_OUTOVER_BITS _u(0x00000300) |
| #define IO_BANK0_GPIO8_CTRL_OUTOVER_MSB _u(9) |
| #define IO_BANK0_GPIO8_CTRL_OUTOVER_LSB _u(8) |
| #define IO_BANK0_GPIO8_CTRL_OUTOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO8_CTRL_OUTOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO8_CTRL_OUTOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO8_CTRL_OUTOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO8_CTRL_OUTOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO8_CTRL_FUNCSEL |
| // Description : 0-31 -> selects pin function according to the gpio table |
| // 31 == NULL |
| // 0x01 -> spi1_rx |
| // 0x02 -> uart1_tx |
| // 0x03 -> i2c0_sda |
| // 0x04 -> pwm_a_4 |
| // 0x05 -> sio_8 |
| // 0x06 -> pio0_8 |
| // 0x07 -> pio1_8 |
| // 0x08 -> usb_muxing_extphy_rcv |
| // 0x09 -> usb_muxing_vbus_en |
| // 0x1f -> null |
| #define IO_BANK0_GPIO8_CTRL_FUNCSEL_RESET _u(0x1f) |
| #define IO_BANK0_GPIO8_CTRL_FUNCSEL_BITS _u(0x0000001f) |
| #define IO_BANK0_GPIO8_CTRL_FUNCSEL_MSB _u(4) |
| #define IO_BANK0_GPIO8_CTRL_FUNCSEL_LSB _u(0) |
| #define IO_BANK0_GPIO8_CTRL_FUNCSEL_ACCESS "RW" |
| #define IO_BANK0_GPIO8_CTRL_FUNCSEL_VALUE_SPI1_RX _u(0x01) |
| #define IO_BANK0_GPIO8_CTRL_FUNCSEL_VALUE_UART1_TX _u(0x02) |
| #define IO_BANK0_GPIO8_CTRL_FUNCSEL_VALUE_I2C0_SDA _u(0x03) |
| #define IO_BANK0_GPIO8_CTRL_FUNCSEL_VALUE_PWM_A_4 _u(0x04) |
| #define IO_BANK0_GPIO8_CTRL_FUNCSEL_VALUE_SIO_8 _u(0x05) |
| #define IO_BANK0_GPIO8_CTRL_FUNCSEL_VALUE_PIO0_8 _u(0x06) |
| #define IO_BANK0_GPIO8_CTRL_FUNCSEL_VALUE_PIO1_8 _u(0x07) |
| #define IO_BANK0_GPIO8_CTRL_FUNCSEL_VALUE_USB_MUXING_EXTPHY_RCV _u(0x08) |
| #define IO_BANK0_GPIO8_CTRL_FUNCSEL_VALUE_USB_MUXING_VBUS_EN _u(0x09) |
| #define IO_BANK0_GPIO8_CTRL_FUNCSEL_VALUE_NULL _u(0x1f) |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO9_STATUS |
| // Description : GPIO status |
| #define IO_BANK0_GPIO9_STATUS_OFFSET _u(0x00000048) |
| #define IO_BANK0_GPIO9_STATUS_BITS _u(0x050a3300) |
| #define IO_BANK0_GPIO9_STATUS_RESET _u(0x00000000) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO9_STATUS_IRQTOPROC |
| // Description : interrupt to processors, after override is applied |
| #define IO_BANK0_GPIO9_STATUS_IRQTOPROC_RESET _u(0x0) |
| #define IO_BANK0_GPIO9_STATUS_IRQTOPROC_BITS _u(0x04000000) |
| #define IO_BANK0_GPIO9_STATUS_IRQTOPROC_MSB _u(26) |
| #define IO_BANK0_GPIO9_STATUS_IRQTOPROC_LSB _u(26) |
| #define IO_BANK0_GPIO9_STATUS_IRQTOPROC_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO9_STATUS_IRQFROMPAD |
| // Description : interrupt from pad before override is applied |
| #define IO_BANK0_GPIO9_STATUS_IRQFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO9_STATUS_IRQFROMPAD_BITS _u(0x01000000) |
| #define IO_BANK0_GPIO9_STATUS_IRQFROMPAD_MSB _u(24) |
| #define IO_BANK0_GPIO9_STATUS_IRQFROMPAD_LSB _u(24) |
| #define IO_BANK0_GPIO9_STATUS_IRQFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO9_STATUS_INTOPERI |
| // Description : input signal to peripheral, after override is applied |
| #define IO_BANK0_GPIO9_STATUS_INTOPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO9_STATUS_INTOPERI_BITS _u(0x00080000) |
| #define IO_BANK0_GPIO9_STATUS_INTOPERI_MSB _u(19) |
| #define IO_BANK0_GPIO9_STATUS_INTOPERI_LSB _u(19) |
| #define IO_BANK0_GPIO9_STATUS_INTOPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO9_STATUS_INFROMPAD |
| // Description : input signal from pad, before override is applied |
| #define IO_BANK0_GPIO9_STATUS_INFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO9_STATUS_INFROMPAD_BITS _u(0x00020000) |
| #define IO_BANK0_GPIO9_STATUS_INFROMPAD_MSB _u(17) |
| #define IO_BANK0_GPIO9_STATUS_INFROMPAD_LSB _u(17) |
| #define IO_BANK0_GPIO9_STATUS_INFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO9_STATUS_OETOPAD |
| // Description : output enable to pad after register override is applied |
| #define IO_BANK0_GPIO9_STATUS_OETOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO9_STATUS_OETOPAD_BITS _u(0x00002000) |
| #define IO_BANK0_GPIO9_STATUS_OETOPAD_MSB _u(13) |
| #define IO_BANK0_GPIO9_STATUS_OETOPAD_LSB _u(13) |
| #define IO_BANK0_GPIO9_STATUS_OETOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO9_STATUS_OEFROMPERI |
| // Description : output enable from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO9_STATUS_OEFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO9_STATUS_OEFROMPERI_BITS _u(0x00001000) |
| #define IO_BANK0_GPIO9_STATUS_OEFROMPERI_MSB _u(12) |
| #define IO_BANK0_GPIO9_STATUS_OEFROMPERI_LSB _u(12) |
| #define IO_BANK0_GPIO9_STATUS_OEFROMPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO9_STATUS_OUTTOPAD |
| // Description : output signal to pad after register override is applied |
| #define IO_BANK0_GPIO9_STATUS_OUTTOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO9_STATUS_OUTTOPAD_BITS _u(0x00000200) |
| #define IO_BANK0_GPIO9_STATUS_OUTTOPAD_MSB _u(9) |
| #define IO_BANK0_GPIO9_STATUS_OUTTOPAD_LSB _u(9) |
| #define IO_BANK0_GPIO9_STATUS_OUTTOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO9_STATUS_OUTFROMPERI |
| // Description : output signal from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO9_STATUS_OUTFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO9_STATUS_OUTFROMPERI_BITS _u(0x00000100) |
| #define IO_BANK0_GPIO9_STATUS_OUTFROMPERI_MSB _u(8) |
| #define IO_BANK0_GPIO9_STATUS_OUTFROMPERI_LSB _u(8) |
| #define IO_BANK0_GPIO9_STATUS_OUTFROMPERI_ACCESS "RO" |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO9_CTRL |
| // Description : GPIO control including function select and overrides. |
| #define IO_BANK0_GPIO9_CTRL_OFFSET _u(0x0000004c) |
| #define IO_BANK0_GPIO9_CTRL_BITS _u(0x3003331f) |
| #define IO_BANK0_GPIO9_CTRL_RESET _u(0x0000001f) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO9_CTRL_IRQOVER |
| // 0x0 -> don't invert the interrupt |
| // 0x1 -> invert the interrupt |
| // 0x2 -> drive interrupt low |
| // 0x3 -> drive interrupt high |
| #define IO_BANK0_GPIO9_CTRL_IRQOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO9_CTRL_IRQOVER_BITS _u(0x30000000) |
| #define IO_BANK0_GPIO9_CTRL_IRQOVER_MSB _u(29) |
| #define IO_BANK0_GPIO9_CTRL_IRQOVER_LSB _u(28) |
| #define IO_BANK0_GPIO9_CTRL_IRQOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO9_CTRL_IRQOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO9_CTRL_IRQOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO9_CTRL_IRQOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO9_CTRL_IRQOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO9_CTRL_INOVER |
| // 0x0 -> don't invert the peri input |
| // 0x1 -> invert the peri input |
| // 0x2 -> drive peri input low |
| // 0x3 -> drive peri input high |
| #define IO_BANK0_GPIO9_CTRL_INOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO9_CTRL_INOVER_BITS _u(0x00030000) |
| #define IO_BANK0_GPIO9_CTRL_INOVER_MSB _u(17) |
| #define IO_BANK0_GPIO9_CTRL_INOVER_LSB _u(16) |
| #define IO_BANK0_GPIO9_CTRL_INOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO9_CTRL_INOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO9_CTRL_INOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO9_CTRL_INOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO9_CTRL_INOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO9_CTRL_OEOVER |
| // 0x0 -> drive output enable from peripheral signal selected by funcsel |
| // 0x1 -> drive output enable from inverse of peripheral signal selected by funcsel |
| // 0x2 -> disable output |
| // 0x3 -> enable output |
| #define IO_BANK0_GPIO9_CTRL_OEOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO9_CTRL_OEOVER_BITS _u(0x00003000) |
| #define IO_BANK0_GPIO9_CTRL_OEOVER_MSB _u(13) |
| #define IO_BANK0_GPIO9_CTRL_OEOVER_LSB _u(12) |
| #define IO_BANK0_GPIO9_CTRL_OEOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO9_CTRL_OEOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO9_CTRL_OEOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO9_CTRL_OEOVER_VALUE_DISABLE _u(0x2) |
| #define IO_BANK0_GPIO9_CTRL_OEOVER_VALUE_ENABLE _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO9_CTRL_OUTOVER |
| // 0x0 -> drive output from peripheral signal selected by funcsel |
| // 0x1 -> drive output from inverse of peripheral signal selected by funcsel |
| // 0x2 -> drive output low |
| // 0x3 -> drive output high |
| #define IO_BANK0_GPIO9_CTRL_OUTOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO9_CTRL_OUTOVER_BITS _u(0x00000300) |
| #define IO_BANK0_GPIO9_CTRL_OUTOVER_MSB _u(9) |
| #define IO_BANK0_GPIO9_CTRL_OUTOVER_LSB _u(8) |
| #define IO_BANK0_GPIO9_CTRL_OUTOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO9_CTRL_OUTOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO9_CTRL_OUTOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO9_CTRL_OUTOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO9_CTRL_OUTOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO9_CTRL_FUNCSEL |
| // Description : 0-31 -> selects pin function according to the gpio table |
| // 31 == NULL |
| // 0x01 -> spi1_ss_n |
| // 0x02 -> uart1_rx |
| // 0x03 -> i2c0_scl |
| // 0x04 -> pwm_b_4 |
| // 0x05 -> sio_9 |
| // 0x06 -> pio0_9 |
| // 0x07 -> pio1_9 |
| // 0x08 -> usb_muxing_extphy_vp |
| // 0x09 -> usb_muxing_overcurr_detect |
| // 0x1f -> null |
| #define IO_BANK0_GPIO9_CTRL_FUNCSEL_RESET _u(0x1f) |
| #define IO_BANK0_GPIO9_CTRL_FUNCSEL_BITS _u(0x0000001f) |
| #define IO_BANK0_GPIO9_CTRL_FUNCSEL_MSB _u(4) |
| #define IO_BANK0_GPIO9_CTRL_FUNCSEL_LSB _u(0) |
| #define IO_BANK0_GPIO9_CTRL_FUNCSEL_ACCESS "RW" |
| #define IO_BANK0_GPIO9_CTRL_FUNCSEL_VALUE_SPI1_SS_N _u(0x01) |
| #define IO_BANK0_GPIO9_CTRL_FUNCSEL_VALUE_UART1_RX _u(0x02) |
| #define IO_BANK0_GPIO9_CTRL_FUNCSEL_VALUE_I2C0_SCL _u(0x03) |
| #define IO_BANK0_GPIO9_CTRL_FUNCSEL_VALUE_PWM_B_4 _u(0x04) |
| #define IO_BANK0_GPIO9_CTRL_FUNCSEL_VALUE_SIO_9 _u(0x05) |
| #define IO_BANK0_GPIO9_CTRL_FUNCSEL_VALUE_PIO0_9 _u(0x06) |
| #define IO_BANK0_GPIO9_CTRL_FUNCSEL_VALUE_PIO1_9 _u(0x07) |
| #define IO_BANK0_GPIO9_CTRL_FUNCSEL_VALUE_USB_MUXING_EXTPHY_VP _u(0x08) |
| #define IO_BANK0_GPIO9_CTRL_FUNCSEL_VALUE_USB_MUXING_OVERCURR_DETECT _u(0x09) |
| #define IO_BANK0_GPIO9_CTRL_FUNCSEL_VALUE_NULL _u(0x1f) |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO10_STATUS |
| // Description : GPIO status |
| #define IO_BANK0_GPIO10_STATUS_OFFSET _u(0x00000050) |
| #define IO_BANK0_GPIO10_STATUS_BITS _u(0x050a3300) |
| #define IO_BANK0_GPIO10_STATUS_RESET _u(0x00000000) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO10_STATUS_IRQTOPROC |
| // Description : interrupt to processors, after override is applied |
| #define IO_BANK0_GPIO10_STATUS_IRQTOPROC_RESET _u(0x0) |
| #define IO_BANK0_GPIO10_STATUS_IRQTOPROC_BITS _u(0x04000000) |
| #define IO_BANK0_GPIO10_STATUS_IRQTOPROC_MSB _u(26) |
| #define IO_BANK0_GPIO10_STATUS_IRQTOPROC_LSB _u(26) |
| #define IO_BANK0_GPIO10_STATUS_IRQTOPROC_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO10_STATUS_IRQFROMPAD |
| // Description : interrupt from pad before override is applied |
| #define IO_BANK0_GPIO10_STATUS_IRQFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO10_STATUS_IRQFROMPAD_BITS _u(0x01000000) |
| #define IO_BANK0_GPIO10_STATUS_IRQFROMPAD_MSB _u(24) |
| #define IO_BANK0_GPIO10_STATUS_IRQFROMPAD_LSB _u(24) |
| #define IO_BANK0_GPIO10_STATUS_IRQFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO10_STATUS_INTOPERI |
| // Description : input signal to peripheral, after override is applied |
| #define IO_BANK0_GPIO10_STATUS_INTOPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO10_STATUS_INTOPERI_BITS _u(0x00080000) |
| #define IO_BANK0_GPIO10_STATUS_INTOPERI_MSB _u(19) |
| #define IO_BANK0_GPIO10_STATUS_INTOPERI_LSB _u(19) |
| #define IO_BANK0_GPIO10_STATUS_INTOPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO10_STATUS_INFROMPAD |
| // Description : input signal from pad, before override is applied |
| #define IO_BANK0_GPIO10_STATUS_INFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO10_STATUS_INFROMPAD_BITS _u(0x00020000) |
| #define IO_BANK0_GPIO10_STATUS_INFROMPAD_MSB _u(17) |
| #define IO_BANK0_GPIO10_STATUS_INFROMPAD_LSB _u(17) |
| #define IO_BANK0_GPIO10_STATUS_INFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO10_STATUS_OETOPAD |
| // Description : output enable to pad after register override is applied |
| #define IO_BANK0_GPIO10_STATUS_OETOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO10_STATUS_OETOPAD_BITS _u(0x00002000) |
| #define IO_BANK0_GPIO10_STATUS_OETOPAD_MSB _u(13) |
| #define IO_BANK0_GPIO10_STATUS_OETOPAD_LSB _u(13) |
| #define IO_BANK0_GPIO10_STATUS_OETOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO10_STATUS_OEFROMPERI |
| // Description : output enable from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO10_STATUS_OEFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO10_STATUS_OEFROMPERI_BITS _u(0x00001000) |
| #define IO_BANK0_GPIO10_STATUS_OEFROMPERI_MSB _u(12) |
| #define IO_BANK0_GPIO10_STATUS_OEFROMPERI_LSB _u(12) |
| #define IO_BANK0_GPIO10_STATUS_OEFROMPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO10_STATUS_OUTTOPAD |
| // Description : output signal to pad after register override is applied |
| #define IO_BANK0_GPIO10_STATUS_OUTTOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO10_STATUS_OUTTOPAD_BITS _u(0x00000200) |
| #define IO_BANK0_GPIO10_STATUS_OUTTOPAD_MSB _u(9) |
| #define IO_BANK0_GPIO10_STATUS_OUTTOPAD_LSB _u(9) |
| #define IO_BANK0_GPIO10_STATUS_OUTTOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO10_STATUS_OUTFROMPERI |
| // Description : output signal from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO10_STATUS_OUTFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO10_STATUS_OUTFROMPERI_BITS _u(0x00000100) |
| #define IO_BANK0_GPIO10_STATUS_OUTFROMPERI_MSB _u(8) |
| #define IO_BANK0_GPIO10_STATUS_OUTFROMPERI_LSB _u(8) |
| #define IO_BANK0_GPIO10_STATUS_OUTFROMPERI_ACCESS "RO" |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO10_CTRL |
| // Description : GPIO control including function select and overrides. |
| #define IO_BANK0_GPIO10_CTRL_OFFSET _u(0x00000054) |
| #define IO_BANK0_GPIO10_CTRL_BITS _u(0x3003331f) |
| #define IO_BANK0_GPIO10_CTRL_RESET _u(0x0000001f) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO10_CTRL_IRQOVER |
| // 0x0 -> don't invert the interrupt |
| // 0x1 -> invert the interrupt |
| // 0x2 -> drive interrupt low |
| // 0x3 -> drive interrupt high |
| #define IO_BANK0_GPIO10_CTRL_IRQOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO10_CTRL_IRQOVER_BITS _u(0x30000000) |
| #define IO_BANK0_GPIO10_CTRL_IRQOVER_MSB _u(29) |
| #define IO_BANK0_GPIO10_CTRL_IRQOVER_LSB _u(28) |
| #define IO_BANK0_GPIO10_CTRL_IRQOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO10_CTRL_IRQOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO10_CTRL_IRQOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO10_CTRL_IRQOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO10_CTRL_IRQOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO10_CTRL_INOVER |
| // 0x0 -> don't invert the peri input |
| // 0x1 -> invert the peri input |
| // 0x2 -> drive peri input low |
| // 0x3 -> drive peri input high |
| #define IO_BANK0_GPIO10_CTRL_INOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO10_CTRL_INOVER_BITS _u(0x00030000) |
| #define IO_BANK0_GPIO10_CTRL_INOVER_MSB _u(17) |
| #define IO_BANK0_GPIO10_CTRL_INOVER_LSB _u(16) |
| #define IO_BANK0_GPIO10_CTRL_INOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO10_CTRL_INOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO10_CTRL_INOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO10_CTRL_INOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO10_CTRL_INOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO10_CTRL_OEOVER |
| // 0x0 -> drive output enable from peripheral signal selected by funcsel |
| // 0x1 -> drive output enable from inverse of peripheral signal selected by funcsel |
| // 0x2 -> disable output |
| // 0x3 -> enable output |
| #define IO_BANK0_GPIO10_CTRL_OEOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO10_CTRL_OEOVER_BITS _u(0x00003000) |
| #define IO_BANK0_GPIO10_CTRL_OEOVER_MSB _u(13) |
| #define IO_BANK0_GPIO10_CTRL_OEOVER_LSB _u(12) |
| #define IO_BANK0_GPIO10_CTRL_OEOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO10_CTRL_OEOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO10_CTRL_OEOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO10_CTRL_OEOVER_VALUE_DISABLE _u(0x2) |
| #define IO_BANK0_GPIO10_CTRL_OEOVER_VALUE_ENABLE _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO10_CTRL_OUTOVER |
| // 0x0 -> drive output from peripheral signal selected by funcsel |
| // 0x1 -> drive output from inverse of peripheral signal selected by funcsel |
| // 0x2 -> drive output low |
| // 0x3 -> drive output high |
| #define IO_BANK0_GPIO10_CTRL_OUTOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO10_CTRL_OUTOVER_BITS _u(0x00000300) |
| #define IO_BANK0_GPIO10_CTRL_OUTOVER_MSB _u(9) |
| #define IO_BANK0_GPIO10_CTRL_OUTOVER_LSB _u(8) |
| #define IO_BANK0_GPIO10_CTRL_OUTOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO10_CTRL_OUTOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO10_CTRL_OUTOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO10_CTRL_OUTOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO10_CTRL_OUTOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO10_CTRL_FUNCSEL |
| // Description : 0-31 -> selects pin function according to the gpio table |
| // 31 == NULL |
| // 0x01 -> spi1_sclk |
| // 0x02 -> uart1_cts |
| // 0x03 -> i2c1_sda |
| // 0x04 -> pwm_a_5 |
| // 0x05 -> sio_10 |
| // 0x06 -> pio0_10 |
| // 0x07 -> pio1_10 |
| // 0x08 -> usb_muxing_extphy_vm |
| // 0x09 -> usb_muxing_vbus_detect |
| // 0x1f -> null |
| #define IO_BANK0_GPIO10_CTRL_FUNCSEL_RESET _u(0x1f) |
| #define IO_BANK0_GPIO10_CTRL_FUNCSEL_BITS _u(0x0000001f) |
| #define IO_BANK0_GPIO10_CTRL_FUNCSEL_MSB _u(4) |
| #define IO_BANK0_GPIO10_CTRL_FUNCSEL_LSB _u(0) |
| #define IO_BANK0_GPIO10_CTRL_FUNCSEL_ACCESS "RW" |
| #define IO_BANK0_GPIO10_CTRL_FUNCSEL_VALUE_SPI1_SCLK _u(0x01) |
| #define IO_BANK0_GPIO10_CTRL_FUNCSEL_VALUE_UART1_CTS _u(0x02) |
| #define IO_BANK0_GPIO10_CTRL_FUNCSEL_VALUE_I2C1_SDA _u(0x03) |
| #define IO_BANK0_GPIO10_CTRL_FUNCSEL_VALUE_PWM_A_5 _u(0x04) |
| #define IO_BANK0_GPIO10_CTRL_FUNCSEL_VALUE_SIO_10 _u(0x05) |
| #define IO_BANK0_GPIO10_CTRL_FUNCSEL_VALUE_PIO0_10 _u(0x06) |
| #define IO_BANK0_GPIO10_CTRL_FUNCSEL_VALUE_PIO1_10 _u(0x07) |
| #define IO_BANK0_GPIO10_CTRL_FUNCSEL_VALUE_USB_MUXING_EXTPHY_VM _u(0x08) |
| #define IO_BANK0_GPIO10_CTRL_FUNCSEL_VALUE_USB_MUXING_VBUS_DETECT _u(0x09) |
| #define IO_BANK0_GPIO10_CTRL_FUNCSEL_VALUE_NULL _u(0x1f) |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO11_STATUS |
| // Description : GPIO status |
| #define IO_BANK0_GPIO11_STATUS_OFFSET _u(0x00000058) |
| #define IO_BANK0_GPIO11_STATUS_BITS _u(0x050a3300) |
| #define IO_BANK0_GPIO11_STATUS_RESET _u(0x00000000) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO11_STATUS_IRQTOPROC |
| // Description : interrupt to processors, after override is applied |
| #define IO_BANK0_GPIO11_STATUS_IRQTOPROC_RESET _u(0x0) |
| #define IO_BANK0_GPIO11_STATUS_IRQTOPROC_BITS _u(0x04000000) |
| #define IO_BANK0_GPIO11_STATUS_IRQTOPROC_MSB _u(26) |
| #define IO_BANK0_GPIO11_STATUS_IRQTOPROC_LSB _u(26) |
| #define IO_BANK0_GPIO11_STATUS_IRQTOPROC_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO11_STATUS_IRQFROMPAD |
| // Description : interrupt from pad before override is applied |
| #define IO_BANK0_GPIO11_STATUS_IRQFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO11_STATUS_IRQFROMPAD_BITS _u(0x01000000) |
| #define IO_BANK0_GPIO11_STATUS_IRQFROMPAD_MSB _u(24) |
| #define IO_BANK0_GPIO11_STATUS_IRQFROMPAD_LSB _u(24) |
| #define IO_BANK0_GPIO11_STATUS_IRQFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO11_STATUS_INTOPERI |
| // Description : input signal to peripheral, after override is applied |
| #define IO_BANK0_GPIO11_STATUS_INTOPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO11_STATUS_INTOPERI_BITS _u(0x00080000) |
| #define IO_BANK0_GPIO11_STATUS_INTOPERI_MSB _u(19) |
| #define IO_BANK0_GPIO11_STATUS_INTOPERI_LSB _u(19) |
| #define IO_BANK0_GPIO11_STATUS_INTOPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO11_STATUS_INFROMPAD |
| // Description : input signal from pad, before override is applied |
| #define IO_BANK0_GPIO11_STATUS_INFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO11_STATUS_INFROMPAD_BITS _u(0x00020000) |
| #define IO_BANK0_GPIO11_STATUS_INFROMPAD_MSB _u(17) |
| #define IO_BANK0_GPIO11_STATUS_INFROMPAD_LSB _u(17) |
| #define IO_BANK0_GPIO11_STATUS_INFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO11_STATUS_OETOPAD |
| // Description : output enable to pad after register override is applied |
| #define IO_BANK0_GPIO11_STATUS_OETOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO11_STATUS_OETOPAD_BITS _u(0x00002000) |
| #define IO_BANK0_GPIO11_STATUS_OETOPAD_MSB _u(13) |
| #define IO_BANK0_GPIO11_STATUS_OETOPAD_LSB _u(13) |
| #define IO_BANK0_GPIO11_STATUS_OETOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO11_STATUS_OEFROMPERI |
| // Description : output enable from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO11_STATUS_OEFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO11_STATUS_OEFROMPERI_BITS _u(0x00001000) |
| #define IO_BANK0_GPIO11_STATUS_OEFROMPERI_MSB _u(12) |
| #define IO_BANK0_GPIO11_STATUS_OEFROMPERI_LSB _u(12) |
| #define IO_BANK0_GPIO11_STATUS_OEFROMPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO11_STATUS_OUTTOPAD |
| // Description : output signal to pad after register override is applied |
| #define IO_BANK0_GPIO11_STATUS_OUTTOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO11_STATUS_OUTTOPAD_BITS _u(0x00000200) |
| #define IO_BANK0_GPIO11_STATUS_OUTTOPAD_MSB _u(9) |
| #define IO_BANK0_GPIO11_STATUS_OUTTOPAD_LSB _u(9) |
| #define IO_BANK0_GPIO11_STATUS_OUTTOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO11_STATUS_OUTFROMPERI |
| // Description : output signal from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO11_STATUS_OUTFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO11_STATUS_OUTFROMPERI_BITS _u(0x00000100) |
| #define IO_BANK0_GPIO11_STATUS_OUTFROMPERI_MSB _u(8) |
| #define IO_BANK0_GPIO11_STATUS_OUTFROMPERI_LSB _u(8) |
| #define IO_BANK0_GPIO11_STATUS_OUTFROMPERI_ACCESS "RO" |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO11_CTRL |
| // Description : GPIO control including function select and overrides. |
| #define IO_BANK0_GPIO11_CTRL_OFFSET _u(0x0000005c) |
| #define IO_BANK0_GPIO11_CTRL_BITS _u(0x3003331f) |
| #define IO_BANK0_GPIO11_CTRL_RESET _u(0x0000001f) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO11_CTRL_IRQOVER |
| // 0x0 -> don't invert the interrupt |
| // 0x1 -> invert the interrupt |
| // 0x2 -> drive interrupt low |
| // 0x3 -> drive interrupt high |
| #define IO_BANK0_GPIO11_CTRL_IRQOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO11_CTRL_IRQOVER_BITS _u(0x30000000) |
| #define IO_BANK0_GPIO11_CTRL_IRQOVER_MSB _u(29) |
| #define IO_BANK0_GPIO11_CTRL_IRQOVER_LSB _u(28) |
| #define IO_BANK0_GPIO11_CTRL_IRQOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO11_CTRL_IRQOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO11_CTRL_IRQOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO11_CTRL_IRQOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO11_CTRL_IRQOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO11_CTRL_INOVER |
| // 0x0 -> don't invert the peri input |
| // 0x1 -> invert the peri input |
| // 0x2 -> drive peri input low |
| // 0x3 -> drive peri input high |
| #define IO_BANK0_GPIO11_CTRL_INOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO11_CTRL_INOVER_BITS _u(0x00030000) |
| #define IO_BANK0_GPIO11_CTRL_INOVER_MSB _u(17) |
| #define IO_BANK0_GPIO11_CTRL_INOVER_LSB _u(16) |
| #define IO_BANK0_GPIO11_CTRL_INOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO11_CTRL_INOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO11_CTRL_INOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO11_CTRL_INOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO11_CTRL_INOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO11_CTRL_OEOVER |
| // 0x0 -> drive output enable from peripheral signal selected by funcsel |
| // 0x1 -> drive output enable from inverse of peripheral signal selected by funcsel |
| // 0x2 -> disable output |
| // 0x3 -> enable output |
| #define IO_BANK0_GPIO11_CTRL_OEOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO11_CTRL_OEOVER_BITS _u(0x00003000) |
| #define IO_BANK0_GPIO11_CTRL_OEOVER_MSB _u(13) |
| #define IO_BANK0_GPIO11_CTRL_OEOVER_LSB _u(12) |
| #define IO_BANK0_GPIO11_CTRL_OEOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO11_CTRL_OEOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO11_CTRL_OEOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO11_CTRL_OEOVER_VALUE_DISABLE _u(0x2) |
| #define IO_BANK0_GPIO11_CTRL_OEOVER_VALUE_ENABLE _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO11_CTRL_OUTOVER |
| // 0x0 -> drive output from peripheral signal selected by funcsel |
| // 0x1 -> drive output from inverse of peripheral signal selected by funcsel |
| // 0x2 -> drive output low |
| // 0x3 -> drive output high |
| #define IO_BANK0_GPIO11_CTRL_OUTOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO11_CTRL_OUTOVER_BITS _u(0x00000300) |
| #define IO_BANK0_GPIO11_CTRL_OUTOVER_MSB _u(9) |
| #define IO_BANK0_GPIO11_CTRL_OUTOVER_LSB _u(8) |
| #define IO_BANK0_GPIO11_CTRL_OUTOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO11_CTRL_OUTOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO11_CTRL_OUTOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO11_CTRL_OUTOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO11_CTRL_OUTOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO11_CTRL_FUNCSEL |
| // Description : 0-31 -> selects pin function according to the gpio table |
| // 31 == NULL |
| // 0x01 -> spi1_tx |
| // 0x02 -> uart1_rts |
| // 0x03 -> i2c1_scl |
| // 0x04 -> pwm_b_5 |
| // 0x05 -> sio_11 |
| // 0x06 -> pio0_11 |
| // 0x07 -> pio1_11 |
| // 0x08 -> usb_muxing_extphy_suspnd |
| // 0x09 -> usb_muxing_vbus_en |
| // 0x1f -> null |
| #define IO_BANK0_GPIO11_CTRL_FUNCSEL_RESET _u(0x1f) |
| #define IO_BANK0_GPIO11_CTRL_FUNCSEL_BITS _u(0x0000001f) |
| #define IO_BANK0_GPIO11_CTRL_FUNCSEL_MSB _u(4) |
| #define IO_BANK0_GPIO11_CTRL_FUNCSEL_LSB _u(0) |
| #define IO_BANK0_GPIO11_CTRL_FUNCSEL_ACCESS "RW" |
| #define IO_BANK0_GPIO11_CTRL_FUNCSEL_VALUE_SPI1_TX _u(0x01) |
| #define IO_BANK0_GPIO11_CTRL_FUNCSEL_VALUE_UART1_RTS _u(0x02) |
| #define IO_BANK0_GPIO11_CTRL_FUNCSEL_VALUE_I2C1_SCL _u(0x03) |
| #define IO_BANK0_GPIO11_CTRL_FUNCSEL_VALUE_PWM_B_5 _u(0x04) |
| #define IO_BANK0_GPIO11_CTRL_FUNCSEL_VALUE_SIO_11 _u(0x05) |
| #define IO_BANK0_GPIO11_CTRL_FUNCSEL_VALUE_PIO0_11 _u(0x06) |
| #define IO_BANK0_GPIO11_CTRL_FUNCSEL_VALUE_PIO1_11 _u(0x07) |
| #define IO_BANK0_GPIO11_CTRL_FUNCSEL_VALUE_USB_MUXING_EXTPHY_SUSPND _u(0x08) |
| #define IO_BANK0_GPIO11_CTRL_FUNCSEL_VALUE_USB_MUXING_VBUS_EN _u(0x09) |
| #define IO_BANK0_GPIO11_CTRL_FUNCSEL_VALUE_NULL _u(0x1f) |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO12_STATUS |
| // Description : GPIO status |
| #define IO_BANK0_GPIO12_STATUS_OFFSET _u(0x00000060) |
| #define IO_BANK0_GPIO12_STATUS_BITS _u(0x050a3300) |
| #define IO_BANK0_GPIO12_STATUS_RESET _u(0x00000000) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO12_STATUS_IRQTOPROC |
| // Description : interrupt to processors, after override is applied |
| #define IO_BANK0_GPIO12_STATUS_IRQTOPROC_RESET _u(0x0) |
| #define IO_BANK0_GPIO12_STATUS_IRQTOPROC_BITS _u(0x04000000) |
| #define IO_BANK0_GPIO12_STATUS_IRQTOPROC_MSB _u(26) |
| #define IO_BANK0_GPIO12_STATUS_IRQTOPROC_LSB _u(26) |
| #define IO_BANK0_GPIO12_STATUS_IRQTOPROC_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO12_STATUS_IRQFROMPAD |
| // Description : interrupt from pad before override is applied |
| #define IO_BANK0_GPIO12_STATUS_IRQFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO12_STATUS_IRQFROMPAD_BITS _u(0x01000000) |
| #define IO_BANK0_GPIO12_STATUS_IRQFROMPAD_MSB _u(24) |
| #define IO_BANK0_GPIO12_STATUS_IRQFROMPAD_LSB _u(24) |
| #define IO_BANK0_GPIO12_STATUS_IRQFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO12_STATUS_INTOPERI |
| // Description : input signal to peripheral, after override is applied |
| #define IO_BANK0_GPIO12_STATUS_INTOPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO12_STATUS_INTOPERI_BITS _u(0x00080000) |
| #define IO_BANK0_GPIO12_STATUS_INTOPERI_MSB _u(19) |
| #define IO_BANK0_GPIO12_STATUS_INTOPERI_LSB _u(19) |
| #define IO_BANK0_GPIO12_STATUS_INTOPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO12_STATUS_INFROMPAD |
| // Description : input signal from pad, before override is applied |
| #define IO_BANK0_GPIO12_STATUS_INFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO12_STATUS_INFROMPAD_BITS _u(0x00020000) |
| #define IO_BANK0_GPIO12_STATUS_INFROMPAD_MSB _u(17) |
| #define IO_BANK0_GPIO12_STATUS_INFROMPAD_LSB _u(17) |
| #define IO_BANK0_GPIO12_STATUS_INFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO12_STATUS_OETOPAD |
| // Description : output enable to pad after register override is applied |
| #define IO_BANK0_GPIO12_STATUS_OETOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO12_STATUS_OETOPAD_BITS _u(0x00002000) |
| #define IO_BANK0_GPIO12_STATUS_OETOPAD_MSB _u(13) |
| #define IO_BANK0_GPIO12_STATUS_OETOPAD_LSB _u(13) |
| #define IO_BANK0_GPIO12_STATUS_OETOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO12_STATUS_OEFROMPERI |
| // Description : output enable from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO12_STATUS_OEFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO12_STATUS_OEFROMPERI_BITS _u(0x00001000) |
| #define IO_BANK0_GPIO12_STATUS_OEFROMPERI_MSB _u(12) |
| #define IO_BANK0_GPIO12_STATUS_OEFROMPERI_LSB _u(12) |
| #define IO_BANK0_GPIO12_STATUS_OEFROMPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO12_STATUS_OUTTOPAD |
| // Description : output signal to pad after register override is applied |
| #define IO_BANK0_GPIO12_STATUS_OUTTOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO12_STATUS_OUTTOPAD_BITS _u(0x00000200) |
| #define IO_BANK0_GPIO12_STATUS_OUTTOPAD_MSB _u(9) |
| #define IO_BANK0_GPIO12_STATUS_OUTTOPAD_LSB _u(9) |
| #define IO_BANK0_GPIO12_STATUS_OUTTOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO12_STATUS_OUTFROMPERI |
| // Description : output signal from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO12_STATUS_OUTFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO12_STATUS_OUTFROMPERI_BITS _u(0x00000100) |
| #define IO_BANK0_GPIO12_STATUS_OUTFROMPERI_MSB _u(8) |
| #define IO_BANK0_GPIO12_STATUS_OUTFROMPERI_LSB _u(8) |
| #define IO_BANK0_GPIO12_STATUS_OUTFROMPERI_ACCESS "RO" |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO12_CTRL |
| // Description : GPIO control including function select and overrides. |
| #define IO_BANK0_GPIO12_CTRL_OFFSET _u(0x00000064) |
| #define IO_BANK0_GPIO12_CTRL_BITS _u(0x3003331f) |
| #define IO_BANK0_GPIO12_CTRL_RESET _u(0x0000001f) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO12_CTRL_IRQOVER |
| // 0x0 -> don't invert the interrupt |
| // 0x1 -> invert the interrupt |
| // 0x2 -> drive interrupt low |
| // 0x3 -> drive interrupt high |
| #define IO_BANK0_GPIO12_CTRL_IRQOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO12_CTRL_IRQOVER_BITS _u(0x30000000) |
| #define IO_BANK0_GPIO12_CTRL_IRQOVER_MSB _u(29) |
| #define IO_BANK0_GPIO12_CTRL_IRQOVER_LSB _u(28) |
| #define IO_BANK0_GPIO12_CTRL_IRQOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO12_CTRL_IRQOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO12_CTRL_IRQOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO12_CTRL_IRQOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO12_CTRL_IRQOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO12_CTRL_INOVER |
| // 0x0 -> don't invert the peri input |
| // 0x1 -> invert the peri input |
| // 0x2 -> drive peri input low |
| // 0x3 -> drive peri input high |
| #define IO_BANK0_GPIO12_CTRL_INOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO12_CTRL_INOVER_BITS _u(0x00030000) |
| #define IO_BANK0_GPIO12_CTRL_INOVER_MSB _u(17) |
| #define IO_BANK0_GPIO12_CTRL_INOVER_LSB _u(16) |
| #define IO_BANK0_GPIO12_CTRL_INOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO12_CTRL_INOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO12_CTRL_INOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO12_CTRL_INOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO12_CTRL_INOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO12_CTRL_OEOVER |
| // 0x0 -> drive output enable from peripheral signal selected by funcsel |
| // 0x1 -> drive output enable from inverse of peripheral signal selected by funcsel |
| // 0x2 -> disable output |
| // 0x3 -> enable output |
| #define IO_BANK0_GPIO12_CTRL_OEOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO12_CTRL_OEOVER_BITS _u(0x00003000) |
| #define IO_BANK0_GPIO12_CTRL_OEOVER_MSB _u(13) |
| #define IO_BANK0_GPIO12_CTRL_OEOVER_LSB _u(12) |
| #define IO_BANK0_GPIO12_CTRL_OEOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO12_CTRL_OEOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO12_CTRL_OEOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO12_CTRL_OEOVER_VALUE_DISABLE _u(0x2) |
| #define IO_BANK0_GPIO12_CTRL_OEOVER_VALUE_ENABLE _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO12_CTRL_OUTOVER |
| // 0x0 -> drive output from peripheral signal selected by funcsel |
| // 0x1 -> drive output from inverse of peripheral signal selected by funcsel |
| // 0x2 -> drive output low |
| // 0x3 -> drive output high |
| #define IO_BANK0_GPIO12_CTRL_OUTOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO12_CTRL_OUTOVER_BITS _u(0x00000300) |
| #define IO_BANK0_GPIO12_CTRL_OUTOVER_MSB _u(9) |
| #define IO_BANK0_GPIO12_CTRL_OUTOVER_LSB _u(8) |
| #define IO_BANK0_GPIO12_CTRL_OUTOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO12_CTRL_OUTOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO12_CTRL_OUTOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO12_CTRL_OUTOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO12_CTRL_OUTOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO12_CTRL_FUNCSEL |
| // Description : 0-31 -> selects pin function according to the gpio table |
| // 31 == NULL |
| // 0x01 -> spi1_rx |
| // 0x02 -> uart0_tx |
| // 0x03 -> i2c0_sda |
| // 0x04 -> pwm_a_6 |
| // 0x05 -> sio_12 |
| // 0x06 -> pio0_12 |
| // 0x07 -> pio1_12 |
| // 0x08 -> usb_muxing_extphy_speed |
| // 0x09 -> usb_muxing_overcurr_detect |
| // 0x1f -> null |
| #define IO_BANK0_GPIO12_CTRL_FUNCSEL_RESET _u(0x1f) |
| #define IO_BANK0_GPIO12_CTRL_FUNCSEL_BITS _u(0x0000001f) |
| #define IO_BANK0_GPIO12_CTRL_FUNCSEL_MSB _u(4) |
| #define IO_BANK0_GPIO12_CTRL_FUNCSEL_LSB _u(0) |
| #define IO_BANK0_GPIO12_CTRL_FUNCSEL_ACCESS "RW" |
| #define IO_BANK0_GPIO12_CTRL_FUNCSEL_VALUE_SPI1_RX _u(0x01) |
| #define IO_BANK0_GPIO12_CTRL_FUNCSEL_VALUE_UART0_TX _u(0x02) |
| #define IO_BANK0_GPIO12_CTRL_FUNCSEL_VALUE_I2C0_SDA _u(0x03) |
| #define IO_BANK0_GPIO12_CTRL_FUNCSEL_VALUE_PWM_A_6 _u(0x04) |
| #define IO_BANK0_GPIO12_CTRL_FUNCSEL_VALUE_SIO_12 _u(0x05) |
| #define IO_BANK0_GPIO12_CTRL_FUNCSEL_VALUE_PIO0_12 _u(0x06) |
| #define IO_BANK0_GPIO12_CTRL_FUNCSEL_VALUE_PIO1_12 _u(0x07) |
| #define IO_BANK0_GPIO12_CTRL_FUNCSEL_VALUE_USB_MUXING_EXTPHY_SPEED _u(0x08) |
| #define IO_BANK0_GPIO12_CTRL_FUNCSEL_VALUE_USB_MUXING_OVERCURR_DETECT _u(0x09) |
| #define IO_BANK0_GPIO12_CTRL_FUNCSEL_VALUE_NULL _u(0x1f) |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO13_STATUS |
| // Description : GPIO status |
| #define IO_BANK0_GPIO13_STATUS_OFFSET _u(0x00000068) |
| #define IO_BANK0_GPIO13_STATUS_BITS _u(0x050a3300) |
| #define IO_BANK0_GPIO13_STATUS_RESET _u(0x00000000) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO13_STATUS_IRQTOPROC |
| // Description : interrupt to processors, after override is applied |
| #define IO_BANK0_GPIO13_STATUS_IRQTOPROC_RESET _u(0x0) |
| #define IO_BANK0_GPIO13_STATUS_IRQTOPROC_BITS _u(0x04000000) |
| #define IO_BANK0_GPIO13_STATUS_IRQTOPROC_MSB _u(26) |
| #define IO_BANK0_GPIO13_STATUS_IRQTOPROC_LSB _u(26) |
| #define IO_BANK0_GPIO13_STATUS_IRQTOPROC_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO13_STATUS_IRQFROMPAD |
| // Description : interrupt from pad before override is applied |
| #define IO_BANK0_GPIO13_STATUS_IRQFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO13_STATUS_IRQFROMPAD_BITS _u(0x01000000) |
| #define IO_BANK0_GPIO13_STATUS_IRQFROMPAD_MSB _u(24) |
| #define IO_BANK0_GPIO13_STATUS_IRQFROMPAD_LSB _u(24) |
| #define IO_BANK0_GPIO13_STATUS_IRQFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO13_STATUS_INTOPERI |
| // Description : input signal to peripheral, after override is applied |
| #define IO_BANK0_GPIO13_STATUS_INTOPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO13_STATUS_INTOPERI_BITS _u(0x00080000) |
| #define IO_BANK0_GPIO13_STATUS_INTOPERI_MSB _u(19) |
| #define IO_BANK0_GPIO13_STATUS_INTOPERI_LSB _u(19) |
| #define IO_BANK0_GPIO13_STATUS_INTOPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO13_STATUS_INFROMPAD |
| // Description : input signal from pad, before override is applied |
| #define IO_BANK0_GPIO13_STATUS_INFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO13_STATUS_INFROMPAD_BITS _u(0x00020000) |
| #define IO_BANK0_GPIO13_STATUS_INFROMPAD_MSB _u(17) |
| #define IO_BANK0_GPIO13_STATUS_INFROMPAD_LSB _u(17) |
| #define IO_BANK0_GPIO13_STATUS_INFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO13_STATUS_OETOPAD |
| // Description : output enable to pad after register override is applied |
| #define IO_BANK0_GPIO13_STATUS_OETOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO13_STATUS_OETOPAD_BITS _u(0x00002000) |
| #define IO_BANK0_GPIO13_STATUS_OETOPAD_MSB _u(13) |
| #define IO_BANK0_GPIO13_STATUS_OETOPAD_LSB _u(13) |
| #define IO_BANK0_GPIO13_STATUS_OETOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO13_STATUS_OEFROMPERI |
| // Description : output enable from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO13_STATUS_OEFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO13_STATUS_OEFROMPERI_BITS _u(0x00001000) |
| #define IO_BANK0_GPIO13_STATUS_OEFROMPERI_MSB _u(12) |
| #define IO_BANK0_GPIO13_STATUS_OEFROMPERI_LSB _u(12) |
| #define IO_BANK0_GPIO13_STATUS_OEFROMPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO13_STATUS_OUTTOPAD |
| // Description : output signal to pad after register override is applied |
| #define IO_BANK0_GPIO13_STATUS_OUTTOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO13_STATUS_OUTTOPAD_BITS _u(0x00000200) |
| #define IO_BANK0_GPIO13_STATUS_OUTTOPAD_MSB _u(9) |
| #define IO_BANK0_GPIO13_STATUS_OUTTOPAD_LSB _u(9) |
| #define IO_BANK0_GPIO13_STATUS_OUTTOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO13_STATUS_OUTFROMPERI |
| // Description : output signal from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO13_STATUS_OUTFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO13_STATUS_OUTFROMPERI_BITS _u(0x00000100) |
| #define IO_BANK0_GPIO13_STATUS_OUTFROMPERI_MSB _u(8) |
| #define IO_BANK0_GPIO13_STATUS_OUTFROMPERI_LSB _u(8) |
| #define IO_BANK0_GPIO13_STATUS_OUTFROMPERI_ACCESS "RO" |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO13_CTRL |
| // Description : GPIO control including function select and overrides. |
| #define IO_BANK0_GPIO13_CTRL_OFFSET _u(0x0000006c) |
| #define IO_BANK0_GPIO13_CTRL_BITS _u(0x3003331f) |
| #define IO_BANK0_GPIO13_CTRL_RESET _u(0x0000001f) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO13_CTRL_IRQOVER |
| // 0x0 -> don't invert the interrupt |
| // 0x1 -> invert the interrupt |
| // 0x2 -> drive interrupt low |
| // 0x3 -> drive interrupt high |
| #define IO_BANK0_GPIO13_CTRL_IRQOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO13_CTRL_IRQOVER_BITS _u(0x30000000) |
| #define IO_BANK0_GPIO13_CTRL_IRQOVER_MSB _u(29) |
| #define IO_BANK0_GPIO13_CTRL_IRQOVER_LSB _u(28) |
| #define IO_BANK0_GPIO13_CTRL_IRQOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO13_CTRL_IRQOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO13_CTRL_IRQOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO13_CTRL_IRQOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO13_CTRL_IRQOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO13_CTRL_INOVER |
| // 0x0 -> don't invert the peri input |
| // 0x1 -> invert the peri input |
| // 0x2 -> drive peri input low |
| // 0x3 -> drive peri input high |
| #define IO_BANK0_GPIO13_CTRL_INOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO13_CTRL_INOVER_BITS _u(0x00030000) |
| #define IO_BANK0_GPIO13_CTRL_INOVER_MSB _u(17) |
| #define IO_BANK0_GPIO13_CTRL_INOVER_LSB _u(16) |
| #define IO_BANK0_GPIO13_CTRL_INOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO13_CTRL_INOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO13_CTRL_INOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO13_CTRL_INOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO13_CTRL_INOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO13_CTRL_OEOVER |
| // 0x0 -> drive output enable from peripheral signal selected by funcsel |
| // 0x1 -> drive output enable from inverse of peripheral signal selected by funcsel |
| // 0x2 -> disable output |
| // 0x3 -> enable output |
| #define IO_BANK0_GPIO13_CTRL_OEOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO13_CTRL_OEOVER_BITS _u(0x00003000) |
| #define IO_BANK0_GPIO13_CTRL_OEOVER_MSB _u(13) |
| #define IO_BANK0_GPIO13_CTRL_OEOVER_LSB _u(12) |
| #define IO_BANK0_GPIO13_CTRL_OEOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO13_CTRL_OEOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO13_CTRL_OEOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO13_CTRL_OEOVER_VALUE_DISABLE _u(0x2) |
| #define IO_BANK0_GPIO13_CTRL_OEOVER_VALUE_ENABLE _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO13_CTRL_OUTOVER |
| // 0x0 -> drive output from peripheral signal selected by funcsel |
| // 0x1 -> drive output from inverse of peripheral signal selected by funcsel |
| // 0x2 -> drive output low |
| // 0x3 -> drive output high |
| #define IO_BANK0_GPIO13_CTRL_OUTOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO13_CTRL_OUTOVER_BITS _u(0x00000300) |
| #define IO_BANK0_GPIO13_CTRL_OUTOVER_MSB _u(9) |
| #define IO_BANK0_GPIO13_CTRL_OUTOVER_LSB _u(8) |
| #define IO_BANK0_GPIO13_CTRL_OUTOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO13_CTRL_OUTOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO13_CTRL_OUTOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO13_CTRL_OUTOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO13_CTRL_OUTOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO13_CTRL_FUNCSEL |
| // Description : 0-31 -> selects pin function according to the gpio table |
| // 31 == NULL |
| // 0x01 -> spi1_ss_n |
| // 0x02 -> uart0_rx |
| // 0x03 -> i2c0_scl |
| // 0x04 -> pwm_b_6 |
| // 0x05 -> sio_13 |
| // 0x06 -> pio0_13 |
| // 0x07 -> pio1_13 |
| // 0x08 -> usb_muxing_extphy_vpo |
| // 0x09 -> usb_muxing_vbus_detect |
| // 0x1f -> null |
| #define IO_BANK0_GPIO13_CTRL_FUNCSEL_RESET _u(0x1f) |
| #define IO_BANK0_GPIO13_CTRL_FUNCSEL_BITS _u(0x0000001f) |
| #define IO_BANK0_GPIO13_CTRL_FUNCSEL_MSB _u(4) |
| #define IO_BANK0_GPIO13_CTRL_FUNCSEL_LSB _u(0) |
| #define IO_BANK0_GPIO13_CTRL_FUNCSEL_ACCESS "RW" |
| #define IO_BANK0_GPIO13_CTRL_FUNCSEL_VALUE_SPI1_SS_N _u(0x01) |
| #define IO_BANK0_GPIO13_CTRL_FUNCSEL_VALUE_UART0_RX _u(0x02) |
| #define IO_BANK0_GPIO13_CTRL_FUNCSEL_VALUE_I2C0_SCL _u(0x03) |
| #define IO_BANK0_GPIO13_CTRL_FUNCSEL_VALUE_PWM_B_6 _u(0x04) |
| #define IO_BANK0_GPIO13_CTRL_FUNCSEL_VALUE_SIO_13 _u(0x05) |
| #define IO_BANK0_GPIO13_CTRL_FUNCSEL_VALUE_PIO0_13 _u(0x06) |
| #define IO_BANK0_GPIO13_CTRL_FUNCSEL_VALUE_PIO1_13 _u(0x07) |
| #define IO_BANK0_GPIO13_CTRL_FUNCSEL_VALUE_USB_MUXING_EXTPHY_VPO _u(0x08) |
| #define IO_BANK0_GPIO13_CTRL_FUNCSEL_VALUE_USB_MUXING_VBUS_DETECT _u(0x09) |
| #define IO_BANK0_GPIO13_CTRL_FUNCSEL_VALUE_NULL _u(0x1f) |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO14_STATUS |
| // Description : GPIO status |
| #define IO_BANK0_GPIO14_STATUS_OFFSET _u(0x00000070) |
| #define IO_BANK0_GPIO14_STATUS_BITS _u(0x050a3300) |
| #define IO_BANK0_GPIO14_STATUS_RESET _u(0x00000000) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO14_STATUS_IRQTOPROC |
| // Description : interrupt to processors, after override is applied |
| #define IO_BANK0_GPIO14_STATUS_IRQTOPROC_RESET _u(0x0) |
| #define IO_BANK0_GPIO14_STATUS_IRQTOPROC_BITS _u(0x04000000) |
| #define IO_BANK0_GPIO14_STATUS_IRQTOPROC_MSB _u(26) |
| #define IO_BANK0_GPIO14_STATUS_IRQTOPROC_LSB _u(26) |
| #define IO_BANK0_GPIO14_STATUS_IRQTOPROC_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO14_STATUS_IRQFROMPAD |
| // Description : interrupt from pad before override is applied |
| #define IO_BANK0_GPIO14_STATUS_IRQFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO14_STATUS_IRQFROMPAD_BITS _u(0x01000000) |
| #define IO_BANK0_GPIO14_STATUS_IRQFROMPAD_MSB _u(24) |
| #define IO_BANK0_GPIO14_STATUS_IRQFROMPAD_LSB _u(24) |
| #define IO_BANK0_GPIO14_STATUS_IRQFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO14_STATUS_INTOPERI |
| // Description : input signal to peripheral, after override is applied |
| #define IO_BANK0_GPIO14_STATUS_INTOPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO14_STATUS_INTOPERI_BITS _u(0x00080000) |
| #define IO_BANK0_GPIO14_STATUS_INTOPERI_MSB _u(19) |
| #define IO_BANK0_GPIO14_STATUS_INTOPERI_LSB _u(19) |
| #define IO_BANK0_GPIO14_STATUS_INTOPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO14_STATUS_INFROMPAD |
| // Description : input signal from pad, before override is applied |
| #define IO_BANK0_GPIO14_STATUS_INFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO14_STATUS_INFROMPAD_BITS _u(0x00020000) |
| #define IO_BANK0_GPIO14_STATUS_INFROMPAD_MSB _u(17) |
| #define IO_BANK0_GPIO14_STATUS_INFROMPAD_LSB _u(17) |
| #define IO_BANK0_GPIO14_STATUS_INFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO14_STATUS_OETOPAD |
| // Description : output enable to pad after register override is applied |
| #define IO_BANK0_GPIO14_STATUS_OETOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO14_STATUS_OETOPAD_BITS _u(0x00002000) |
| #define IO_BANK0_GPIO14_STATUS_OETOPAD_MSB _u(13) |
| #define IO_BANK0_GPIO14_STATUS_OETOPAD_LSB _u(13) |
| #define IO_BANK0_GPIO14_STATUS_OETOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO14_STATUS_OEFROMPERI |
| // Description : output enable from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO14_STATUS_OEFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO14_STATUS_OEFROMPERI_BITS _u(0x00001000) |
| #define IO_BANK0_GPIO14_STATUS_OEFROMPERI_MSB _u(12) |
| #define IO_BANK0_GPIO14_STATUS_OEFROMPERI_LSB _u(12) |
| #define IO_BANK0_GPIO14_STATUS_OEFROMPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO14_STATUS_OUTTOPAD |
| // Description : output signal to pad after register override is applied |
| #define IO_BANK0_GPIO14_STATUS_OUTTOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO14_STATUS_OUTTOPAD_BITS _u(0x00000200) |
| #define IO_BANK0_GPIO14_STATUS_OUTTOPAD_MSB _u(9) |
| #define IO_BANK0_GPIO14_STATUS_OUTTOPAD_LSB _u(9) |
| #define IO_BANK0_GPIO14_STATUS_OUTTOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO14_STATUS_OUTFROMPERI |
| // Description : output signal from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO14_STATUS_OUTFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO14_STATUS_OUTFROMPERI_BITS _u(0x00000100) |
| #define IO_BANK0_GPIO14_STATUS_OUTFROMPERI_MSB _u(8) |
| #define IO_BANK0_GPIO14_STATUS_OUTFROMPERI_LSB _u(8) |
| #define IO_BANK0_GPIO14_STATUS_OUTFROMPERI_ACCESS "RO" |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO14_CTRL |
| // Description : GPIO control including function select and overrides. |
| #define IO_BANK0_GPIO14_CTRL_OFFSET _u(0x00000074) |
| #define IO_BANK0_GPIO14_CTRL_BITS _u(0x3003331f) |
| #define IO_BANK0_GPIO14_CTRL_RESET _u(0x0000001f) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO14_CTRL_IRQOVER |
| // 0x0 -> don't invert the interrupt |
| // 0x1 -> invert the interrupt |
| // 0x2 -> drive interrupt low |
| // 0x3 -> drive interrupt high |
| #define IO_BANK0_GPIO14_CTRL_IRQOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO14_CTRL_IRQOVER_BITS _u(0x30000000) |
| #define IO_BANK0_GPIO14_CTRL_IRQOVER_MSB _u(29) |
| #define IO_BANK0_GPIO14_CTRL_IRQOVER_LSB _u(28) |
| #define IO_BANK0_GPIO14_CTRL_IRQOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO14_CTRL_IRQOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO14_CTRL_IRQOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO14_CTRL_IRQOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO14_CTRL_IRQOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO14_CTRL_INOVER |
| // 0x0 -> don't invert the peri input |
| // 0x1 -> invert the peri input |
| // 0x2 -> drive peri input low |
| // 0x3 -> drive peri input high |
| #define IO_BANK0_GPIO14_CTRL_INOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO14_CTRL_INOVER_BITS _u(0x00030000) |
| #define IO_BANK0_GPIO14_CTRL_INOVER_MSB _u(17) |
| #define IO_BANK0_GPIO14_CTRL_INOVER_LSB _u(16) |
| #define IO_BANK0_GPIO14_CTRL_INOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO14_CTRL_INOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO14_CTRL_INOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO14_CTRL_INOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO14_CTRL_INOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO14_CTRL_OEOVER |
| // 0x0 -> drive output enable from peripheral signal selected by funcsel |
| // 0x1 -> drive output enable from inverse of peripheral signal selected by funcsel |
| // 0x2 -> disable output |
| // 0x3 -> enable output |
| #define IO_BANK0_GPIO14_CTRL_OEOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO14_CTRL_OEOVER_BITS _u(0x00003000) |
| #define IO_BANK0_GPIO14_CTRL_OEOVER_MSB _u(13) |
| #define IO_BANK0_GPIO14_CTRL_OEOVER_LSB _u(12) |
| #define IO_BANK0_GPIO14_CTRL_OEOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO14_CTRL_OEOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO14_CTRL_OEOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO14_CTRL_OEOVER_VALUE_DISABLE _u(0x2) |
| #define IO_BANK0_GPIO14_CTRL_OEOVER_VALUE_ENABLE _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO14_CTRL_OUTOVER |
| // 0x0 -> drive output from peripheral signal selected by funcsel |
| // 0x1 -> drive output from inverse of peripheral signal selected by funcsel |
| // 0x2 -> drive output low |
| // 0x3 -> drive output high |
| #define IO_BANK0_GPIO14_CTRL_OUTOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO14_CTRL_OUTOVER_BITS _u(0x00000300) |
| #define IO_BANK0_GPIO14_CTRL_OUTOVER_MSB _u(9) |
| #define IO_BANK0_GPIO14_CTRL_OUTOVER_LSB _u(8) |
| #define IO_BANK0_GPIO14_CTRL_OUTOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO14_CTRL_OUTOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO14_CTRL_OUTOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO14_CTRL_OUTOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO14_CTRL_OUTOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO14_CTRL_FUNCSEL |
| // Description : 0-31 -> selects pin function according to the gpio table |
| // 31 == NULL |
| // 0x01 -> spi1_sclk |
| // 0x02 -> uart0_cts |
| // 0x03 -> i2c1_sda |
| // 0x04 -> pwm_a_7 |
| // 0x05 -> sio_14 |
| // 0x06 -> pio0_14 |
| // 0x07 -> pio1_14 |
| // 0x08 -> usb_muxing_extphy_vmo |
| // 0x09 -> usb_muxing_vbus_en |
| // 0x1f -> null |
| #define IO_BANK0_GPIO14_CTRL_FUNCSEL_RESET _u(0x1f) |
| #define IO_BANK0_GPIO14_CTRL_FUNCSEL_BITS _u(0x0000001f) |
| #define IO_BANK0_GPIO14_CTRL_FUNCSEL_MSB _u(4) |
| #define IO_BANK0_GPIO14_CTRL_FUNCSEL_LSB _u(0) |
| #define IO_BANK0_GPIO14_CTRL_FUNCSEL_ACCESS "RW" |
| #define IO_BANK0_GPIO14_CTRL_FUNCSEL_VALUE_SPI1_SCLK _u(0x01) |
| #define IO_BANK0_GPIO14_CTRL_FUNCSEL_VALUE_UART0_CTS _u(0x02) |
| #define IO_BANK0_GPIO14_CTRL_FUNCSEL_VALUE_I2C1_SDA _u(0x03) |
| #define IO_BANK0_GPIO14_CTRL_FUNCSEL_VALUE_PWM_A_7 _u(0x04) |
| #define IO_BANK0_GPIO14_CTRL_FUNCSEL_VALUE_SIO_14 _u(0x05) |
| #define IO_BANK0_GPIO14_CTRL_FUNCSEL_VALUE_PIO0_14 _u(0x06) |
| #define IO_BANK0_GPIO14_CTRL_FUNCSEL_VALUE_PIO1_14 _u(0x07) |
| #define IO_BANK0_GPIO14_CTRL_FUNCSEL_VALUE_USB_MUXING_EXTPHY_VMO _u(0x08) |
| #define IO_BANK0_GPIO14_CTRL_FUNCSEL_VALUE_USB_MUXING_VBUS_EN _u(0x09) |
| #define IO_BANK0_GPIO14_CTRL_FUNCSEL_VALUE_NULL _u(0x1f) |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO15_STATUS |
| // Description : GPIO status |
| #define IO_BANK0_GPIO15_STATUS_OFFSET _u(0x00000078) |
| #define IO_BANK0_GPIO15_STATUS_BITS _u(0x050a3300) |
| #define IO_BANK0_GPIO15_STATUS_RESET _u(0x00000000) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO15_STATUS_IRQTOPROC |
| // Description : interrupt to processors, after override is applied |
| #define IO_BANK0_GPIO15_STATUS_IRQTOPROC_RESET _u(0x0) |
| #define IO_BANK0_GPIO15_STATUS_IRQTOPROC_BITS _u(0x04000000) |
| #define IO_BANK0_GPIO15_STATUS_IRQTOPROC_MSB _u(26) |
| #define IO_BANK0_GPIO15_STATUS_IRQTOPROC_LSB _u(26) |
| #define IO_BANK0_GPIO15_STATUS_IRQTOPROC_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO15_STATUS_IRQFROMPAD |
| // Description : interrupt from pad before override is applied |
| #define IO_BANK0_GPIO15_STATUS_IRQFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO15_STATUS_IRQFROMPAD_BITS _u(0x01000000) |
| #define IO_BANK0_GPIO15_STATUS_IRQFROMPAD_MSB _u(24) |
| #define IO_BANK0_GPIO15_STATUS_IRQFROMPAD_LSB _u(24) |
| #define IO_BANK0_GPIO15_STATUS_IRQFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO15_STATUS_INTOPERI |
| // Description : input signal to peripheral, after override is applied |
| #define IO_BANK0_GPIO15_STATUS_INTOPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO15_STATUS_INTOPERI_BITS _u(0x00080000) |
| #define IO_BANK0_GPIO15_STATUS_INTOPERI_MSB _u(19) |
| #define IO_BANK0_GPIO15_STATUS_INTOPERI_LSB _u(19) |
| #define IO_BANK0_GPIO15_STATUS_INTOPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO15_STATUS_INFROMPAD |
| // Description : input signal from pad, before override is applied |
| #define IO_BANK0_GPIO15_STATUS_INFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO15_STATUS_INFROMPAD_BITS _u(0x00020000) |
| #define IO_BANK0_GPIO15_STATUS_INFROMPAD_MSB _u(17) |
| #define IO_BANK0_GPIO15_STATUS_INFROMPAD_LSB _u(17) |
| #define IO_BANK0_GPIO15_STATUS_INFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO15_STATUS_OETOPAD |
| // Description : output enable to pad after register override is applied |
| #define IO_BANK0_GPIO15_STATUS_OETOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO15_STATUS_OETOPAD_BITS _u(0x00002000) |
| #define IO_BANK0_GPIO15_STATUS_OETOPAD_MSB _u(13) |
| #define IO_BANK0_GPIO15_STATUS_OETOPAD_LSB _u(13) |
| #define IO_BANK0_GPIO15_STATUS_OETOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO15_STATUS_OEFROMPERI |
| // Description : output enable from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO15_STATUS_OEFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO15_STATUS_OEFROMPERI_BITS _u(0x00001000) |
| #define IO_BANK0_GPIO15_STATUS_OEFROMPERI_MSB _u(12) |
| #define IO_BANK0_GPIO15_STATUS_OEFROMPERI_LSB _u(12) |
| #define IO_BANK0_GPIO15_STATUS_OEFROMPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO15_STATUS_OUTTOPAD |
| // Description : output signal to pad after register override is applied |
| #define IO_BANK0_GPIO15_STATUS_OUTTOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO15_STATUS_OUTTOPAD_BITS _u(0x00000200) |
| #define IO_BANK0_GPIO15_STATUS_OUTTOPAD_MSB _u(9) |
| #define IO_BANK0_GPIO15_STATUS_OUTTOPAD_LSB _u(9) |
| #define IO_BANK0_GPIO15_STATUS_OUTTOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO15_STATUS_OUTFROMPERI |
| // Description : output signal from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO15_STATUS_OUTFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO15_STATUS_OUTFROMPERI_BITS _u(0x00000100) |
| #define IO_BANK0_GPIO15_STATUS_OUTFROMPERI_MSB _u(8) |
| #define IO_BANK0_GPIO15_STATUS_OUTFROMPERI_LSB _u(8) |
| #define IO_BANK0_GPIO15_STATUS_OUTFROMPERI_ACCESS "RO" |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO15_CTRL |
| // Description : GPIO control including function select and overrides. |
| #define IO_BANK0_GPIO15_CTRL_OFFSET _u(0x0000007c) |
| #define IO_BANK0_GPIO15_CTRL_BITS _u(0x3003331f) |
| #define IO_BANK0_GPIO15_CTRL_RESET _u(0x0000001f) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO15_CTRL_IRQOVER |
| // 0x0 -> don't invert the interrupt |
| // 0x1 -> invert the interrupt |
| // 0x2 -> drive interrupt low |
| // 0x3 -> drive interrupt high |
| #define IO_BANK0_GPIO15_CTRL_IRQOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO15_CTRL_IRQOVER_BITS _u(0x30000000) |
| #define IO_BANK0_GPIO15_CTRL_IRQOVER_MSB _u(29) |
| #define IO_BANK0_GPIO15_CTRL_IRQOVER_LSB _u(28) |
| #define IO_BANK0_GPIO15_CTRL_IRQOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO15_CTRL_IRQOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO15_CTRL_IRQOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO15_CTRL_IRQOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO15_CTRL_IRQOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO15_CTRL_INOVER |
| // 0x0 -> don't invert the peri input |
| // 0x1 -> invert the peri input |
| // 0x2 -> drive peri input low |
| // 0x3 -> drive peri input high |
| #define IO_BANK0_GPIO15_CTRL_INOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO15_CTRL_INOVER_BITS _u(0x00030000) |
| #define IO_BANK0_GPIO15_CTRL_INOVER_MSB _u(17) |
| #define IO_BANK0_GPIO15_CTRL_INOVER_LSB _u(16) |
| #define IO_BANK0_GPIO15_CTRL_INOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO15_CTRL_INOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO15_CTRL_INOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO15_CTRL_INOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO15_CTRL_INOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO15_CTRL_OEOVER |
| // 0x0 -> drive output enable from peripheral signal selected by funcsel |
| // 0x1 -> drive output enable from inverse of peripheral signal selected by funcsel |
| // 0x2 -> disable output |
| // 0x3 -> enable output |
| #define IO_BANK0_GPIO15_CTRL_OEOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO15_CTRL_OEOVER_BITS _u(0x00003000) |
| #define IO_BANK0_GPIO15_CTRL_OEOVER_MSB _u(13) |
| #define IO_BANK0_GPIO15_CTRL_OEOVER_LSB _u(12) |
| #define IO_BANK0_GPIO15_CTRL_OEOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO15_CTRL_OEOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO15_CTRL_OEOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO15_CTRL_OEOVER_VALUE_DISABLE _u(0x2) |
| #define IO_BANK0_GPIO15_CTRL_OEOVER_VALUE_ENABLE _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO15_CTRL_OUTOVER |
| // 0x0 -> drive output from peripheral signal selected by funcsel |
| // 0x1 -> drive output from inverse of peripheral signal selected by funcsel |
| // 0x2 -> drive output low |
| // 0x3 -> drive output high |
| #define IO_BANK0_GPIO15_CTRL_OUTOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO15_CTRL_OUTOVER_BITS _u(0x00000300) |
| #define IO_BANK0_GPIO15_CTRL_OUTOVER_MSB _u(9) |
| #define IO_BANK0_GPIO15_CTRL_OUTOVER_LSB _u(8) |
| #define IO_BANK0_GPIO15_CTRL_OUTOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO15_CTRL_OUTOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO15_CTRL_OUTOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO15_CTRL_OUTOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO15_CTRL_OUTOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO15_CTRL_FUNCSEL |
| // Description : 0-31 -> selects pin function according to the gpio table |
| // 31 == NULL |
| // 0x01 -> spi1_tx |
| // 0x02 -> uart0_rts |
| // 0x03 -> i2c1_scl |
| // 0x04 -> pwm_b_7 |
| // 0x05 -> sio_15 |
| // 0x06 -> pio0_15 |
| // 0x07 -> pio1_15 |
| // 0x08 -> usb_muxing_digital_dp |
| // 0x09 -> usb_muxing_overcurr_detect |
| // 0x1f -> null |
| #define IO_BANK0_GPIO15_CTRL_FUNCSEL_RESET _u(0x1f) |
| #define IO_BANK0_GPIO15_CTRL_FUNCSEL_BITS _u(0x0000001f) |
| #define IO_BANK0_GPIO15_CTRL_FUNCSEL_MSB _u(4) |
| #define IO_BANK0_GPIO15_CTRL_FUNCSEL_LSB _u(0) |
| #define IO_BANK0_GPIO15_CTRL_FUNCSEL_ACCESS "RW" |
| #define IO_BANK0_GPIO15_CTRL_FUNCSEL_VALUE_SPI1_TX _u(0x01) |
| #define IO_BANK0_GPIO15_CTRL_FUNCSEL_VALUE_UART0_RTS _u(0x02) |
| #define IO_BANK0_GPIO15_CTRL_FUNCSEL_VALUE_I2C1_SCL _u(0x03) |
| #define IO_BANK0_GPIO15_CTRL_FUNCSEL_VALUE_PWM_B_7 _u(0x04) |
| #define IO_BANK0_GPIO15_CTRL_FUNCSEL_VALUE_SIO_15 _u(0x05) |
| #define IO_BANK0_GPIO15_CTRL_FUNCSEL_VALUE_PIO0_15 _u(0x06) |
| #define IO_BANK0_GPIO15_CTRL_FUNCSEL_VALUE_PIO1_15 _u(0x07) |
| #define IO_BANK0_GPIO15_CTRL_FUNCSEL_VALUE_USB_MUXING_DIGITAL_DP _u(0x08) |
| #define IO_BANK0_GPIO15_CTRL_FUNCSEL_VALUE_USB_MUXING_OVERCURR_DETECT _u(0x09) |
| #define IO_BANK0_GPIO15_CTRL_FUNCSEL_VALUE_NULL _u(0x1f) |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO16_STATUS |
| // Description : GPIO status |
| #define IO_BANK0_GPIO16_STATUS_OFFSET _u(0x00000080) |
| #define IO_BANK0_GPIO16_STATUS_BITS _u(0x050a3300) |
| #define IO_BANK0_GPIO16_STATUS_RESET _u(0x00000000) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO16_STATUS_IRQTOPROC |
| // Description : interrupt to processors, after override is applied |
| #define IO_BANK0_GPIO16_STATUS_IRQTOPROC_RESET _u(0x0) |
| #define IO_BANK0_GPIO16_STATUS_IRQTOPROC_BITS _u(0x04000000) |
| #define IO_BANK0_GPIO16_STATUS_IRQTOPROC_MSB _u(26) |
| #define IO_BANK0_GPIO16_STATUS_IRQTOPROC_LSB _u(26) |
| #define IO_BANK0_GPIO16_STATUS_IRQTOPROC_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO16_STATUS_IRQFROMPAD |
| // Description : interrupt from pad before override is applied |
| #define IO_BANK0_GPIO16_STATUS_IRQFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO16_STATUS_IRQFROMPAD_BITS _u(0x01000000) |
| #define IO_BANK0_GPIO16_STATUS_IRQFROMPAD_MSB _u(24) |
| #define IO_BANK0_GPIO16_STATUS_IRQFROMPAD_LSB _u(24) |
| #define IO_BANK0_GPIO16_STATUS_IRQFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO16_STATUS_INTOPERI |
| // Description : input signal to peripheral, after override is applied |
| #define IO_BANK0_GPIO16_STATUS_INTOPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO16_STATUS_INTOPERI_BITS _u(0x00080000) |
| #define IO_BANK0_GPIO16_STATUS_INTOPERI_MSB _u(19) |
| #define IO_BANK0_GPIO16_STATUS_INTOPERI_LSB _u(19) |
| #define IO_BANK0_GPIO16_STATUS_INTOPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO16_STATUS_INFROMPAD |
| // Description : input signal from pad, before override is applied |
| #define IO_BANK0_GPIO16_STATUS_INFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO16_STATUS_INFROMPAD_BITS _u(0x00020000) |
| #define IO_BANK0_GPIO16_STATUS_INFROMPAD_MSB _u(17) |
| #define IO_BANK0_GPIO16_STATUS_INFROMPAD_LSB _u(17) |
| #define IO_BANK0_GPIO16_STATUS_INFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO16_STATUS_OETOPAD |
| // Description : output enable to pad after register override is applied |
| #define IO_BANK0_GPIO16_STATUS_OETOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO16_STATUS_OETOPAD_BITS _u(0x00002000) |
| #define IO_BANK0_GPIO16_STATUS_OETOPAD_MSB _u(13) |
| #define IO_BANK0_GPIO16_STATUS_OETOPAD_LSB _u(13) |
| #define IO_BANK0_GPIO16_STATUS_OETOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO16_STATUS_OEFROMPERI |
| // Description : output enable from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO16_STATUS_OEFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO16_STATUS_OEFROMPERI_BITS _u(0x00001000) |
| #define IO_BANK0_GPIO16_STATUS_OEFROMPERI_MSB _u(12) |
| #define IO_BANK0_GPIO16_STATUS_OEFROMPERI_LSB _u(12) |
| #define IO_BANK0_GPIO16_STATUS_OEFROMPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO16_STATUS_OUTTOPAD |
| // Description : output signal to pad after register override is applied |
| #define IO_BANK0_GPIO16_STATUS_OUTTOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO16_STATUS_OUTTOPAD_BITS _u(0x00000200) |
| #define IO_BANK0_GPIO16_STATUS_OUTTOPAD_MSB _u(9) |
| #define IO_BANK0_GPIO16_STATUS_OUTTOPAD_LSB _u(9) |
| #define IO_BANK0_GPIO16_STATUS_OUTTOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO16_STATUS_OUTFROMPERI |
| // Description : output signal from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO16_STATUS_OUTFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO16_STATUS_OUTFROMPERI_BITS _u(0x00000100) |
| #define IO_BANK0_GPIO16_STATUS_OUTFROMPERI_MSB _u(8) |
| #define IO_BANK0_GPIO16_STATUS_OUTFROMPERI_LSB _u(8) |
| #define IO_BANK0_GPIO16_STATUS_OUTFROMPERI_ACCESS "RO" |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO16_CTRL |
| // Description : GPIO control including function select and overrides. |
| #define IO_BANK0_GPIO16_CTRL_OFFSET _u(0x00000084) |
| #define IO_BANK0_GPIO16_CTRL_BITS _u(0x3003331f) |
| #define IO_BANK0_GPIO16_CTRL_RESET _u(0x0000001f) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO16_CTRL_IRQOVER |
| // 0x0 -> don't invert the interrupt |
| // 0x1 -> invert the interrupt |
| // 0x2 -> drive interrupt low |
| // 0x3 -> drive interrupt high |
| #define IO_BANK0_GPIO16_CTRL_IRQOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO16_CTRL_IRQOVER_BITS _u(0x30000000) |
| #define IO_BANK0_GPIO16_CTRL_IRQOVER_MSB _u(29) |
| #define IO_BANK0_GPIO16_CTRL_IRQOVER_LSB _u(28) |
| #define IO_BANK0_GPIO16_CTRL_IRQOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO16_CTRL_IRQOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO16_CTRL_IRQOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO16_CTRL_IRQOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO16_CTRL_IRQOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO16_CTRL_INOVER |
| // 0x0 -> don't invert the peri input |
| // 0x1 -> invert the peri input |
| // 0x2 -> drive peri input low |
| // 0x3 -> drive peri input high |
| #define IO_BANK0_GPIO16_CTRL_INOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO16_CTRL_INOVER_BITS _u(0x00030000) |
| #define IO_BANK0_GPIO16_CTRL_INOVER_MSB _u(17) |
| #define IO_BANK0_GPIO16_CTRL_INOVER_LSB _u(16) |
| #define IO_BANK0_GPIO16_CTRL_INOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO16_CTRL_INOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO16_CTRL_INOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO16_CTRL_INOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO16_CTRL_INOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO16_CTRL_OEOVER |
| // 0x0 -> drive output enable from peripheral signal selected by funcsel |
| // 0x1 -> drive output enable from inverse of peripheral signal selected by funcsel |
| // 0x2 -> disable output |
| // 0x3 -> enable output |
| #define IO_BANK0_GPIO16_CTRL_OEOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO16_CTRL_OEOVER_BITS _u(0x00003000) |
| #define IO_BANK0_GPIO16_CTRL_OEOVER_MSB _u(13) |
| #define IO_BANK0_GPIO16_CTRL_OEOVER_LSB _u(12) |
| #define IO_BANK0_GPIO16_CTRL_OEOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO16_CTRL_OEOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO16_CTRL_OEOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO16_CTRL_OEOVER_VALUE_DISABLE _u(0x2) |
| #define IO_BANK0_GPIO16_CTRL_OEOVER_VALUE_ENABLE _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO16_CTRL_OUTOVER |
| // 0x0 -> drive output from peripheral signal selected by funcsel |
| // 0x1 -> drive output from inverse of peripheral signal selected by funcsel |
| // 0x2 -> drive output low |
| // 0x3 -> drive output high |
| #define IO_BANK0_GPIO16_CTRL_OUTOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO16_CTRL_OUTOVER_BITS _u(0x00000300) |
| #define IO_BANK0_GPIO16_CTRL_OUTOVER_MSB _u(9) |
| #define IO_BANK0_GPIO16_CTRL_OUTOVER_LSB _u(8) |
| #define IO_BANK0_GPIO16_CTRL_OUTOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO16_CTRL_OUTOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO16_CTRL_OUTOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO16_CTRL_OUTOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO16_CTRL_OUTOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO16_CTRL_FUNCSEL |
| // Description : 0-31 -> selects pin function according to the gpio table |
| // 31 == NULL |
| // 0x01 -> spi0_rx |
| // 0x02 -> uart0_tx |
| // 0x03 -> i2c0_sda |
| // 0x04 -> pwm_a_0 |
| // 0x05 -> sio_16 |
| // 0x06 -> pio0_16 |
| // 0x07 -> pio1_16 |
| // 0x08 -> usb_muxing_digital_dm |
| // 0x09 -> usb_muxing_vbus_detect |
| // 0x1f -> null |
| #define IO_BANK0_GPIO16_CTRL_FUNCSEL_RESET _u(0x1f) |
| #define IO_BANK0_GPIO16_CTRL_FUNCSEL_BITS _u(0x0000001f) |
| #define IO_BANK0_GPIO16_CTRL_FUNCSEL_MSB _u(4) |
| #define IO_BANK0_GPIO16_CTRL_FUNCSEL_LSB _u(0) |
| #define IO_BANK0_GPIO16_CTRL_FUNCSEL_ACCESS "RW" |
| #define IO_BANK0_GPIO16_CTRL_FUNCSEL_VALUE_SPI0_RX _u(0x01) |
| #define IO_BANK0_GPIO16_CTRL_FUNCSEL_VALUE_UART0_TX _u(0x02) |
| #define IO_BANK0_GPIO16_CTRL_FUNCSEL_VALUE_I2C0_SDA _u(0x03) |
| #define IO_BANK0_GPIO16_CTRL_FUNCSEL_VALUE_PWM_A_0 _u(0x04) |
| #define IO_BANK0_GPIO16_CTRL_FUNCSEL_VALUE_SIO_16 _u(0x05) |
| #define IO_BANK0_GPIO16_CTRL_FUNCSEL_VALUE_PIO0_16 _u(0x06) |
| #define IO_BANK0_GPIO16_CTRL_FUNCSEL_VALUE_PIO1_16 _u(0x07) |
| #define IO_BANK0_GPIO16_CTRL_FUNCSEL_VALUE_USB_MUXING_DIGITAL_DM _u(0x08) |
| #define IO_BANK0_GPIO16_CTRL_FUNCSEL_VALUE_USB_MUXING_VBUS_DETECT _u(0x09) |
| #define IO_BANK0_GPIO16_CTRL_FUNCSEL_VALUE_NULL _u(0x1f) |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO17_STATUS |
| // Description : GPIO status |
| #define IO_BANK0_GPIO17_STATUS_OFFSET _u(0x00000088) |
| #define IO_BANK0_GPIO17_STATUS_BITS _u(0x050a3300) |
| #define IO_BANK0_GPIO17_STATUS_RESET _u(0x00000000) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO17_STATUS_IRQTOPROC |
| // Description : interrupt to processors, after override is applied |
| #define IO_BANK0_GPIO17_STATUS_IRQTOPROC_RESET _u(0x0) |
| #define IO_BANK0_GPIO17_STATUS_IRQTOPROC_BITS _u(0x04000000) |
| #define IO_BANK0_GPIO17_STATUS_IRQTOPROC_MSB _u(26) |
| #define IO_BANK0_GPIO17_STATUS_IRQTOPROC_LSB _u(26) |
| #define IO_BANK0_GPIO17_STATUS_IRQTOPROC_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO17_STATUS_IRQFROMPAD |
| // Description : interrupt from pad before override is applied |
| #define IO_BANK0_GPIO17_STATUS_IRQFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO17_STATUS_IRQFROMPAD_BITS _u(0x01000000) |
| #define IO_BANK0_GPIO17_STATUS_IRQFROMPAD_MSB _u(24) |
| #define IO_BANK0_GPIO17_STATUS_IRQFROMPAD_LSB _u(24) |
| #define IO_BANK0_GPIO17_STATUS_IRQFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO17_STATUS_INTOPERI |
| // Description : input signal to peripheral, after override is applied |
| #define IO_BANK0_GPIO17_STATUS_INTOPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO17_STATUS_INTOPERI_BITS _u(0x00080000) |
| #define IO_BANK0_GPIO17_STATUS_INTOPERI_MSB _u(19) |
| #define IO_BANK0_GPIO17_STATUS_INTOPERI_LSB _u(19) |
| #define IO_BANK0_GPIO17_STATUS_INTOPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO17_STATUS_INFROMPAD |
| // Description : input signal from pad, before override is applied |
| #define IO_BANK0_GPIO17_STATUS_INFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO17_STATUS_INFROMPAD_BITS _u(0x00020000) |
| #define IO_BANK0_GPIO17_STATUS_INFROMPAD_MSB _u(17) |
| #define IO_BANK0_GPIO17_STATUS_INFROMPAD_LSB _u(17) |
| #define IO_BANK0_GPIO17_STATUS_INFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO17_STATUS_OETOPAD |
| // Description : output enable to pad after register override is applied |
| #define IO_BANK0_GPIO17_STATUS_OETOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO17_STATUS_OETOPAD_BITS _u(0x00002000) |
| #define IO_BANK0_GPIO17_STATUS_OETOPAD_MSB _u(13) |
| #define IO_BANK0_GPIO17_STATUS_OETOPAD_LSB _u(13) |
| #define IO_BANK0_GPIO17_STATUS_OETOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO17_STATUS_OEFROMPERI |
| // Description : output enable from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO17_STATUS_OEFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO17_STATUS_OEFROMPERI_BITS _u(0x00001000) |
| #define IO_BANK0_GPIO17_STATUS_OEFROMPERI_MSB _u(12) |
| #define IO_BANK0_GPIO17_STATUS_OEFROMPERI_LSB _u(12) |
| #define IO_BANK0_GPIO17_STATUS_OEFROMPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO17_STATUS_OUTTOPAD |
| // Description : output signal to pad after register override is applied |
| #define IO_BANK0_GPIO17_STATUS_OUTTOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO17_STATUS_OUTTOPAD_BITS _u(0x00000200) |
| #define IO_BANK0_GPIO17_STATUS_OUTTOPAD_MSB _u(9) |
| #define IO_BANK0_GPIO17_STATUS_OUTTOPAD_LSB _u(9) |
| #define IO_BANK0_GPIO17_STATUS_OUTTOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO17_STATUS_OUTFROMPERI |
| // Description : output signal from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO17_STATUS_OUTFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO17_STATUS_OUTFROMPERI_BITS _u(0x00000100) |
| #define IO_BANK0_GPIO17_STATUS_OUTFROMPERI_MSB _u(8) |
| #define IO_BANK0_GPIO17_STATUS_OUTFROMPERI_LSB _u(8) |
| #define IO_BANK0_GPIO17_STATUS_OUTFROMPERI_ACCESS "RO" |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO17_CTRL |
| // Description : GPIO control including function select and overrides. |
| #define IO_BANK0_GPIO17_CTRL_OFFSET _u(0x0000008c) |
| #define IO_BANK0_GPIO17_CTRL_BITS _u(0x3003331f) |
| #define IO_BANK0_GPIO17_CTRL_RESET _u(0x0000001f) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO17_CTRL_IRQOVER |
| // 0x0 -> don't invert the interrupt |
| // 0x1 -> invert the interrupt |
| // 0x2 -> drive interrupt low |
| // 0x3 -> drive interrupt high |
| #define IO_BANK0_GPIO17_CTRL_IRQOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO17_CTRL_IRQOVER_BITS _u(0x30000000) |
| #define IO_BANK0_GPIO17_CTRL_IRQOVER_MSB _u(29) |
| #define IO_BANK0_GPIO17_CTRL_IRQOVER_LSB _u(28) |
| #define IO_BANK0_GPIO17_CTRL_IRQOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO17_CTRL_IRQOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO17_CTRL_IRQOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO17_CTRL_IRQOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO17_CTRL_IRQOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO17_CTRL_INOVER |
| // 0x0 -> don't invert the peri input |
| // 0x1 -> invert the peri input |
| // 0x2 -> drive peri input low |
| // 0x3 -> drive peri input high |
| #define IO_BANK0_GPIO17_CTRL_INOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO17_CTRL_INOVER_BITS _u(0x00030000) |
| #define IO_BANK0_GPIO17_CTRL_INOVER_MSB _u(17) |
| #define IO_BANK0_GPIO17_CTRL_INOVER_LSB _u(16) |
| #define IO_BANK0_GPIO17_CTRL_INOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO17_CTRL_INOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO17_CTRL_INOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO17_CTRL_INOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO17_CTRL_INOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO17_CTRL_OEOVER |
| // 0x0 -> drive output enable from peripheral signal selected by funcsel |
| // 0x1 -> drive output enable from inverse of peripheral signal selected by funcsel |
| // 0x2 -> disable output |
| // 0x3 -> enable output |
| #define IO_BANK0_GPIO17_CTRL_OEOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO17_CTRL_OEOVER_BITS _u(0x00003000) |
| #define IO_BANK0_GPIO17_CTRL_OEOVER_MSB _u(13) |
| #define IO_BANK0_GPIO17_CTRL_OEOVER_LSB _u(12) |
| #define IO_BANK0_GPIO17_CTRL_OEOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO17_CTRL_OEOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO17_CTRL_OEOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO17_CTRL_OEOVER_VALUE_DISABLE _u(0x2) |
| #define IO_BANK0_GPIO17_CTRL_OEOVER_VALUE_ENABLE _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO17_CTRL_OUTOVER |
| // 0x0 -> drive output from peripheral signal selected by funcsel |
| // 0x1 -> drive output from inverse of peripheral signal selected by funcsel |
| // 0x2 -> drive output low |
| // 0x3 -> drive output high |
| #define IO_BANK0_GPIO17_CTRL_OUTOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO17_CTRL_OUTOVER_BITS _u(0x00000300) |
| #define IO_BANK0_GPIO17_CTRL_OUTOVER_MSB _u(9) |
| #define IO_BANK0_GPIO17_CTRL_OUTOVER_LSB _u(8) |
| #define IO_BANK0_GPIO17_CTRL_OUTOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO17_CTRL_OUTOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO17_CTRL_OUTOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO17_CTRL_OUTOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO17_CTRL_OUTOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO17_CTRL_FUNCSEL |
| // Description : 0-31 -> selects pin function according to the gpio table |
| // 31 == NULL |
| // 0x01 -> spi0_ss_n |
| // 0x02 -> uart0_rx |
| // 0x03 -> i2c0_scl |
| // 0x04 -> pwm_b_0 |
| // 0x05 -> sio_17 |
| // 0x06 -> pio0_17 |
| // 0x07 -> pio1_17 |
| // 0x09 -> usb_muxing_vbus_en |
| // 0x1f -> null |
| #define IO_BANK0_GPIO17_CTRL_FUNCSEL_RESET _u(0x1f) |
| #define IO_BANK0_GPIO17_CTRL_FUNCSEL_BITS _u(0x0000001f) |
| #define IO_BANK0_GPIO17_CTRL_FUNCSEL_MSB _u(4) |
| #define IO_BANK0_GPIO17_CTRL_FUNCSEL_LSB _u(0) |
| #define IO_BANK0_GPIO17_CTRL_FUNCSEL_ACCESS "RW" |
| #define IO_BANK0_GPIO17_CTRL_FUNCSEL_VALUE_SPI0_SS_N _u(0x01) |
| #define IO_BANK0_GPIO17_CTRL_FUNCSEL_VALUE_UART0_RX _u(0x02) |
| #define IO_BANK0_GPIO17_CTRL_FUNCSEL_VALUE_I2C0_SCL _u(0x03) |
| #define IO_BANK0_GPIO17_CTRL_FUNCSEL_VALUE_PWM_B_0 _u(0x04) |
| #define IO_BANK0_GPIO17_CTRL_FUNCSEL_VALUE_SIO_17 _u(0x05) |
| #define IO_BANK0_GPIO17_CTRL_FUNCSEL_VALUE_PIO0_17 _u(0x06) |
| #define IO_BANK0_GPIO17_CTRL_FUNCSEL_VALUE_PIO1_17 _u(0x07) |
| #define IO_BANK0_GPIO17_CTRL_FUNCSEL_VALUE_USB_MUXING_VBUS_EN _u(0x09) |
| #define IO_BANK0_GPIO17_CTRL_FUNCSEL_VALUE_NULL _u(0x1f) |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO18_STATUS |
| // Description : GPIO status |
| #define IO_BANK0_GPIO18_STATUS_OFFSET _u(0x00000090) |
| #define IO_BANK0_GPIO18_STATUS_BITS _u(0x050a3300) |
| #define IO_BANK0_GPIO18_STATUS_RESET _u(0x00000000) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO18_STATUS_IRQTOPROC |
| // Description : interrupt to processors, after override is applied |
| #define IO_BANK0_GPIO18_STATUS_IRQTOPROC_RESET _u(0x0) |
| #define IO_BANK0_GPIO18_STATUS_IRQTOPROC_BITS _u(0x04000000) |
| #define IO_BANK0_GPIO18_STATUS_IRQTOPROC_MSB _u(26) |
| #define IO_BANK0_GPIO18_STATUS_IRQTOPROC_LSB _u(26) |
| #define IO_BANK0_GPIO18_STATUS_IRQTOPROC_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO18_STATUS_IRQFROMPAD |
| // Description : interrupt from pad before override is applied |
| #define IO_BANK0_GPIO18_STATUS_IRQFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO18_STATUS_IRQFROMPAD_BITS _u(0x01000000) |
| #define IO_BANK0_GPIO18_STATUS_IRQFROMPAD_MSB _u(24) |
| #define IO_BANK0_GPIO18_STATUS_IRQFROMPAD_LSB _u(24) |
| #define IO_BANK0_GPIO18_STATUS_IRQFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO18_STATUS_INTOPERI |
| // Description : input signal to peripheral, after override is applied |
| #define IO_BANK0_GPIO18_STATUS_INTOPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO18_STATUS_INTOPERI_BITS _u(0x00080000) |
| #define IO_BANK0_GPIO18_STATUS_INTOPERI_MSB _u(19) |
| #define IO_BANK0_GPIO18_STATUS_INTOPERI_LSB _u(19) |
| #define IO_BANK0_GPIO18_STATUS_INTOPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO18_STATUS_INFROMPAD |
| // Description : input signal from pad, before override is applied |
| #define IO_BANK0_GPIO18_STATUS_INFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO18_STATUS_INFROMPAD_BITS _u(0x00020000) |
| #define IO_BANK0_GPIO18_STATUS_INFROMPAD_MSB _u(17) |
| #define IO_BANK0_GPIO18_STATUS_INFROMPAD_LSB _u(17) |
| #define IO_BANK0_GPIO18_STATUS_INFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO18_STATUS_OETOPAD |
| // Description : output enable to pad after register override is applied |
| #define IO_BANK0_GPIO18_STATUS_OETOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO18_STATUS_OETOPAD_BITS _u(0x00002000) |
| #define IO_BANK0_GPIO18_STATUS_OETOPAD_MSB _u(13) |
| #define IO_BANK0_GPIO18_STATUS_OETOPAD_LSB _u(13) |
| #define IO_BANK0_GPIO18_STATUS_OETOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO18_STATUS_OEFROMPERI |
| // Description : output enable from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO18_STATUS_OEFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO18_STATUS_OEFROMPERI_BITS _u(0x00001000) |
| #define IO_BANK0_GPIO18_STATUS_OEFROMPERI_MSB _u(12) |
| #define IO_BANK0_GPIO18_STATUS_OEFROMPERI_LSB _u(12) |
| #define IO_BANK0_GPIO18_STATUS_OEFROMPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO18_STATUS_OUTTOPAD |
| // Description : output signal to pad after register override is applied |
| #define IO_BANK0_GPIO18_STATUS_OUTTOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO18_STATUS_OUTTOPAD_BITS _u(0x00000200) |
| #define IO_BANK0_GPIO18_STATUS_OUTTOPAD_MSB _u(9) |
| #define IO_BANK0_GPIO18_STATUS_OUTTOPAD_LSB _u(9) |
| #define IO_BANK0_GPIO18_STATUS_OUTTOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO18_STATUS_OUTFROMPERI |
| // Description : output signal from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO18_STATUS_OUTFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO18_STATUS_OUTFROMPERI_BITS _u(0x00000100) |
| #define IO_BANK0_GPIO18_STATUS_OUTFROMPERI_MSB _u(8) |
| #define IO_BANK0_GPIO18_STATUS_OUTFROMPERI_LSB _u(8) |
| #define IO_BANK0_GPIO18_STATUS_OUTFROMPERI_ACCESS "RO" |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO18_CTRL |
| // Description : GPIO control including function select and overrides. |
| #define IO_BANK0_GPIO18_CTRL_OFFSET _u(0x00000094) |
| #define IO_BANK0_GPIO18_CTRL_BITS _u(0x3003331f) |
| #define IO_BANK0_GPIO18_CTRL_RESET _u(0x0000001f) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO18_CTRL_IRQOVER |
| // 0x0 -> don't invert the interrupt |
| // 0x1 -> invert the interrupt |
| // 0x2 -> drive interrupt low |
| // 0x3 -> drive interrupt high |
| #define IO_BANK0_GPIO18_CTRL_IRQOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO18_CTRL_IRQOVER_BITS _u(0x30000000) |
| #define IO_BANK0_GPIO18_CTRL_IRQOVER_MSB _u(29) |
| #define IO_BANK0_GPIO18_CTRL_IRQOVER_LSB _u(28) |
| #define IO_BANK0_GPIO18_CTRL_IRQOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO18_CTRL_IRQOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO18_CTRL_IRQOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO18_CTRL_IRQOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO18_CTRL_IRQOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO18_CTRL_INOVER |
| // 0x0 -> don't invert the peri input |
| // 0x1 -> invert the peri input |
| // 0x2 -> drive peri input low |
| // 0x3 -> drive peri input high |
| #define IO_BANK0_GPIO18_CTRL_INOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO18_CTRL_INOVER_BITS _u(0x00030000) |
| #define IO_BANK0_GPIO18_CTRL_INOVER_MSB _u(17) |
| #define IO_BANK0_GPIO18_CTRL_INOVER_LSB _u(16) |
| #define IO_BANK0_GPIO18_CTRL_INOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO18_CTRL_INOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO18_CTRL_INOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO18_CTRL_INOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO18_CTRL_INOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO18_CTRL_OEOVER |
| // 0x0 -> drive output enable from peripheral signal selected by funcsel |
| // 0x1 -> drive output enable from inverse of peripheral signal selected by funcsel |
| // 0x2 -> disable output |
| // 0x3 -> enable output |
| #define IO_BANK0_GPIO18_CTRL_OEOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO18_CTRL_OEOVER_BITS _u(0x00003000) |
| #define IO_BANK0_GPIO18_CTRL_OEOVER_MSB _u(13) |
| #define IO_BANK0_GPIO18_CTRL_OEOVER_LSB _u(12) |
| #define IO_BANK0_GPIO18_CTRL_OEOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO18_CTRL_OEOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO18_CTRL_OEOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO18_CTRL_OEOVER_VALUE_DISABLE _u(0x2) |
| #define IO_BANK0_GPIO18_CTRL_OEOVER_VALUE_ENABLE _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO18_CTRL_OUTOVER |
| // 0x0 -> drive output from peripheral signal selected by funcsel |
| // 0x1 -> drive output from inverse of peripheral signal selected by funcsel |
| // 0x2 -> drive output low |
| // 0x3 -> drive output high |
| #define IO_BANK0_GPIO18_CTRL_OUTOVER_RESET _u(0x0) |
| #define IO_BANK0_GPIO18_CTRL_OUTOVER_BITS _u(0x00000300) |
| #define IO_BANK0_GPIO18_CTRL_OUTOVER_MSB _u(9) |
| #define IO_BANK0_GPIO18_CTRL_OUTOVER_LSB _u(8) |
| #define IO_BANK0_GPIO18_CTRL_OUTOVER_ACCESS "RW" |
| #define IO_BANK0_GPIO18_CTRL_OUTOVER_VALUE_NORMAL _u(0x0) |
| #define IO_BANK0_GPIO18_CTRL_OUTOVER_VALUE_INVERT _u(0x1) |
| #define IO_BANK0_GPIO18_CTRL_OUTOVER_VALUE_LOW _u(0x2) |
| #define IO_BANK0_GPIO18_CTRL_OUTOVER_VALUE_HIGH _u(0x3) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO18_CTRL_FUNCSEL |
| // Description : 0-31 -> selects pin function according to the gpio table |
| // 31 == NULL |
| // 0x01 -> spi0_sclk |
| // 0x02 -> uart0_cts |
| // 0x03 -> i2c1_sda |
| // 0x04 -> pwm_a_1 |
| // 0x05 -> sio_18 |
| // 0x06 -> pio0_18 |
| // 0x07 -> pio1_18 |
| // 0x09 -> usb_muxing_overcurr_detect |
| // 0x1f -> null |
| #define IO_BANK0_GPIO18_CTRL_FUNCSEL_RESET _u(0x1f) |
| #define IO_BANK0_GPIO18_CTRL_FUNCSEL_BITS _u(0x0000001f) |
| #define IO_BANK0_GPIO18_CTRL_FUNCSEL_MSB _u(4) |
| #define IO_BANK0_GPIO18_CTRL_FUNCSEL_LSB _u(0) |
| #define IO_BANK0_GPIO18_CTRL_FUNCSEL_ACCESS "RW" |
| #define IO_BANK0_GPIO18_CTRL_FUNCSEL_VALUE_SPI0_SCLK _u(0x01) |
| #define IO_BANK0_GPIO18_CTRL_FUNCSEL_VALUE_UART0_CTS _u(0x02) |
| #define IO_BANK0_GPIO18_CTRL_FUNCSEL_VALUE_I2C1_SDA _u(0x03) |
| #define IO_BANK0_GPIO18_CTRL_FUNCSEL_VALUE_PWM_A_1 _u(0x04) |
| #define IO_BANK0_GPIO18_CTRL_FUNCSEL_VALUE_SIO_18 _u(0x05) |
| #define IO_BANK0_GPIO18_CTRL_FUNCSEL_VALUE_PIO0_18 _u(0x06) |
| #define IO_BANK0_GPIO18_CTRL_FUNCSEL_VALUE_PIO1_18 _u(0x07) |
| #define IO_BANK0_GPIO18_CTRL_FUNCSEL_VALUE_USB_MUXING_OVERCURR_DETECT _u(0x09) |
| #define IO_BANK0_GPIO18_CTRL_FUNCSEL_VALUE_NULL _u(0x1f) |
| // ============================================================================= |
| // Register : IO_BANK0_GPIO19_STATUS |
| // Description : GPIO status |
| #define IO_BANK0_GPIO19_STATUS_OFFSET _u(0x00000098) |
| #define IO_BANK0_GPIO19_STATUS_BITS _u(0x050a3300) |
| #define IO_BANK0_GPIO19_STATUS_RESET _u(0x00000000) |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO19_STATUS_IRQTOPROC |
| // Description : interrupt to processors, after override is applied |
| #define IO_BANK0_GPIO19_STATUS_IRQTOPROC_RESET _u(0x0) |
| #define IO_BANK0_GPIO19_STATUS_IRQTOPROC_BITS _u(0x04000000) |
| #define IO_BANK0_GPIO19_STATUS_IRQTOPROC_MSB _u(26) |
| #define IO_BANK0_GPIO19_STATUS_IRQTOPROC_LSB _u(26) |
| #define IO_BANK0_GPIO19_STATUS_IRQTOPROC_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO19_STATUS_IRQFROMPAD |
| // Description : interrupt from pad before override is applied |
| #define IO_BANK0_GPIO19_STATUS_IRQFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO19_STATUS_IRQFROMPAD_BITS _u(0x01000000) |
| #define IO_BANK0_GPIO19_STATUS_IRQFROMPAD_MSB _u(24) |
| #define IO_BANK0_GPIO19_STATUS_IRQFROMPAD_LSB _u(24) |
| #define IO_BANK0_GPIO19_STATUS_IRQFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO19_STATUS_INTOPERI |
| // Description : input signal to peripheral, after override is applied |
| #define IO_BANK0_GPIO19_STATUS_INTOPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO19_STATUS_INTOPERI_BITS _u(0x00080000) |
| #define IO_BANK0_GPIO19_STATUS_INTOPERI_MSB _u(19) |
| #define IO_BANK0_GPIO19_STATUS_INTOPERI_LSB _u(19) |
| #define IO_BANK0_GPIO19_STATUS_INTOPERI_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO19_STATUS_INFROMPAD |
| // Description : input signal from pad, before override is applied |
| #define IO_BANK0_GPIO19_STATUS_INFROMPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO19_STATUS_INFROMPAD_BITS _u(0x00020000) |
| #define IO_BANK0_GPIO19_STATUS_INFROMPAD_MSB _u(17) |
| #define IO_BANK0_GPIO19_STATUS_INFROMPAD_LSB _u(17) |
| #define IO_BANK0_GPIO19_STATUS_INFROMPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO19_STATUS_OETOPAD |
| // Description : output enable to pad after register override is applied |
| #define IO_BANK0_GPIO19_STATUS_OETOPAD_RESET _u(0x0) |
| #define IO_BANK0_GPIO19_STATUS_OETOPAD_BITS _u(0x00002000) |
| #define IO_BANK0_GPIO19_STATUS_OETOPAD_MSB _u(13) |
| #define IO_BANK0_GPIO19_STATUS_OETOPAD_LSB _u(13) |
| #define IO_BANK0_GPIO19_STATUS_OETOPAD_ACCESS "RO" |
| // ----------------------------------------------------------------------------- |
| // Field : IO_BANK0_GPIO19_STATUS_OEFROMPERI |
| // Description : output enable from selected peripheral, before register |
| // override is applied |
| #define IO_BANK0_GPIO19_STATUS_OEFROMPERI_RESET _u(0x0) |
| #define IO_BANK0_GPIO19_STATUS_OEFROMPERI_BITS _u(0x00001000) |
| #define<
|