summaryrefslogtreecommitdiff
path: root/src/tusb_option.h
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2025-05-23 21:50:00 +0700
committerGitHub <[email protected]>2025-05-23 21:50:00 +0700
commit8f077f9295838d6a7e7a5151cb46605df14a630d (patch)
tree1f543f39eb58c47bccdaa399693802845f37012c /src/tusb_option.h
parentd3a9fee5cbd2490fa3d1e3976169e0c40e5a5e0c (diff)
parent1a13bd8eba883aa9d1fda8f95823db8217c912f4 (diff)
Merge pull request #3111 from hathach/ci_vbus
Diffstat (limited to 'src/tusb_option.h')
-rw-r--r--src/tusb_option.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tusb_option.h b/src/tusb_option.h
index 98f1a91b5..6d733a429 100644
--- a/src/tusb_option.h
+++ b/src/tusb_option.h
@@ -267,6 +267,15 @@
#define CFG_TUD_DWC2_DMA_ENABLE CFG_TUD_DWC2_DMA_ENABLE_DEFAULT
#endif
+// Enable CI_HS VBUS Charge. Set this to 1 if the USB_VBUS pin is not connected to 5V VBUS (note: 3.3V is insufficient).
+#ifndef CFG_TUD_CI_HS_VBUS_CHARGE
+ #ifndef CFG_TUD_CI_HS_VBUS_CHARGE_DEFAULT
+ #define CFG_TUD_CI_HS_VBUS_CHARGE_DEFAULT 0
+ #endif
+
+ #define CFG_TUD_CI_HS_VBUS_CHARGE CFG_TUD_CI_HS_VBUS_CHARGE_DEFAULT
+#endif
+
// Enable DWC2 Slave mode for host
#ifndef CFG_TUH_DWC2_SLAVE_ENABLE
#ifndef CFG_TUH_DWC2_SLAVE_ENABLE_DEFAULT