#include <chip/memory-map.h>
#include <io.h>


Go to the source code of this file.
Defines | |
| #define | GPIO_GPER 0x0000 |
| GPIO Enable. | |
| #define | GPIO_GPERS 0x0004 |
| GPIO Enable Set. | |
| #define | GPIO_GPERC 0x0008 |
| GPIO Enable Clear. | |
| #define | GPIO_GPERT 0x000c |
| GPIO Enable Toggle. | |
| #define | GPIO_PMR0 0x0010 |
| Periph Mux 0. | |
| #define | GPIO_PMR0S 0x0014 |
| Periph Mux 0 Set. | |
| #define | GPIO_PMR0C 0x0018 |
| Periph Mux 0 Clear. | |
| #define | GPIO_PMR0T 0x001c |
| Periph Mux 0 Toggle. | |
| #define | GPIO_PMR1 0x0020 |
| Periph Mux 1. | |
| #define | GPIO_PMR1S 0x0024 |
| Periph Mux 1 Set. | |
| #define | GPIO_PMR1C 0x0028 |
| Periph Mux 1 Clear. | |
| #define | GPIO_PMR1T 0x002c |
| Periph Mux 1 Toggle. | |
| #define | GPIO_ODER 0x0040 |
| Output Drv Enable. | |
| #define | GPIO_ODERS 0x0044 |
| Output Drv Enable Set. | |
| #define | GPIO_ODERC 0x0048 |
| Output Drv Enable Clear. | |
| #define | GPIO_ODERT 0x004c |
| Output Drv Enable Toggle. | |
| #define | GPIO_OVR 0x0050 |
| Output Value. | |
| #define | GPIO_OVRS 0x0054 |
| Output Value Set. | |
| #define | GPIO_OVRC 0x0058 |
| Output Value Clear. | |
| #define | GPIO_OVRT 0x005c |
| Output Value Toggle. | |
| #define | GPIO_PVR 0x0060 |
| Pin Value. | |
| #define | GPIO_PUER 0x0070 |
| Pull-up Enable. | |
| #define | GPIO_PUERS 0x0074 |
| Pull-up Enable Set. | |
| #define | GPIO_PUERC 0x0078 |
| Pull-up Enable Clear. | |
| #define | GPIO_PUERT 0x007c |
| Pull-up Enable Toggle. | |
| #define | GPIO_PDER 0x0080 |
| Pull-down Enable. | |
| #define | GPIO_PDERS 0x0084 |
| Pull-down Enable Set. | |
| #define | GPIO_PDERC 0x0088 |
| Pull-down Enable Clear. | |
| #define | GPIO_PDERT 0x008c |
| Pull-down Enable Toggle. | |
| #define | GPIO_IER 0x0090 |
| Interrupt Enable. | |
| #define | GPIO_IERS 0x0094 |
| Interrupt Enable Set. | |
| #define | GPIO_IERC 0x0098 |
| Interrupt Enable Clear. | |
| #define | GPIO_IERT 0x009c |
| Interrupt Enable Toggle. | |
| #define | GPIO_IMR0 0x00a0 |
| Interrupt Mode 0. | |
| #define | GPIO_IMR0S 0x00a4 |
| Interrupt Mode 0 Set. | |
| #define | GPIO_IMR0C 0x00a8 |
| Interrupt Mode 0 Clear. | |
| #define | GPIO_IMR0T 0x00ac |
| Interrupt Mode 0 Toggle. | |
| #define | GPIO_IMR1 0x00b0 |
| Interrupt Mode 1. | |
| #define | GPIO_IMR1S 0x00b4 |
| Interrupt Mode 1 Set. | |
| #define | GPIO_IMR1C 0x00b8 |
| Interrupt Mode 1 Clear. | |
| #define | GPIO_IMR1T 0x00bc |
| Interrupt Mode 1 Toggle. | |
| #define | GPIO_GFER 0x00c0 |
| Glitch Filter. | |
| #define | GPIO_GFERS 0x00c4 |
| Glitch Filter Set. | |
| #define | GPIO_GFERC 0x00c8 |
| Glitch Filter Clear. | |
| #define | GPIO_GFERT 0x00cc |
| Glitch Filter Toggle. | |
| #define | GPIO_IFR 0x00d0 |
| Interrupt Flag. | |
| #define | GPIO_IFRC 0x00d8 |
| Interrupt Flag Clear. | |
| #define | GPIO_ODMER 0x00e0 |
| Open Drain Mode. | |
| #define | GPIO_ODMERS 0x00e4 |
| Open Drain Mode Set. | |
| #define | GPIO_ODMERC 0x00e8 |
| Open Drain Mode Clear. | |
| #define | GPIO_ODMERT 0x00ec |
| Open Drain Mode Toggle. | |
| #define | GPIO_ODCR0 0x0100 |
| Drive Strength 0. | |
| #define | GPIO_ODCR0S 0x0104 |
| Drive Strength 0 Set. | |
| #define | GPIO_ODCR0C 0x0108 |
| Drive Strength 0 Clear. | |
| #define | GPIO_ODCR0T 0x010c |
| Drive Strength 0 Toggle. | |
| #define | GPIO_ODCR1 0x0110 |
| Drive Strength 1. | |
| #define | GPIO_ODCR1S 0x0114 |
| Drive Strength 1 Set. | |
| #define | GPIO_ODCR1C 0x0118 |
| Drive Strength 1 Clear. | |
| #define | GPIO_ODCR1T 0x011c |
| Drive Strength 1 Toggle. | |
| #define | GPIO_OSRR0 0x0130 |
| Slew Rate 0. | |
| #define | GPIO_OSRR0S 0x0134 |
| Slew Rate 0 Set. | |
| #define | GPIO_OSRR0C 0x0138 |
| Slew Rate 0 Clear. | |
| #define | GPIO_OSRR0T 0x013c |
| Slew Rate 0 Toggle. | |
| #define | GPIO_STER 0x0160 |
| Schmitt Trigger. | |
| #define | GPIO_STERS 0x0164 |
| Schmitt Trigger Set. | |
| #define | GPIO_STERC 0x0168 |
| Schmitt Trigger Clear. | |
| #define | GPIO_STERT 0x016c |
| Schmitt Trigger Toggle. | |
| #define | GPIO_VERSION 0x01fc |
| Controller Version. | |
| #define | gpio_read_reg(port, reg) mmio_read32((port) + GPIO_##reg) |
| Read GPIO register reg on port. | |
| #define | gpio_write_reg(port, reg, value) mmio_write32((port) + GPIO_##reg, value) |
| Write value to GPIO register reg on port. | |
Definition in file portmux_gpio_regs.h.
| #define GPIO_GFER 0x00c0 |
| #define GPIO_GFERC 0x00c8 |
| #define GPIO_GFERS 0x00c4 |
| #define GPIO_GFERT 0x00cc |
| #define GPIO_GPER 0x0000 |
| #define GPIO_GPERC 0x0008 |
| #define GPIO_GPERS 0x0004 |
| #define GPIO_GPERT 0x000c |
| #define GPIO_IER 0x0090 |
| #define GPIO_IERC 0x0098 |
| #define GPIO_IERS 0x0094 |
| #define GPIO_IERT 0x009c |
| #define GPIO_IFR 0x00d0 |
| #define GPIO_IFRC 0x00d8 |
| #define GPIO_IMR0 0x00a0 |
| #define GPIO_IMR0C 0x00a8 |
| #define GPIO_IMR0S 0x00a4 |
| #define GPIO_IMR0T 0x00ac |
| #define GPIO_IMR1 0x00b0 |
| #define GPIO_IMR1C 0x00b8 |
| #define GPIO_IMR1S 0x00b4 |
| #define GPIO_IMR1T 0x00bc |
| #define GPIO_ODCR0 0x0100 |
| #define GPIO_ODCR0C 0x0108 |
| #define GPIO_ODCR0S 0x0104 |
| #define GPIO_ODCR0T 0x010c |
| #define GPIO_ODCR1 0x0110 |
| #define GPIO_ODCR1C 0x0118 |
| #define GPIO_ODCR1S 0x0114 |
| #define GPIO_ODCR1T 0x011c |
| #define GPIO_ODER 0x0040 |
| #define GPIO_ODERC 0x0048 |
| #define GPIO_ODERS 0x0044 |
| #define GPIO_ODERT 0x004c |
| #define GPIO_ODMER 0x00e0 |
| #define GPIO_ODMERC 0x00e8 |
| #define GPIO_ODMERS 0x00e4 |
| #define GPIO_ODMERT 0x00ec |
| #define GPIO_OSRR0 0x0130 |
| #define GPIO_OSRR0C 0x0138 |
| #define GPIO_OSRR0S 0x0134 |
| #define GPIO_OSRR0T 0x013c |
| #define GPIO_OVR 0x0050 |
| #define GPIO_OVRC 0x0058 |
| #define GPIO_OVRS 0x0054 |
| #define GPIO_OVRT 0x005c |
| #define GPIO_PDER 0x0080 |
| #define GPIO_PDERC 0x0088 |
| #define GPIO_PDERS 0x0084 |
| #define GPIO_PDERT 0x008c |
| #define GPIO_PMR0 0x0010 |
| #define GPIO_PMR0C 0x0018 |
| #define GPIO_PMR0S 0x0014 |
| #define GPIO_PMR0T 0x001c |
| #define GPIO_PMR1 0x0020 |
| #define GPIO_PMR1C 0x0028 |
| #define GPIO_PMR1S 0x0024 |
| #define GPIO_PMR1T 0x002c |
| #define GPIO_PUER 0x0070 |
| #define GPIO_PUERC 0x0078 |
| #define GPIO_PUERS 0x0074 |
| #define GPIO_PUERT 0x007c |
| #define GPIO_PVR 0x0060 |
| #define gpio_read_reg | ( | port, | |||
| reg | ) | mmio_read32((port) + GPIO_##reg) |
Read GPIO register reg on port.
Definition at line 120 of file portmux_gpio_regs.h.
Referenced by gpio_get_int_flag(), gpio_get_int_mask(), and gpio_int_is_pending().
| #define GPIO_STER 0x0160 |
| #define GPIO_STERC 0x0168 |
| #define GPIO_STERS 0x0164 |
| #define GPIO_STERT 0x016c |
| #define GPIO_VERSION 0x01fc |
| #define gpio_write_reg | ( | port, | |||
| reg, | |||||
| value | ) | mmio_write32((port) + GPIO_##reg, value) |
Write value to GPIO register reg on port.
Definition at line 123 of file portmux_gpio_regs.h.
Referenced by gpio_clear_int_flag(), gpio_disable_interrupt(), gpio_enable_interrupt(), portmux_select_gpio(), and portmux_select_peripheral().
1.5.8