summaryrefslogtreecommitdiff
path: root/src/device/usbd_pvt.h
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2025-12-14 21:33:55 +0100
committerHiFiPhile <[email protected]>2025-12-14 21:33:55 +0100
commitc5f91ec6f54509d03529e276ffd42b0d9abab695 (patch)
tree282a2c91f917a09f3bb6611e37bfe93c5d134b47 /src/device/usbd_pvt.h
parent23451ce886ba1eddf194edba4f9b65794dcdc3bd (diff)
reduce code size
Signed-off-by: HiFiPhile <[email protected]>
Diffstat (limited to 'src/device/usbd_pvt.h')
-rw-r--r--src/device/usbd_pvt.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/device/usbd_pvt.h b/src/device/usbd_pvt.h
index f556b556b..bc9a737b2 100644
--- a/src/device/usbd_pvt.h
+++ b/src/device/usbd_pvt.h
@@ -72,8 +72,11 @@ void usbd_int_set(bool enabled);
void usbd_spin_lock(bool in_isr);
void usbd_spin_unlock(bool in_isr);
-// Get control transfer endpoint buffer
-uint8_t* usbd_control_get_buffer(void);
+typedef struct {
+ TUD_EPBUF_DEF(buf, CFG_TUD_ENDPOINT0_BUFSIZE);
+} usbd_ctrl_epbuf_t;
+
+extern usbd_ctrl_epbuf_t _usbd_ctrl_epbuf;
//--------------------------------------------------------------------+
// USBD Endpoint API