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 10:a3f06fa13bda, committed 2016-12-15
- Comitter:
- switches
- Date:
- Thu Dec 15 17:43:33 2016 +0000
- Parent:
- 9:e59eb5f5ce32
- Child:
- 11:b9d7ab7626b5
- Commit message:
- Simplified the SerialInterface library to eliminate the init function.
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 15 03:57:28 2016 +0000 +++ b/SerialInterface.lib Thu Dec 15 17:43:33 2016 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/switches/code/SerialInterface/#c9b7256c8261 +https://developer.mbed.org/users/switches/code/SerialInterface/#06a2eb2483f6
--- a/main.cpp Thu Dec 15 03:57:28 2016 +0000
+++ b/main.cpp Thu Dec 15 17:43:33 2016 +0000
@@ -23,7 +23,7 @@
AnalogIn ain[] = {AIN_0, AIN_1, AIN_2, AIN_3, AIN_4, AIN_5, AIN_6, AIN_7};
// Serial Interface Adapter
-SerialInterface serInt(i2c, spi);
+SerialInterface serInt(i2c, spi, gpio, ain);
// Threads
Thread threadUSB;
@@ -108,8 +108,7 @@
// Board Initialization
pegasus.init(MAX32630FTHR::VIO_3V3);
-// Serial Interface Setup
- serInt.init(gpio, ain);
+// Initialize primary SPI CS
gpio[0].write(1);
gpio[0].output();