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: SDFileSystem max32630fthr USBDevice
Fork of FTHR_SD_Demo by
Diff: main.cpp
- Revision:
- 3:247c750f9f3d
- Parent:
- 1:90313362ec11
- Child:
- 4:bafcac667ef6
--- a/main.cpp Wed Nov 16 01:04:04 2016 +0000
+++ b/main.cpp Sun Nov 20 23:57:26 2016 +0000
@@ -2,6 +2,8 @@
#include "max32630fthr.h"
#include "SDFileSystem.h"
+MAX32630FTHR pegasus(MAX32630FTHR::VIO_3V3);
+
DigitalOut rLED(LED1);
DigitalOut gLED(LED2);
@@ -14,11 +16,7 @@
gLED = LED_OFF;
rLED = LED_ON;
- max32630fthrInit();
- vddioh(P0_4, TRUE);
- vddioh(P0_5, TRUE);
- vddioh(P0_6, TRUE);
- vddioh(P0_7, TRUE);
+ pegasus.init();
gLED = LED_ON;
FILE *fp = fopen("/sd/myfile.txt", "w");
