mbed library sources

Dependents:   frdm_kl05z_gpio_test

Fork of mbed-src by mbed official

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;