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/tusb_option.h | |
| parent | 90d0514630d9b0f6d50881aabd82dcd613141f6b (diff) | |
| parent | dc072da5cc6a6b326a832f104c0a395d119ce35c (diff) | |
Merge branch 'hathach:master' into non-blocking-host-v2
Diffstat (limited to 'src/tusb_option.h')
| -rw-r--r-- | src/tusb_option.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/tusb_option.h b/src/tusb_option.h index 4717846c6..2cac501f7 100644 --- a/src/tusb_option.h +++ b/src/tusb_option.h @@ -579,9 +579,18 @@ #define CFG_TUD_TEST_MODE 0 #endif +#ifndef CFG_TUD_VBUS_DETECT_HW_DEFAULT + #define CFG_TUD_VBUS_DETECT_HW_DEFAULT 0 +#endif + +// Enable VBUS Detect hardware, usually via functional GPIO +#ifndef CFG_TUD_VBUS_DETECT_HW + #define CFG_TUD_VBUS_DETECT_HW CFG_TUD_VBUS_DETECT_HW_DEFAULT +#endif + //------------- Device Class Driver -------------// #ifndef CFG_TUD_BTH - #define CFG_TUD_BTH 0 + #define CFG_TUD_BTH 0 #endif #if CFG_TUD_BTH && !defined(CFG_TUD_BTH_ISO_ALT_COUNT) |
