2018.07.26

Dependencies:   FATFileSystem3 mbed-rtos

Fork of USBHost by mbed official

Revision:
28:8e62b6403505
Parent:
27:4206883f4cb7
Child:
29:d3b77affed28
--- a/USBHost/USBHALHost_RZ_A1.cpp	Mon Jan 19 14:30:37 2015 +0000
+++ b/USBHost/USBHALHost_RZ_A1.cpp	Fri Feb 27 10:01:08 2015 +0000
@@ -237,6 +237,7 @@
 
 void USBHALHost::UsbIrqhandler() {
     uint32_t int_status = ohciwrapp_reg_r(OHCI_REG_INTERRUPTSTATUS) & ohciwrapp_reg_r(OHCI_REG_INTERRUPTENABLE);
+    uint32_t data;
 
     if (int_status != 0) { //Is there something to actually process?
         // Root hub status change interrupt
@@ -254,7 +255,8 @@
                         wait_ms(150);
 
                         //Hub 0 (root hub), Port 1 (count starts at 1), Low or High speed
-                        deviceConnected(0, 1, ohciwrapp_reg_r(OHCI_REG_RHPORTSTATUS1) & OR_RH_PORT_LSDA);
+                        data = ohciwrapp_reg_r(OHCI_REG_RHPORTSTATUS1) & OR_RH_PORT_LSDA;
+                        deviceConnected(0, 1, data);
                     }
 
                     //Root device disconnected