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();
|
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.
|
||||||
|
|
Loading…
Reference in New Issue