|
|
|
@ -25,7 +25,7 @@
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
|
// Global variable declaration
|
|
|
|
|
uint32_t currTick = 0;
|
|
|
|
|
uint32_t currTick = 0; // Todo: Method/Interrupt to get the current-tick
|
|
|
|
|
|
|
|
|
|
bool enable_boost = false;
|
|
|
|
|
bool boost_highVoltage_nextHigh = true;
|
|
|
|
@ -109,7 +109,7 @@ int main()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// When the signal should stop
|
|
|
|
|
boost_highVoltage_nextTick = currTick + 101 // Todo: Add calculation for pin high/low time
|
|
|
|
|
boost_highVoltage_nextTick = currTick + 101 // Todo: Add calculation for PWM high/low time
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|