Closed rei-vilo closed 9 years ago
Hi Vilo,
Thanks for your updates. Would you please share with me how to compile the Energia latest source code?
Thanks, Tony
在 Oct 20, 2013,6:50 AM,Rei Vilo notifications@github.com 写道:
UART(1) is active on PC_4 / PC_5 but not on PB_0 / PB_1.
The Stellaris® LM4F120H5QR Microcontroller Datasheet (lm4f120h5qr) mentions those pins, for example on tables 21-5 and 21-6, consistent with the pins map I've released.
But why the pins aren't defined on HardwareSerial.cpp?
// // // The list of UART GPIO configurations. // // static const unsigned long g_ulUARTConfig[8][2] = { {GPIO_PA0_U0RX, GPIO_PA1_U0TX}, {GPIO_PC4_U1RX, GPIO_PC5_U1TX}, {GPIO_PD6_U2RX, GPIO_PD7_U2TX}, {GPIO_PC6_U3RX, GPIO_PC7_U3TX}, {GPIO_PC4_U4RX, GPIO_PC5_U4TX}, {GPIO_PE4_U5RX, GPIO_PE5_U5TX}, {GPIO_PD4_U6RX, GPIO_PD5_U6TX}, {GPIO_PE0_U7RX, GPIO_PE1_U7TX} }; Is there a reason?
— Reply to this email directly or view it on GitHub.
See Build Energia at the wiki.
Unfortunately, SoftwareSerial can't be used as an interim solution, because it isn't available on Stellaris / Tiva C platform.
What are the substitutes? Perhaps we could patch SoftwareSerial
.
Closing this in lieu of issue #552 with pullrequest
UART(1) is active on PC_4 / PC_5 but not on PB_0 / PB_1.
The Stellaris® LM4F120H5QR Microcontroller Datasheet (lm4f120h5qr) mentions those pins, for example on tables 21-5 and 21-6, consistent with the pins map I've released.
But why the pins aren't defined on HardwareSerial.cpp?
Is there a reason?