Mike VanderPloeg / Mbed OS BER_Board

Dependencies:   max32625pico SerialInterface USBDevice

Files at this revision

API Documentation at this revision

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;