This commit is contained in:
Ben V. Brown
2021-04-05 00:02:10 +10:00
parent 5fd969ada7
commit 9f0054f7b0
6 changed files with 83 additions and 27 deletions

View File

@@ -15,4 +15,5 @@ enum Orientation { ORIENTATION_LEFT_HAND = 0, ORIENTATION_RIGHT_HAND = 1, ORIENT
#define TICKS_SECOND configTICK_RATE_HZ
#define TICKS_MIN (60 * TICKS_SECOND)
#define TICKS_100MS (TICKS_SECOND / 10)
#define TICKS_10MS (TICKS_100MS / 10)
#endif /* BSP_DEFINES_H_ */

View File

@@ -12,6 +12,7 @@ bool FUSB302_present = false;
void power_check() {
#ifdef POW_PD
if (FUSB302_present) {
PolicyEngine::PPSTimerCallback();
// Cant start QC until either PD works or fails
if (PolicyEngine::setupCompleteOrTimedOut() == false) {
return;

View File

@@ -12,6 +12,7 @@ bool FUSB302_present = false;
void power_check() {
#ifdef POW_PD
if (FUSB302_present) {
PolicyEngine::PPSTimerCallback();
// Cant start QC until either PD works or fails
if (PolicyEngine::setupCompleteOrTimedOut() == false) {
return;