mbed library sources: Modified to operate FRDM-KL25Z at 48MHz from internal 32kHz oscillator (nothing else changed).
Fork of mbed-src by
The only file that changed is: mbed-src-FLL48/targets/cmsis/TARGET_Freescale/TARGET_KL25Z/system_MKL25Z4.h
Diff: targets/hal/TARGET_Freescale/TARGET_KL25Z/spi_api.c
- Revision:
- 19:398f4c622e1b
- Parent:
- 15:4892fe388435
--- a/targets/hal/TARGET_Freescale/TARGET_KL25Z/spi_api.c Mon Aug 12 13:49:01 2013 +0300 +++ b/targets/hal/TARGET_Freescale/TARGET_KL25Z/spi_api.c Mon Aug 19 18:17:02 2013 +0300 @@ -153,7 +153,7 @@ divisor = 2; for (spr = 0; spr <= 8; spr++, divisor *= 2) { ref = PCLK / (prescaler*divisor); - if (ref > hz) + if (ref > (uint32_t)hz) continue; error = hz - ref; if (error < p_error) {