Added target compiler selections for FRDM-K20D50 which works.

Dependencies:   FATFileSystem

Dependents:   kl25z_Usb_Logger

Fork of F401RE-USBHost by Norimasa Okamoto

Revision:
18:61554f238584
Parent:
16:981c3104f6c0
--- a/USBHost/USBHALHost_F401RE.h	Mon Jun 23 20:48:53 2014 +0900
+++ b/USBHost/USBHALHost_F401RE.h	Tue Jul 01 18:33:31 2014 +0900
@@ -1,17 +1,8 @@
-// Simple USBHost for  Nucleo F401RE
 #pragma once
 #include "mbed.h"
 #include "USBHostTypes.h"
 #include "USBEndpoint.h"
 
-struct SETUP_PACKET {
-    uint8_t bmRequestType;
-    uint8_t bRequest;
-    uint16_t wValue;
-    uint16_t wIndex;
-    uint16_t wLength;
-};
-
 class HC {
     static const uint8_t DIR_IN  = 1;
     static const uint8_t DIR_OUT = 0;
@@ -44,14 +35,13 @@
     USBHALHost();
     void init();
     virtual bool addDevice(USBDeviceConnected* parent, int port, bool lowSpeed) = 0;
-    void setAddr(int addr, bool lowSpeed = false){}
-    void setEndpoint(){}
-    void token_transfer_init(){}
     int token_setup(USBEndpoint* ep, SETUP_PACKET* setup, uint16_t wLength = 0);
     int token_iso_in(USBEndpoint* ep, uint8_t* data, int size);
-    void token_ready(){}
     int multi_token_in(USBEndpoint* ep, uint8_t* data = NULL, size_t total = 0, bool block = true);
-    int multi_token_out(USBEndpoint* ep, const uint8_t* data = NULL, size_t total = 0, bool block = true);
+    int multi_token_out(USBEndpoint* ep, const uint8_t* data = NULL, size_t total = 0);
+    void multi_token_inNB(USBEndpoint* ep, uint8_t* data, int size);
+    USB_TYPE multi_token_inNB_result(USBEndpoint* ep);
+    void setToggle(USBEndpoint* ep, uint8_t toggle);
 
 private:
     int token_in(USBEndpoint* ep, uint8_t* data = NULL, int size = 0, int retryLimit = 10);