summaryrefslogtreecommitdiffstats
path: root/usb/bdt.h
blob: 2945e2bd24cd198ad8fe98f60227f03c43f62059 (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 volatile 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 */