diff options
| author | hathach <[email protected]> | 2026-03-11 15:14:09 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-03-11 15:14:09 +0700 |
| commit | 2e29388051b2d92d2d254e3ce5967bfec2b9720f (patch) | |
| tree | c0df9625e43ec91db095d92ada9c3dfd00199164 /src/device/usbd_pvt.h | |
| parent | 14b594d0f748863d7d47e6a1423c5b96eb476779 (diff) | |
refactor(usbd): replace `_usbd_ctrl_epbuf` with `usbd_get_ctrl_buf()` for cleaner abstraction and consistency across modules
Diffstat (limited to 'src/device/usbd_pvt.h')
| -rw-r--r-- | src/device/usbd_pvt.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/device/usbd_pvt.h b/src/device/usbd_pvt.h index bc9a737b2..5f11ea481 100644 --- a/src/device/usbd_pvt.h +++ b/src/device/usbd_pvt.h @@ -72,11 +72,7 @@ void usbd_int_set(bool enabled); void usbd_spin_lock(bool in_isr); void usbd_spin_unlock(bool in_isr); -typedef struct { - TUD_EPBUF_DEF(buf, CFG_TUD_ENDPOINT0_BUFSIZE); -} usbd_ctrl_epbuf_t; - -extern usbd_ctrl_epbuf_t _usbd_ctrl_epbuf; +uint8_t* usbd_get_ctrl_buf(void); //--------------------------------------------------------------------+ // USBD Endpoint API |
