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
Diff: main.cpp
- Revision:
- 13:fed6ff32bf5d
- Parent:
- 11:b9d7ab7626b5
- Child:
- 14:dd5a96c353ed
diff -r 6c4b202eb16b -r fed6ff32bf5d main.cpp
--- a/main.cpp Fri Feb 03 23:14:25 2017 +0000
+++ b/main.cpp Thu Apr 13 15:03:15 2017 +0000
@@ -1,5 +1,5 @@
#include "mbed.h"
-#include "max32630fthr.h"
+#include "rtos.h"
#include "USBSerial.h"
#include "SerialInterface.h"
@@ -8,8 +8,6 @@
#define USB_MAX_RESP_LENGTH 255
#define USB_MAX_CMD_LENGTH 255
-MAX32630FTHR pegasus(MAX32630FTHR::VIO_3V3);
-
// Virtual serial port over USB
USBSerial microUSB;
@@ -17,9 +15,9 @@
Serial daplink(P2_1, P2_0);
// Serial Interfaces
-I2C i2c(P3_4, P3_5);
-SPI spi(P5_1, P5_2, P5_0);
-DigitalInOut gpio[] = {P5_3, P5_4, P5_5, P5_6, P3_0, P3_1, P3_2, P3_3};
+I2C i2c(P1_6, P1_7);
+SPI spi(P1_5, P1_6, P1_4);
+DigitalInOut gpio[] = {P0_0, P0_1, P0_2, P0_3, P4_4, P4_5, P4_6, P4_7};
AnalogIn ain[] = {AIN_0, AIN_1, AIN_2, AIN_3, AIN_4, AIN_5, AIN_6, AIN_7};
// Serial Interface Adapter