mbed library sources: Modified to operate FRDM-KL25Z at 48MHz from internal 32kHz oscillator (nothing else changed).

Fork of mbed-src by mbed official

The only file that changed is: mbed-src-FLL48/targets/cmsis/TARGET_Freescale/TARGET_KL25Z/system_MKL25Z4.h

Revision:
19:398f4c622e1b
Parent:
18:692be3d4e4cc
diff -r 692be3d4e4cc -r 398f4c622e1b targets/hal/TARGET_Freescale/TARGET_KL25Z/i2c_api.c
--- a/targets/hal/TARGET_Freescale/TARGET_KL25Z/i2c_api.c	Mon Aug 12 13:49:01 2013 +0300
+++ b/targets/hal/TARGET_Freescale/TARGET_KL25Z/i2c_api.c	Mon Aug 19 18:17:02 2013 +0300
@@ -215,7 +215,7 @@
     for (i = 1; i < 5; i*=2) {
         for (j = 0; j < 0x40; j++) {
             ref = PCLK / (i*ICR[j]);
-            if (ref > hz)
+            if (ref > (uint32_t)hz)
                 continue;
             error = hz - ref;
             if (error < p_error) {
@@ -392,7 +392,7 @@
 }
 
 int i2c_slave_write(i2c_t *obj, const char *data, int length) {
-    uint32_t i, count = 0;
+    int i, count = 0;
     
     // set tx mode
     obj->i2c->C1 |= I2C_C1_TX_MASK;