summaryrefslogtreecommitdiffstats
path: root/usb/bdt.h
blob: 5f0a1230d38961f99669372a55af537f3239c451 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef USB_BDT_H
#define USB_BDT_H

#include <reg/usbotg.h>

extern struct usb0_bd usb_bdt[4 * 16];

#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
#define BDT_ODD 1

#endif /* USB_BDT_H */