File tree 1 file changed +11
-0
lines changed
components/arduino_tinyusb/src
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 37
37
#include "soc/dport_reg.h"
38
38
#include "soc/gpio_sig_map.h"
39
39
#include "soc/usb_periph.h"
40
+ #include "soc/usb_reg.h"
41
+ #include "soc/usb_struct.h"
40
42
#include "soc/periph_defs.h" // for interrupt source
43
+ #include "soc/usb_wrap_struct.h"
41
44
42
45
#include "device/dcd.h"
43
46
47
+ #ifndef USB_OUT_EP_NUM
48
+ #define USB_OUT_EP_NUM ((int) (sizeof(USB0.out_ep_reg) / sizeof(USB0.out_ep_reg[0])))
49
+ #endif
50
+
51
+ #ifndef USB_IN_EP_NUM
52
+ #define USB_IN_EP_NUM ((int) (sizeof(USB0.in_ep_reg) / sizeof(USB0.in_ep_reg[0])))
53
+ #endif
54
+
44
55
// Max number of bi-directional endpoints including EP0
45
56
// Note: ESP32S2 specs say there are only up to 5 IN active endpoints include EP0
46
57
// We should probably prohibit enabling Endpoint IN > 4 (not done yet)
You can’t perform that action at this time.
0 commit comments