1
0
forked from me/IronOS

Add enum for USB PD modes (#1943)

* Add enum for USB PD modes

* Update comments for clarification according to code review
This commit is contained in:
Ivan Zorin
2024-07-09 12:20:02 +03:00
committed by GitHub
parent ac6994a676
commit c19e882338
5 changed files with 17 additions and 10 deletions

View File

@@ -104,6 +104,12 @@ typedef enum {
INFINITY = 6, // Show boot logo on repeat (if animated) until a button toggled
} logoMode_t;
typedef enum {
DEFAULT = 1, // PPS + EPR + more power request through increasing resistance by 0.5 Ohm to compensate power loss over cable/PCB/etc.
SAFE = 2, // PPS + EPR, without requesting more power
NO_DYNAMIC = 0, // PPS + EPR disabled, fixed PDO only
} usbpdMode_t;
// Settings wide operations
void saveSettings();
bool loadSettings();