summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-03-09 17:17:27 +0700
committerhathach <[email protected]>2022-03-09 17:17:36 +0700
commita5fb20533cc1c9e0ed155083c1bbcb3e7be75e67 (patch)
tree59d69dcf6af8a5d1b5a13a311226e6e8d1386181 /src/device
parent708f05668d681439e521379e281d087d1910a0f3 (diff)
adding tusb_private.h to implement common edpt claim
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index fc66f83c6..4b37e8bd9 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -29,6 +29,8 @@
#if CFG_TUD_ENABLED
#include "tusb.h"
+#include "common/tusb_private.h"
+
#include "device/usbd.h"
#include "device/usbd_pvt.h"
#include "device/dcd.h"
@@ -70,6 +72,8 @@ typedef struct
uint8_t itf2drv[16]; // map interface number to driver (0xff is invalid)
uint8_t ep2drv[CFG_TUD_ENDPPOINT_MAX][2]; // map endpoint to driver ( 0xff is invalid )
+ // TODO 4-bit should be sufficient for ep2drv if we want to save half its bytes
+
struct TU_ATTR_PACKED
{
volatile bool busy : 1;