Removed the outdated function calls to use new interface
This commit is contained in:
parent
c04b35168a
commit
5be5743fe3
|
@ -35,15 +35,15 @@ int main(int argc, char **argv)
|
|||
{
|
||||
|
||||
Enable_SetPinsLow();
|
||||
TriacOut_SetupPins();
|
||||
EnOut_SetupPins();
|
||||
ADC_Setup();
|
||||
|
||||
while(true){
|
||||
for(int i = 0; i < GatePulsesQty; i++){
|
||||
ZCD_Poll();
|
||||
_delay_us(Tau);
|
||||
TriacOut_SetAllHigh(); //Only G1 exists in High power mode
|
||||
TriacOut_PulsePins(GatePulses[i]);
|
||||
EnOut_SetAllHigh(); //Only G1 exists in High power mode
|
||||
EnOut_PulsePins(GatePulses[i]);
|
||||
}
|
||||
|
||||
//The G1 pin is low at this point.
|
||||
|
|
Loading…
Reference in New Issue