summaryrefslogtreecommitdiffstats
path: root/usb/bdt.h
diff options
context:
space:
mode:
Diffstat (limited to 'usb/bdt.h')
-rw-r--r--usb/bdt.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/usb/bdt.h b/usb/bdt.h
index 2945e2b..f4bc57d 100644
--- a/usb/bdt.h
+++ b/usb/bdt.h
@@ -3,9 +3,8 @@
#include <reg/usbotg.h>
-extern volatile struct usb0_bd usb_bdt[4 * 16];
+extern volatile struct usb0_bd usb_bdt[2][2][2];
-#define BDT_ENDPT(n, tx, odd) (usb_bdt[(n) << 2 | (tx & 1) << 1 | (odd & 1)])
#define BDT_RX 0
#define BDT_TX 1
#define BDT_EVEN 0