aboutsummaryrefslogtreecommitdiffstats
path: root/src/sam4e8e/serial.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-12-25 11:19:30 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-01-07 19:30:17 -0500
commit7707d5a74e5dc13c07fa637447e00be30cca582b (patch)
tree5d047fc7a2e6df01ad42c28c6a5b96183d41fef5 /src/sam4e8e/serial.c
parentf0715de0049b238b4bbcb0389fe5848fd271118e (diff)
downloadkutter-7707d5a74e5dc13c07fa637447e00be30cca582b.tar.gz
kutter-7707d5a74e5dc13c07fa637447e00be30cca582b.tar.xz
kutter-7707d5a74e5dc13c07fa637447e00be30cca582b.zip
sam4e8e: Rename gpio_set_peripheral() to gpio_peripheral()
Use the same definition for gpio_peripheral() that the sam3x8e code uses. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/sam4e8e/serial.c')
-rw-r--r--src/sam4e8e/serial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sam4e8e/serial.c b/src/sam4e8e/serial.c
index 12ae8de9..c75623bc 100644
--- a/src/sam4e8e/serial.c
+++ b/src/sam4e8e/serial.c
@@ -13,8 +13,8 @@
void
serial_init(void)
{
- gpio_set_peripheral('A', PIO_PA9A_URXD0, 'A', 1);
- gpio_set_peripheral('A', PIO_PA10A_UTXD0, 'A', 0);
+ gpio_peripheral(GPIO('A', 9), 'A', 1);
+ gpio_peripheral(GPIO('A', 10), 'A', 0);
// Reset uart
PMC->PMC_PCER0 = 1 << ID_UART0;