aboutsummaryrefslogtreecommitdiffstats
path: root/src/pru/gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pru/gpio.c')
-rw-r--r--src/pru/gpio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pru/gpio.c b/src/pru/gpio.c
index 79b313ad..1e298657 100644
--- a/src/pru/gpio.c
+++ b/src/pru/gpio.c
@@ -29,6 +29,11 @@ struct gpio_regs {
volatile uint32_t setdataout;
};
+DECL_ENUMERATION_RANGE("pin", "gpio0_0", GPIO(0, 0), 32);
+DECL_ENUMERATION_RANGE("pin", "gpio1_0", GPIO(1, 0), 32);
+DECL_ENUMERATION_RANGE("pin", "gpio2_0", GPIO(2, 0), 32);
+DECL_ENUMERATION_RANGE("pin", "gpio3_0", GPIO(3, 0), 32);
+
static struct gpio_regs *digital_regs[] = {
(void*)0x44e07000, (void*)0x4804c000, (void*)0x481ac000, (void*)0x481ae000
};