aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2021-12-23 21:43:15 -0800
committerChristian Cunningham <cc@localhost>2021-12-23 21:43:15 -0800
commitcf7203d851ec5d8971c6ee84b196ead219cadfc7 (patch)
treee54aee6e5b2af2d6abc38510466543ebe43ce9a9
parent9bc94963aefcb5028c3529ff59c974e48d814690 (diff)
Intro USB
-rw-r--r--src/sys/core.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/sys/core.h b/src/sys/core.h
index b76df1b..594db7f 100644
--- a/src/sys/core.h
+++ b/src/sys/core.h
@@ -112,7 +112,6 @@ enum
PM_RSTC_WRCFG_FULL_RESET = 0x00000020,
PM_RSTC_RESET = 0x00000102,
};
-#define uint32_t unsigned long
#define USB_BASE 0x3F980000
//CORE
#define USB_CORE_GAHBCFG ((volatile uint32_t *)(0x8 + USB_BASE))
@@ -134,6 +133,15 @@ enum
#define USB_HOST_HCTSIZ1 ((volatile uint32_t *)(0x530 + USB_BASE))
#define USB_HOST_HCDMA1 ((volatile uint32_t *)(0x534 + USB_BASE))
+#define USB_HOST_HCCHAR2 ((volatile uint32_t *)(0x540 + USB_BASE))
+#define USB_HOST_HCINTMSK2 ((volatile uint32_t *)(0x54C + USB_BASE))
+#define USB_HOST_HCTSIZ2 ((volatile uint32_t *)(0x550 + USB_BASE))
+#define USB_HOST_HCDMA2 ((volatile uint32_t *)(0x554 + USB_BASE))
+#define USB_HOST_HCCHAR3 ((volatile uint32_t *)(0x560 + USB_BASE))
+#define USB_HOST_HCINTMSK3 ((volatile uint32_t *)(0x56C + USB_BASE))
+#define USB_HOST_HCTSIZ3 ((volatile uint32_t *)(0x570 + USB_BASE))
+#define USB_HOST_HCDMA3 ((volatile uint32_t *)(0x574 + USB_BASE))
+
#define uint8_t unsigned char
#define uint16_t unsigned short
#define uint32_t unsigned long