Files
IronOS/source/Core/BSP/Sequre/Power.cpp
Ben V. Brown 2a4e1cd8ab Refactor: Rename Sequre bsp (#1927)
* Rename Sequre BSP Folder

* Update Makefile
2024-06-08 17:53:19 +10:00

25 lines
470 B
C++

#include "BSP.h"
#include "BSP_Power.h"
#include "Pins.h"
#include "QC3.h"
#include "Settings.h"
#include "USBPD.h"
#include "configuration.h"
void power_check() {
#ifdef POW_PD
// Cant start QC until either PD works or fails
if (!USBPowerDelivery::negotiationComplete()) {
return;
}
if (USBPowerDelivery::negotiationHasWorked()) {
return; // We are using PD
}
#endif
#ifdef POW_QC
QC_resync();
#endif
}
bool getIsPoweredByDCIN() { return false; }