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: common/SPI.cpp
- Revision:
- 552:a1b9575155a3
- Parent:
- 525:c320967f86b9
- Child:
- 563:536c9fb088a0
--- a/common/SPI.cpp Wed May 27 09:30:08 2015 +0100 +++ b/common/SPI.cpp Wed May 27 13:30:08 2015 +0100 @@ -23,7 +23,7 @@ CircularBuffer<Transaction<SPI>, TRANSACTION_QUEUE_SIZE_SPI> SPI::_transaction_buffer; #endif -SPI::SPI(PinName mosi, PinName miso, PinName sclk, PinName _unused) : +SPI::SPI(PinName mosi, PinName miso, PinName sclk, PinName ssel) : _spi(), #if DEVICE_SPI_ASYNCH _irq(this), @@ -32,7 +32,7 @@ _bits(8), _mode(0), _hz(1000000) { - spi_init(&_spi, mosi, miso, sclk, NC); + spi_init(&_spi, mosi, miso, sclk, ssel); spi_format(&_spi, _bits, _mode, 0); spi_frequency(&_spi, _hz); }