Added TARGET_DISCO_F469NI in USBHOST\USBHost\TARGET_STM\USBHALHost_STM_TARGET.h

Dependents:   DISCO-F469NI_USB_Disk STM32F4xx_USB_Memory

Fork of USBHOST by ST

Revision:
8:3e7a33f81048
Parent:
5:fc157e6bd5a5
diff -r 7ebd364a6be5 -r 3e7a33f81048 USBHost/USBEndpoint.h
--- a/USBHost/USBEndpoint.h	Mon Apr 30 05:37:24 2018 +0000
+++ b/USBHost/USBEndpoint.h	Sat Jan 04 23:30:59 2020 +0000
@@ -89,7 +89,7 @@
     template<typename T>
     inline void attach(T* tptr, void (T::*mptr)(void)) {
         if((mptr != NULL) && (tptr != NULL)) {
-            rx.attach(tptr, mptr);
+            rx = callback(tptr, mptr);
         }
     }
 
@@ -100,7 +100,7 @@
      */
     inline void attach(void (*fptr)(void)) {
         if(fptr != NULL) {
-            rx.attach(fptr);
+            rx = fptr;
         }
     }