altos/lpc: Support UART on pio1_13/pio1_14
[fw/altos] / src / lpc / ao_serial_lpc.c
index db0e0b0c55a3f2e22513439a4acf2a8a961b239c..1a833b3860d22d3268a772124dd01cff5ddbf016 100644 (file)
@@ -157,6 +157,18 @@ ao_serial_init(void)
                              (0 << LPC_IOCONF_INV) |
                              (0 << LPC_IOCONF_OD));
 #endif
+#if SERIAL_1_13_14
+       lpc_ioconf.pio1_13 = ((LPC_IOCONF_FUNC_PIO1_13_TXD << LPC_IOCONF_FUNC) |
+                             (LPC_IOCONF_MODE_INACTIVE << LPC_IOCONF_MODE) |
+                             (0 << LPC_IOCONF_HYS) |
+                             (0 << LPC_IOCONF_INV) |
+                             (0 << LPC_IOCONF_OD));
+       lpc_ioconf.pio1_14 = ((LPC_IOCONF_FUNC_PIO1_14_RXD << LPC_IOCONF_FUNC) |
+                             (LPC_IOCONF_MODE_INACTIVE << LPC_IOCONF_MODE) |
+                             (0 << LPC_IOCONF_HYS) |
+                             (0 << LPC_IOCONF_INV) |
+                             (0 << LPC_IOCONF_OD));
+#endif
 
        /* Turn on the USART */
        lpc_scb.sysahbclkctrl |= (1 << LPC_SCB_SYSAHBCLKCTRL_USART);