aboutsummaryrefslogtreecommitdiffstats
path: root/src/sam4e8e/serial.c
diff options
context:
space:
mode:
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;