From 081c24326dbf256b06d1abf9927500cf7dd4ae39 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 24 Oct 2019 22:21:47 -0400 Subject: [PATCH] atsam: sysio support is only available on sam4s Fix sam4e build error introduced in commit f723a314. Signed-off-by: Kevin O'Connor --- src/atsam/gpio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/atsam/gpio.c b/src/atsam/gpio.c index f3ad95ac..a40119f4 100644 --- a/src/atsam/gpio.c +++ b/src/atsam/gpio.c @@ -60,6 +60,8 @@ set_pull_up(Pio *regs, uint32_t bit, int32_t pull_up) regs->PIO_PUDR = bit; regs->PIO_PPDDR = bit; } +#endif +#if CONFIG_MACH_SAM4S // Check if this pin is a "system IO pin" and disable if so if (regs == PIOB && (bit & 0x1cf0)) MATRIX->CCFG_SYSIO |= bit;