3 #include "SDFileSystem.h"
5 #define FILE_LOC "/sd/test.txt"
7 Serial pc(USBTX, USBRX);
11 SDFileSystem sd(p11, p12, p13, p14, "sd");
13 DigitalOut myled(LED1);
14 DigitalOut sdled(LED2);
16 void sd_thread(void const *argument) {
20 fp = fopen(FILE_LOC, "w");
21 if( fp != NULL ) fclose(fp);
27 Thread sdTask(sd_thread, NULL, osPriorityNormal, DEFAULT_STACK_SIZE * 2.25);