X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Flpc%2Fao_serial_lpc.c;h=2362c67421774f77a73b08c63afc8d5ee5147f36;hb=HEAD;hp=1a833b3860d22d3268a772124dd01cff5ddbf016;hpb=68c3a1f238be808b23573dbd19bcfc135d25bd03;p=fw%2Faltos diff --git a/src/lpc/ao_serial_lpc.c b/src/lpc/ao_serial_lpc.c index 1a833b38..2362c674 100644 --- a/src/lpc/ao_serial_lpc.c +++ b/src/lpc/ao_serial_lpc.c @@ -156,8 +156,7 @@ ao_serial_init(void) (0 << LPC_IOCONF_HYS) | (0 << LPC_IOCONF_INV) | (0 << LPC_IOCONF_OD)); -#endif -#if SERIAL_1_13_14 +#elif 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) | @@ -168,6 +167,8 @@ ao_serial_init(void) (0 << LPC_IOCONF_HYS) | (0 << LPC_IOCONF_INV) | (0 << LPC_IOCONF_OD)); +#else +#error No serial pin configuration selected #endif /* Turn on the USART */