aboutsummaryrefslogtreecommitdiffstats
path: root/src/atsamd/gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/atsamd/gpio.c')
-rw-r--r--src/atsamd/gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/atsamd/gpio.c b/src/atsamd/gpio.c
index a83163a8..ad5bfdb7 100644
--- a/src/atsamd/gpio.c
+++ b/src/atsamd/gpio.c
@@ -46,7 +46,7 @@ gpio_peripheral(uint32_t gpio, char ptype, int32_t pull_up)
#define NUM_PORT 2
DECL_ENUMERATION_RANGE("pin", "PA0", GPIO('A', 0), 32);
DECL_ENUMERATION_RANGE("pin", "PB0", GPIO('B', 0), 32);
-#elif CONFIG_MACH_SAMD51
+#elif CONFIG_MACH_SAMX5
#define NUM_PORT 4
DECL_ENUMERATION_RANGE("pin", "PA0", GPIO('A', 0), 32);
DECL_ENUMERATION_RANGE("pin", "PB0", GPIO('B', 0), 32);