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>
This commit is contained in:
Kevin O'Connor 2019-10-24 22:21:47 -04:00
parent f723a3141e
commit 081c24326d
1 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,8 @@ set_pull_up(Pio *regs, uint32_t bit, int32_t pull_up)
regs->PIO_PUDR = bit; regs->PIO_PUDR = bit;
regs->PIO_PPDDR = bit; regs->PIO_PPDDR = bit;
} }
#endif
#if CONFIG_MACH_SAM4S
// Check if this pin is a "system IO pin" and disable if so // Check if this pin is a "system IO pin" and disable if so
if (regs == PIOB && (bit & 0x1cf0)) if (regs == PIOB && (bit & 0x1cf0))
MATRIX->CCFG_SYSIO |= bit; MATRIX->CCFG_SYSIO |= bit;