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: USBDevice max32625pico
Fork of PICO_self_test by
Diff: main.cpp
- Revision:
- 6:fa0134a8ac32
- Parent:
- 5:39fe91b6d3f0
- Child:
- 7:62efbc5411c8
--- a/main.cpp Tue Dec 13 22:00:12 2016 +0000
+++ b/main.cpp Mon Dec 19 18:46:28 2016 +0000
@@ -2,7 +2,7 @@
#include "max32630fthr.h"
#include "USBMSD_SD.h"
-MAX32630FTHR pegasus;
+MAX32630FTHR pegasus(MAX32630FTHR::VIO_3V3);
// Hardware serial port over DAPLink
Serial daplink(P2_1, P2_0);
@@ -26,7 +26,7 @@
while(1) {
Thread::wait(500);
gLED = !gLED;
- }
+ }
}
// Function to read monitor port
@@ -42,7 +42,7 @@
{
float aIn;
daplink.printf("Initializing MAX32630FTHR\r\n");
- pegasus.init(MAX32630FTHR::VIO_3V3);
+// pegasus.init(MAX32630FTHR::VIO_3V3);
daplink.printf("Checking Supplies\r\n");
aIn = 2.4f * vdd12In;
daplink.printf("vdd12 = %f\r\n", aIn);
