summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/usb-drv-as3525v2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/usb-drv-as3525v2.h b/firmware/target/arm/as3525/usb-drv-as3525v2.h
index 4e88530373..23be1c5b49 100644
--- a/firmware/target/arm/as3525/usb-drv-as3525v2.h
+++ b/firmware/target/arm/as3525/usb-drv-as3525v2.h
@@ -25,11 +25,11 @@
25 25
26#define USB_DEVICE (USB_BASE + 0x0800) /** USB Device base address */ 26#define USB_DEVICE (USB_BASE + 0x0800) /** USB Device base address */
27 27
28#define USB_BASE_REG(offset) (*(volatile unsigned long *)(USB_BASE + offset))
29
30/** 28/**
31 * Core Global Registers 29 * Core Global Registers
32 */ 30 */
31#define USB_BASE_REG(offset) (*(volatile unsigned long *)(USB_BASE + offset))
32
33#define USB_GOTGCTL USB_BASE_REG(0x000) /** OTG Control and Status Register */ 33#define USB_GOTGCTL USB_BASE_REG(0x000) /** OTG Control and Status Register */
34#define USB_GOTGINT USB_BASE_REG(0x004) /** OTG Interrupt Register */ 34#define USB_GOTGINT USB_BASE_REG(0x004) /** OTG Interrupt Register */
35#define USB_GAHBCFG USB_BASE_REG(0x008) /** Core AHB Configuration Register */ 35#define USB_GAHBCFG USB_BASE_REG(0x008) /** Core AHB Configuration Register */