test

Dependencies:   GR-PEACH_video USBHost USBHost_custom

Fork of GR-PEACH_Camera_in by Renesas

Files at this revision

API Documentation at this revision

Comitter:
Osamu Nakamura
Date:
Tue Mar 21 12:06:48 2017 +0900
Parent:
1:aaa4b3e0f03c
Child:
3:7f7f9334bfeb
Commit message:
Introduced mbed OS 5 instead of mbed OS 2 (classic)

Changed in this revision

USBHost.lib Show diff for this revision Revisions of this file
USBHost_custom.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show diff for this revision Revisions of this file
--- a/USBHost.lib	Mon Apr 18 07:14:02 2016 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/mbed_official/code/USBHost/#028508fd50fa
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/USBHost_custom.lib	Tue Mar 21 12:06:48 2017 +0900
@@ -0,0 +1,1 @@
+https://developer.mbed.org/teams/Renesas/code/USBHost_custom/#cdc0d2ab4678
--- a/main.cpp	Mon Apr 18 07:14:02 2016 +0000
+++ b/main.cpp	Tue Mar 21 12:06:48 2017 +0900
@@ -1,5 +1,6 @@
 #include "mbed.h"
 #include "DisplayBace.h"
+#include "FATFileSystem.h"
 #include "USBHostMSD.h"
 #include "bitmap.h"
 #if defined(TARGET_RZ_A1H)
@@ -254,7 +255,8 @@
     Thread::wait(5);
     usb1en = 0;        //Outputs low level
 #endif
-    USBHostMSD msd("usb");
+    FATFileSystem fs("usb");
+    USBHostMSD msd;
     char file_name[32];
     int file_name_index = 0;
     int save_file_size;
@@ -283,12 +285,14 @@
             /* Wait 2 Vfield(Top or bottom field) */
             WaitVfield(2);
 
-            /* FrameBuffer_Video_AorB capture completed */
-            /* USB connect check */
+            /* Now, the captture into FrameBuffer_Video_AorB is completed */
+            /* Then, chech if USB flash disk is connected */
             while (!msd.connected()) {
                 if (!msd.connect()) {
                     Thread::wait(500);
                 } else {
+                    /* USB flash disk is connected */
+                    fs.mount(&msd);
                     break;
                 }
             }
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Tue Mar 21 12:06:48 2017 +0900
@@ -0,0 +1,1 @@
+https://github.com/ARMmbed/mbed-os/#cc58a7fb0c979440ab13a7fb25c4acd12009ae1c
--- a/mbed.bld	Mon Apr 18 07:14:02 2016 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/082adc85693f
\ No newline at end of file