libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Defined Constants and Types for the NRF52xx General Purpose I/O More...
Modules | |
GPIO Pin Mode | |
GPIO Output Pin Pullup | |
GPIO Pin Identifiers | |
GPIO ports | |
GPIO drive configuration | |
GPIO sensing mechanism | |
Defined Constants and Types for the NRF52xx General Purpose I/O
LGPL License Terms libopencm3 License
#define GPIO_CNF_DRIVE_MASK 7 |
Definition at line 81 of file common/gpio.h.
#define GPIO_CNF_DRIVE_SHIFT 8 |
Definition at line 80 of file common/gpio.h.
#define GPIO_CNF_MODE_MASK 2 |
Definition at line 57 of file common/gpio.h.
#define GPIO_CNF_MODE_SHIFT 0 |
Definition at line 58 of file common/gpio.h.
#define GPIO_CNF_PUPD_MASK 2 |
Definition at line 69 of file common/gpio.h.
#define GPIO_CNF_PUPD_SHIFT 2 |
Definition at line 70 of file common/gpio.h.
#define GPIO_CNF_SENSE_MASK 3 |
Definition at line 113 of file common/gpio.h.
#define GPIO_CNF_SENSE_SHIFT 16 |
Definition at line 112 of file common/gpio.h.
Definition at line 48 of file common/gpio.h.
Definition at line 50 of file common/gpio.h.
Definition at line 49 of file common/gpio.h.
#define GPIO_EVENT_IN | ( | n | ) | MMIO32(GPIOTE_BASE + 0x100 + 0x4 * (n)) |
Definition at line 131 of file common/gpio.h.
#define GPIO_EVENT_PORT MMIO32(GPIOTE_BASE + 0x17C) |
Definition at line 133 of file common/gpio.h.
Definition at line 46 of file common/gpio.h.
#define GPIO_INTEN MMIO32(GPIOTE_BASE + 0x300) |
Definition at line 135 of file common/gpio.h.
#define GPIO_INTEN_IN | ( | n | ) | (1 << (n)) |
Definition at line 142 of file common/gpio.h.
#define GPIO_INTEN_PORT (1 << 31) |
Definition at line 144 of file common/gpio.h.
#define GPIO_INTENCLR MMIO32(GPIOTE_BASE + 0x308) |
Definition at line 137 of file common/gpio.h.
#define GPIO_INTENSET MMIO32(GPIOTE_BASE + 0x304) |
Definition at line 136 of file common/gpio.h.
Definition at line 42 of file common/gpio.h.
Definition at line 44 of file common/gpio.h.
Definition at line 43 of file common/gpio.h.
Definition at line 52 of file common/gpio.h.
#define GPIO_TASK_OUT | ( | n | ) | MMIO32(GPIOTE_BASE + 0x4 * (n)) |
Definition at line 130 of file common/gpio.h.
#define GPIO_TE_CONFIG | ( | n | ) | MMIO32(GPIOTE_BASE + 0x510 + 0x4 * (n)) |
Definition at line 139 of file common/gpio.h.
#define GPIO_TE_CONFIG_MODE_MASK 3 |
Definition at line 149 of file common/gpio.h.
#define GPIO_TE_CONFIG_MODE_SHIFT 0 |
Definition at line 148 of file common/gpio.h.
#define GPIO_TE_CONFIG_OUTINIT (1 << 20) |
Definition at line 157 of file common/gpio.h.
#define GPIO_TE_CONFIG_POLARITY_MASK 3 |
Definition at line 155 of file common/gpio.h.
#define GPIO_TE_CONFIG_POLARITY_SHIFT 16 |
Definition at line 154 of file common/gpio.h.
#define GPIO_TE_CONFIG_PSEL_MASK 0x1f |
Definition at line 152 of file common/gpio.h.
#define GPIO_TE_CONFIG_PSEL_SHIFT 8 |
Definition at line 151 of file common/gpio.h.
#define GPIO_TE_MODE_DISABLED 0 |
Definition at line 159 of file common/gpio.h.
#define GPIO_TE_MODE_EVENT 1 |
Definition at line 160 of file common/gpio.h.
#define GPIO_TE_MODE_TASK 3 |
Definition at line 161 of file common/gpio.h.
#define GPIO_TE_OUTINIT_HIGH 1 |
Definition at line 169 of file common/gpio.h.
#define GPIO_TE_OUTINIT_LOW 0 |
Definition at line 168 of file common/gpio.h.
#define GPIO_TE_POLARITY_HI_TO_LO 2 |
Definition at line 165 of file common/gpio.h.
#define GPIO_TE_POLARITY_LO_TO_HI 1 |
Definition at line 164 of file common/gpio.h.
#define GPIO_TE_POLARITY_NONE 0 |
Definition at line 163 of file common/gpio.h.
#define GPIO_TE_POLARITY_TOGGLE 3 |
Definition at line 166 of file common/gpio.h.