mbed-src updated for BMD-200 evaluation board. Just pin numbers are updated.
Dependents: mbed_blinky-bmd-200 bmd-200_accel_demo firstRig
Fork of mbed-src by
Replacement for the "mbed" or "mbed-src" library when using the BMD-200 Evaluation kit. This library only remaps the pin names (i.e. LED1 points to p0.01 instead of p0.18, etc) as used by the BMD-200 Evaluation board (select the nRF51822_mkit platform). All other code is untouched.
Diff: common/SPI.cpp
- Revision:
- 556:a1b9575155a3
- Parent:
- 529:c320967f86b9
- Child:
- 567: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); }