Simple USBHost library for STM32F746NG Discovery board. Only either the Fastspeed or the Highspeed port can be used( not both together)

Dependents:   DISCO-F746NG_USB_Host

Fork of KL46Z-USBHost by Norimasa Okamoto

Revision:
18:61554f238584
Parent:
16:981c3104f6c0
Child:
24:5396b6a93262
diff -r 4a710e2ba162 -r 61554f238584 USBHost/USBEndpoint.h
--- a/USBHost/USBEndpoint.h	Mon Jun 23 20:48:53 2014 +0900
+++ b/USBHost/USBEndpoint.h	Tue Jul 01 18:33:31 2014 +0900
@@ -52,6 +52,11 @@
         data01_toggle = DATA0;
     }
 
+    void ohci_init(uint8_t frameCount, uint8_t queueLimit) {
+        ohci.frameCount = frameCount;
+        ohci.queueLimit = queueLimit;
+    }
+
     /**
      *  Attach a member function to call when a transfer is finished
      *
@@ -112,6 +117,10 @@
     template<class T>
     T getHALData() { return reinterpret_cast<T>(pData); }
 
+    struct {
+        uint8_t queueLimit;
+        uint8_t frameCount; // 1-8
+    } ohci;
 private:
     USBEndpoint(){}
     ENDPOINT_TYPE type;