Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: max32625pico SerialInterface USBDevice
Revision 6:bff339370df6, committed 2016-12-08
- Comitter:
- switches
- Date:
- Thu Dec 08 21:44:01 2016 +0000
- Parent:
- 5:2436ae0a9eb1
- Child:
- 7:5de026dd3a82
- Commit message:
- Separated ssel from SPI port to allow for easier multi byte SPI transactions.
Changed in this revision
| SerialInterface.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SerialInterface.lib Thu Dec 08 21:10:46 2016 +0000 +++ b/SerialInterface.lib Thu Dec 08 21:44:01 2016 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/switches/code/SerialInterface/#601b78524967 +https://developer.mbed.org/users/switches/code/SerialInterface/#0bd9ec504040
--- a/main.cpp Thu Dec 08 21:10:46 2016 +0000
+++ b/main.cpp Thu Dec 08 21:44:01 2016 +0000
@@ -15,7 +15,8 @@
// Serial Interfaces
I2C i2c(P3_4, P3_5);
-SPI spi(P5_1, P5_2, P5_0, P5_3);
+SPI spi(P5_1, P5_2, P5_0);
+DigitalOut ssel(P5_3);
// Threads
Thread threadUSB;
@@ -105,7 +106,7 @@
pegasus.init();
// Serial Interface Setup
- serInt.init(&i2c, &spi);
+ serInt.init(&i2c, &spi, &ssel);
rLED = LED_OFF;