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_KL25Z/spi_api.c
- Revision:
- 72:248c61396e08
- Parent:
- 19:398f4c622e1b
--- a/targets/hal/TARGET_Freescale/TARGET_KL25Z/spi_api.c Thu Jan 09 09:00:05 2014 +0000 +++ b/targets/hal/TARGET_Freescale/TARGET_KL25Z/spi_api.c Mon Jan 13 10:45:05 2014 +0000 @@ -20,6 +20,7 @@ #include "cmsis.h" #include "pinmap.h" #include "error.h" +#include "clk_freqs.h" static const PinMap PinMap_SPI_SCLK[] = { {PTA15, SPI_0, 2}, @@ -145,7 +146,7 @@ uint8_t ref_prescaler = 0; // bus clk - uint32_t PCLK = 48000000u; + uint32_t PCLK = bus_frequency(); uint8_t prescaler = 1; uint8_t divisor = 2;