aboutsummaryrefslogtreecommitdiffstats
path: root/src/atsam/gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/atsam/gpio.c')
-rw-r--r--src/atsam/gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/atsam/gpio.c b/src/atsam/gpio.c
index 7e6a1dab..7de11ab6 100644
--- a/src/atsam/gpio.c
+++ b/src/atsam/gpio.c
@@ -32,7 +32,7 @@ gpio_peripheral(uint32_t gpio, char ptype, int32_t pull_up)
uint32_t bank = GPIO2PORT(gpio), bit = GPIO2BIT(gpio), pt = ptype - 'A';
Pio *regs = digital_regs[bank];
-#if CONFIG_MACH_SAM3X8E
+#if CONFIG_MACH_SAM3X
regs->PIO_ABSR = (regs->PIO_ABSR & ~bit) | (pt & 0x01 ? bit : 0);
#else
regs->PIO_ABCDSR[0] = (regs->PIO_ABCDSR[0] & ~bit) | (pt & 0x01 ? bit : 0);