summaryrefslogtreecommitdiffstats
path: root/firmware/export/dm320.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/dm320.h')
-rw-r--r--firmware/export/dm320.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/export/dm320.h b/firmware/export/dm320.h
index 4d6b9ac08b..0e1623365a 100644
--- a/firmware/export/dm320.h
+++ b/firmware/export/dm320.h
@@ -43,6 +43,14 @@
#define PHY_IO_BASE2 0x00060000
#define DM320_REG2(addr) (*(volatile unsigned int *)(PHY_IO_BASE2 + (addr)))
+/* USBOTG */
+#define USB_NUM_ENDPOINTS 3
+/* This needs to be 2048 byte aligned, but USB_QHARRAY_ATTR should take care
+ * of that */
+#define USB_QHARRAY_ATTR __attribute__((section(".qharray"),nocommon,aligned(4)))
+#define USB_DEVBSS_ATTR IBSS_ATTR
+
+
/* Timer 0-3 */
#define IO_TIMER0_TMMD DM320_REG(0x0000)
#define IO_TIMER0_TMRSV0 DM320_REG(0x0002)