1
0
forked from me/IronOS

Works on SRC only units.. mostly

This commit is contained in:
Ben V. Brown
2020-07-22 22:39:35 +10:00
parent 6097216b24
commit 1cebcdc42b
14 changed files with 163 additions and 85 deletions

View File

@@ -0,0 +1,20 @@
/*
* BSP_PD.c
*
* Created on: 21 Jul 2020
* Author: Ralim
*/
#include "BSP_PD.h"
/*
* An array of all of the desired voltages & minimum currents in preferred order
*/
const uint16_t USB_PD_Desired_Levels[] = {
//mV desired input, mA minimum required current
12000, 2500, //12V @ 2.5A
9000, 2000, //9V @ 2A
5000, 1100, //5V @ 1.1A
};
const uint8_t USB_PD_Desired_Levels_Len = 3;