From 6c895c95161da90ebf9ef71c94f17db9fb2d6792 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 7 May 2015 16:44:38 -0600 Subject: [PATCH] teensy-lc: remap UART0 to the standard pins. From Michael Hope. --- configs/teensy-lc/src/kl_boardinitialize.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configs/teensy-lc/src/kl_boardinitialize.c b/configs/teensy-lc/src/kl_boardinitialize.c index 48bc7533a5..28c5fcb766 100644 --- a/configs/teensy-lc/src/kl_boardinitialize.c +++ b/configs/teensy-lc/src/kl_boardinitialize.c @@ -74,6 +74,15 @@ void kl_boardinitialize(void) { +#if defined(CONFIG_KL_UART0) + /* Remap UART0 to the standard pins. */ + + kl_configgpio(PIN_PORTA | PIN2); + kl_configgpio(PIN_PORTA | PIN1); + kl_configgpio(PIN_UART0_RX_3); + kl_configgpio(PIN_UART0_TX_3); +#endif + /* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak function * kl_spiinitialize() has been brought into the link. */