aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-10-24 22:21:47 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-10-24 22:21:47 -0400
commit081c24326dbf256b06d1abf9927500cf7dd4ae39 (patch)
tree8312a4ebb56350c361567294d422fb13f63e5fe7 /src
parentf723a3141e02d038c8f12aca477d3c38c8283f4a (diff)
downloadkutter-081c24326dbf256b06d1abf9927500cf7dd4ae39.tar.gz
kutter-081c24326dbf256b06d1abf9927500cf7dd4ae39.tar.xz
kutter-081c24326dbf256b06d1abf9927500cf7dd4ae39.zip
atsam: sysio support is only available on sam4s
Fix sam4e build error introduced in commit f723a314. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r--src/atsam/gpio.c2
1 files changed, 2 insertions, 0 deletions
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;