test µSD

Dependencies:   SD_DISCO_F469NI BSP_DISCO_F469NI BD_SD_DISCO_F469NI USBHOST

Revision:
5:5c29a3f6600b
Parent:
4:0f7797c2d3fe
Child:
6:f3337d7c598a
--- a/main.cpp	Sat Apr 07 02:10:18 2018 +0000
+++ b/main.cpp	Mon Apr 30 05:23:23 2018 +0000
@@ -6,13 +6,13 @@
  *  http://www.page.sannet.ne.jp/kenjia/index.html
  *  https://os.mbed.com/users/kenjiArai/
  *      Created:    April      7th, 2018
- *      Revised:    April      7th, 2018
+ *      Revised:    April     30th, 2018
  */
 
 //  Include --------------------------------------------------------------------
 #include    "mbed.h"
 #include    "FATFileSystem.h"
-#include    "SDBlockDeviceDISCOF769NI.h"
+#include    "SDBlockDeviceDISCOF469NI.h"
 #include    "mon.h"
 #include    <stdlib.h>
 #include    <stdio.h>
@@ -24,9 +24,9 @@
 //  Constructor ----------------------------------------------------------------
 DigitalOut      led(LED1);
 DigitalIn       user_sw(USER_BUTTON);
-Serial          pc(USBTX, USBRX, 115200);
-// Instantiate the Block Device for sd card on DISCO-F769NI
-SDBlockDeviceDISCOF769NI bd;
+Serial          pc(USBTX, USBRX);
+// Instantiate the Block Device for sd card on DISCO-F469NI
+SDBlockDeviceDISCOF469NI bd;
 FATFileSystem   fs("fs");
 
 //  RAM ------------------------------------------------------------------------
@@ -77,7 +77,7 @@
     }
     while (true) {
         uint32_t size = get_disk_freespace();
-        pc.printf("free %u  ", size);
+        pc.printf("free %u kB, ", size);
         fp = fopen("/fs/mydata.txt", "a");
         /*if (size <= DISK_SIZE_LIMIT) {
             pc.printf("Reached RAM Disk size limitation!!\r\n");