mbed library sources, include can_api for nucleo-f091rc
Dependents: CanNucleoF0_example
Fork of mbed-src by
Diff: targets/hal/TARGET_NXP/TARGET_LPC11UXX/spi_api.c
- Revision:
- 552:a1b9575155a3
- Parent:
- 285:31249416b6f9
diff -r 0a217666a41a -r a1b9575155a3 targets/hal/TARGET_NXP/TARGET_LPC11UXX/spi_api.c --- a/targets/hal/TARGET_NXP/TARGET_LPC11UXX/spi_api.c Wed May 27 09:30:08 2015 +0100 +++ b/targets/hal/TARGET_NXP/TARGET_LPC11UXX/spi_api.c Wed May 27 13:30:08 2015 +0100 @@ -50,17 +50,6 @@ break; } - // 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 ssp channel - ssp_enable(obj); - // pin out the spi pins pinmap_pinout(mosi, PinMap_SPI_MOSI); pinmap_pinout(miso, PinMap_SPI_MISO);