USBHost library. NOTE: This library is only officially supported on the LPC1768 platform. For more information, please see the handbook page.
Dependencies: FATFileSystem mbed-rtos
Dependents: BTstack WallbotWii SD to Flash Data Transfer USBHost-MSD_HelloWorld ... more
Legacy Warning
This is an mbed 2 library. To learn more about mbed OS 5, visit the docs.
Pull requests against this repository are no longer supported. Please raise against mbed OS 5 as documented above.
Revision 28:8e62b6403505, committed 2015-02-27
- Comitter:
- mbed_official
- Date:
- Fri Feb 27 10:01:08 2015 +0000
- Parent:
- 27:4206883f4cb7
- Child:
- 29:d3b77affed28
- Commit message:
- Synchronized with git revision 43d7f387ec8e6fef8c03cb5e3a74f7b1596c8f8c
Full URL: https://github.com/mbedmicro/mbed/commit/43d7f387ec8e6fef8c03cb5e3a74f7b1596c8f8c/
RZ/A1H - Modify to support GCC and Fix some bugs of driver.
Changed in this revision
--- a/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/src/userdef/usb0_host_userdef.c Mon Jan 19 14:30:37 2015 +0000 +++ b/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/src/userdef/usb0_host_userdef.c Fri Feb 27 10:01:08 2015 +0000 @@ -56,7 +56,7 @@ /******************************************************************************* Macro definitions *******************************************************************************/ -#define DUMMY_ACCESS (*(volatile unsigned long *)(OSTM0CNT)) +#define DUMMY_ACCESS OSTM0CNT /* #define CACHE_WRITEBACK */
--- 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