fork from va009039/USBLocalFileSystem

Dependencies:   USBDevice

Dependents:   11u35_usbLocalFilesystem

Fork of USBLocalFileSystem by Norimasa Okamoto

Files at this revision

API Documentation at this revision

Comitter:
k4zuki
Date:
Fri Mar 04 10:27:29 2016 +0000
Parent:
10:a538e428a664
Commit message:
remove SWSPI

Changed in this revision

USBMSD2/USBMSD2.h Show annotated file Show diff for this revision Revisions of this file
src/SDStorage.cpp Show annotated file Show diff for this revision Revisions of this file
src/StorageInterface.h Show annotated file Show diff for this revision Revisions of this file
diff -r a538e428a664 -r c396747794c6 USBMSD2/USBMSD2.h
--- a/USBMSD2/USBMSD2.h	Tue Nov 10 01:08:30 2015 +0000
+++ b/USBMSD2/USBMSD2.h	Fri Mar 04 10:27:29 2016 +0000
@@ -25,6 +25,10 @@
 #include "USBDevice.h"
 #include "DiskInterface.h"
 
+class USB_MSD;
+class USB_CDC;
+class USB_HID;
+
 /**
  * USBMSD2 class: generic class in order to use all kinds of blocks storage chip
  *
@@ -53,10 +57,6 @@
  * If disk_status() returns 1 (disk not initialized), then disk_initialize() is called. After this step, connect() will collect information
  * such as the number of blocks and the memory size.
  */
-class USB_MSD;
-class USB_CDC;
-class USB_HID;
-
 class USBMSD2: public DiskInterface, public USBDevice {
 public:
     /**
diff -r a538e428a664 -r c396747794c6 src/SDStorage.cpp
--- a/src/SDStorage.cpp	Tue Nov 10 01:08:30 2015 +0000
+++ b/src/SDStorage.cpp	Fri Mar 04 10:27:29 2016 +0000
@@ -443,12 +443,12 @@
         debug("Couldn't read csd response from disk\n");
         return 0;
     }
-    
+
     // csd_structure : csd[127:126]
     // c_size        : csd[73:62]
     // c_size_mult   : csd[49:47]
     // read_bl_len   : csd[83:80] - the *maximum* read block length
-    
+
     int csd_structure = ext_bits(csd, 127, 126);
     
     switch (csd_structure) {
diff -r a538e428a664 -r c396747794c6 src/StorageInterface.h
--- a/src/StorageInterface.h	Tue Nov 10 01:08:30 2015 +0000
+++ b/src/StorageInterface.h	Fri Mar 04 10:27:29 2016 +0000
@@ -1,5 +1,7 @@
 #pragma once
 
+/** StorageInterface class
+*/
 class StorageInterface {
 public:
     StorageInterface() {