Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of USBHost by
Revision 28:8e62b6403505, committed 2015-02-27
- Comitter:
- mbed_official
- Date:
- Fri Feb 27 10:01:08 2015 +0000
- Parent:
- 27:4206883f4cb7
- Child:
- 29:6c464ac23619
- Child:
- 30: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
