diff options
| author | Cédric Berger <[email protected]> | 2026-02-22 21:39:14 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-22 21:39:14 +0100 |
| commit | 942479407e3bfb4e0800aeb428dc2a3d03d77ded (patch) | |
| tree | f6f65d88bfe1789f06c1d788994bb73f4871cc5f /src/device/usbd.h | |
| parent | 90d0514630d9b0f6d50881aabd82dcd613141f6b (diff) | |
| parent | dc072da5cc6a6b326a832f104c0a395d119ce35c (diff) | |
Merge branch 'hathach:master' into non-blocking-host-v2
Diffstat (limited to 'src/device/usbd.h')
| -rw-r--r-- | src/device/usbd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h index 4016a45a4..825fdba90 100644 --- a/src/device/usbd.h +++ b/src/device/usbd.h @@ -41,8 +41,13 @@ enum { typedef struct { uint16_t bm_double_buffered; // bitmap of IN endpoints to be double buffered, only effective for bulk endpoints + bool vbus_sensing; // Vbus pin is used for device connection detection, mandatory for tud_umount_cb() } tud_configure_dwc2_t; + #ifndef CFG_TUD_CONFIGURE_DWC2_DEFAULT + #define CFG_TUD_CONFIGURE_DWC2_DEFAULT {.bm_double_buffered = 0, .vbus_sensing = CFG_TUD_VBUS_DETECT_HW} + #endif + typedef union { tud_configure_dwc2_t dwc2; } tud_configure_param_t; |
