USBDevice with MAX32620HSP platform support

Fork of USBDevice by mbed official

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Fri Feb 27 10:00:59 2015 +0000
Parent:
41:0ca6eeb54b97
Child:
43:c0605f23f916
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

USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/src/userdef/usb0_function_userdef.c Show annotated file Show diff for this revision Revisions of this file
USBDevice/USBHAL_RZ_A1H.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/src/userdef/usb0_function_userdef.c	Mon Feb 09 09:15:46 2015 +0000
+++ b/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/src/userdef/usb0_function_userdef.c	Fri Feb 27 10:00:59 2015 +0000
@@ -52,7 +52,7 @@
 /*******************************************************************************
 Macro definitions
 *******************************************************************************/
-#define DUMMY_ACCESS (*(volatile unsigned long *)(OSTM0CNT))
+#define DUMMY_ACCESS OSTM0CNT
 
 /* #define CACHE_WRITEBACK */
 
--- a/USBDevice/USBHAL_RZ_A1H.cpp	Mon Feb 09 09:15:46 2015 +0000
+++ b/USBDevice/USBHAL_RZ_A1H.cpp	Fri Feb 27 10:00:59 2015 +0000
@@ -515,10 +515,10 @@
                 if (RZA_IO_RegRead_16(
                         &g_usb0_function_pipecfg[pipe], USB_PIPECFG_DIR_SHIFT, USB_PIPECFG_DIR) == 0) {
                     /* read */
-                    __nop();
+                    __NOP();
                 } else {
                     /* write */
-                    __nop();
+                    __NOP();
                 }
             }
         }
@@ -629,7 +629,7 @@
                             if (RZA_IO_RegRead_16(
                                     &g_usb0_function_pipecfg[pipe], USB_PIPECFG_DIR_SHIFT, USB_PIPECFG_DIR) == 0) {
                                 /* read */
-                                __nop();
+                                __NOP();
                             } else {
                                 /* write */
                                 EPx_read_status = DEVDRV_USBF_PIPE_WAIT;