Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-src by
Diff: targets/hal/TARGET_Freescale/TARGET_KLXX/serial_api.c
- Revision:
- 339:40bd4701f3e2
- Parent:
- 227:7bd0639b8911
diff -r c7460e7973ce -r 40bd4701f3e2 targets/hal/TARGET_Freescale/TARGET_KLXX/serial_api.c
--- a/targets/hal/TARGET_Freescale/TARGET_KLXX/serial_api.c Mon Oct 06 11:00:07 2014 +0100
+++ b/targets/hal/TARGET_Freescale/TARGET_KLXX/serial_api.c Mon Oct 06 11:45:07 2014 +0100
@@ -96,8 +96,12 @@
pinmap_pinout(rx, PinMap_UART_RX);
// set rx/tx pins in PullUp mode
- pin_mode(tx, PullUp);
- pin_mode(rx, PullUp);
+ if (tx != NC) {
+ pin_mode(tx, PullUp);
+ }
+ if (rx != NC) {
+ pin_mode(rx, PullUp);
+ }
obj->uart->C2 |= (UARTLP_C2_RE_MASK | UARTLP_C2_TE_MASK);
