teensy-lc: remap UART0 to the standard pins. From Michael Hope.

This commit is contained in:
Gregory Nutt 2015-05-07 16:44:38 -06:00
parent 4a24c31797
commit 6c895c9516

View File

@ -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.
*/