doku newon / DokuUSBHostWithIso

Dependencies:   FATFileSystem mbed-rtos

Dependents:   Peach_AudioChannelDividerAndCompensator

Revision:
30:2851a9b2bbfb
Parent:
27:4206883f4cb7
Child:
31:271fcfd7cfc2
--- a/USBHost/USBHALHost_LPC17.cpp	Tue Mar 31 16:15:42 2015 +0100
+++ b/USBHost/USBHALHost_LPC17.cpp	Wed Apr 01 05:36:16 2015 +0000
@@ -234,6 +234,14 @@
     return NULL; //Could not alloc TD
 }
 
+#if(1) /* Isochronous */
+bool USBHALHost::isTD(volatile uint8_t* td) {
+    if (td >= usb_tdBuf && td < (usb_tdBuf+TD_SIZE*MAX_TD)) {
+        return true;
+    }
+    return false;
+}
+#endif
 
 void USBHALHost::freeED(volatile uint8_t * ed) {
     int i;