mbed library sources
Dependents: Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more
Superseded
This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.
Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.
If you are looking for a stable and tested release, please import one of the official mbed library releases:
Import librarymbed
The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Diff: targets/hal/TARGET_Freescale/TARGET_KLXX/serial_api.c
- Revision:
- 158:3121b9889f7b
- Parent:
- 82:0b31dbcd4769
- Child:
- 227:7bd0639b8911
--- a/targets/hal/TARGET_Freescale/TARGET_KLXX/serial_api.c Fri Apr 11 17:15:06 2014 +0100 +++ b/targets/hal/TARGET_Freescale/TARGET_KLXX/serial_api.c Fri Apr 11 17:30:07 2014 +0100 @@ -159,7 +159,7 @@ // TODO: Support other number of data bits (also in the write method!) if ((data_bits < 8) || (data_bits > 8)) { - error("Invalid number of bits (%d) in serial format, should be 8\r\n", data_bits); + error("Invalid number of bits (%d) in serial format, should be 8", data_bits); } uint8_t parity_enable, parity_select; @@ -168,13 +168,13 @@ case ParityOdd : parity_enable = 1; parity_select = 1; data_bits++; break; case ParityEven: parity_enable = 1; parity_select = 0; data_bits++; break; default: - error("Invalid serial parity setting\r\n"); + error("Invalid serial parity setting"); return; } // 1 stop bits = 0, 2 stop bits = 1 if ((stop_bits != 1) && (stop_bits != 2)) { - error("Invalid stop bits specified\r\n"); + error("Invalid stop bits specified"); } stop_bits -= 1;