Skip to content

Commit a6aa78c

Browse files
author
ReclaimerLabs
committed
perfer higher voltage
1 parent 3c53ce0 commit a6aa78c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

firmware/USB-C Explorer/USB-C Explorer/src/FUSB302/usb_pd_driver.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
//#define CONFIG_USB_PD_GIVE_BACK
2424
//#define CONFIG_USB_PD_SIMPLE_DFP
2525
//#define CONFIG_USB_PD_TCPM_TCPCI
26+
#define PD_PREFER_HIGH_VOLTAGE
2627

2728
/* Default pull-up value on the USB-C ports when they are used as source. */
2829
#define CONFIG_USB_PD_PULLUP TYPEC_RP_USB
@@ -34,6 +35,10 @@
3435
#undef CONFIG_USB_PD_INITIAL_DRP_STATE
3536
#define CONFIG_USB_PD_INITIAL_DRP_STATE PD_DRP_FREEZE
3637

38+
/* Prefer higher voltage, and more importantly, lower current */
39+
#define PD_PREFER_HIGH_VOLTAGE
40+
//#define PD_PREFER_LOW_VOLTAGE
41+
3742
/* board specific type-C power constants */
3843
/*
3944
* delay to turn on the power supply max is ~16ms.

0 commit comments

Comments
 (0)