teensy-lc: remap UART0 to the standard pins. From Michael Hope.
This commit is contained in:
parent
4a24c31797
commit
6c895c9516
@ -74,6 +74,15 @@
|
|||||||
|
|
||||||
void kl_boardinitialize(void)
|
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
|
/* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak function
|
||||||
* kl_spiinitialize() has been brought into the link.
|
* kl_spiinitialize() has been brought into the link.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user