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_NXP/TARGET_LPC15XX/spi_api.c
- Revision:
- 552:a1b9575155a3
- Parent:
- 285:31249416b6f9
--- a/targets/hal/TARGET_NXP/TARGET_LPC15XX/spi_api.c Wed May 27 09:30:08 2015 +0100 +++ b/targets/hal/TARGET_NXP/TARGET_LPC15XX/spi_api.c Wed May 27 13:30:08 2015 +0100 @@ -158,17 +158,6 @@ LPC_SYSCON->SYSAHBCLKCTRL1 |= (0x1 << (obj->spi_n + 9)); LPC_SYSCON->PRESETCTRL1 |= (0x1 << (obj->spi_n + 9)); LPC_SYSCON->PRESETCTRL1 &= ~(0x1 << (obj->spi_n + 9)); - - // set default format and frequency - if (ssel == NC) { - spi_format(obj, 8, 0, 0); // 8 bits, mode 0, master - } else { - spi_format(obj, 8, 0, 1); // 8 bits, mode 0, slave - } - spi_frequency(obj, 1000000); - - // enable the spi channel - spi_enable(obj); } void spi_free(spi_t *obj)