Removed the outdated function calls to use new interface

This commit is contained in:
jakeg00dwin 2024-09-14 13:10:13 -07:00
parent c04b35168a
commit 5be5743fe3
1 changed files with 3 additions and 3 deletions

View File

@ -35,15 +35,15 @@ int main(int argc, char **argv)
{ {
Enable_SetPinsLow(); Enable_SetPinsLow();
TriacOut_SetupPins(); EnOut_SetupPins();
ADC_Setup(); ADC_Setup();
while(true){ while(true){
for(int i = 0; i < GatePulsesQty; i++){ for(int i = 0; i < GatePulsesQty; i++){
ZCD_Poll(); ZCD_Poll();
_delay_us(Tau); _delay_us(Tau);
TriacOut_SetAllHigh(); //Only G1 exists in High power mode EnOut_SetAllHigh(); //Only G1 exists in High power mode
TriacOut_PulsePins(GatePulses[i]); EnOut_PulsePins(GatePulses[i]);
} }
//The G1 pin is low at this point. //The G1 pin is low at this point.