summaryrefslogtreecommitdiffstats
path: root/usb/bdt.h
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2017-03-28 21:53:36 +0100
committerTomasz Kramkowski <tk@the-tk.com>2017-03-28 21:53:36 +0100
commit440cd59182a962b7f987d990db6d43a6026877ba (patch)
treec3efbbf25c69406b32ce04f8c504a6faf4062231 /usb/bdt.h
parent003974902952dedc56e9060c4db4b2b1ff63f283 (diff)
downloadfmk-440cd59182a962b7f987d990db6d43a6026877ba.tar.gz
fmk-440cd59182a962b7f987d990db6d43a6026877ba.tar.xz
fmk-440cd59182a962b7f987d990db6d43a6026877ba.zip
hid mouse pointer jiggler
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