Cleaned up comments in the TriacOut module

This commit is contained in:
jakeg00dwin 2024-07-26 18:18:09 -07:00
parent 29426ad4a5
commit b987d81827
2 changed files with 7 additions and 9 deletions

View File

@ -13,13 +13,9 @@
#include "RegEdit.h" #include "RegEdit.h"
void Delay_MicroSeconds_impl(double us){ void Delay_MicroSeconds_impl(double us);
return;
}
//Delay_MicroSeconds = void (*Delay_MicroSeconds)(double us) = &Delay_MicroSeconds_impl;
//void (*Delay_MicroSeconds)(double us) = Delay_MicroSeconds_impl;
void (*Delay_MicroSecnds)(double us) = Delay_MicroSeconds_impl;
void TriacOut_InitTimerA(void) void TriacOut_InitTimerA(void)
{ {
@ -45,12 +41,13 @@ void TriacOut_SetAllHigh(void)
void TriacOut_PulsePins(uint16_t pulse_time) void TriacOut_PulsePins(uint16_t pulse_time)
{ {
Delay_MicroSeconds(pulse_time); Delay_MicroSeconds(pulse_time);
RegEdit_ClearBit((void *) &PORTA.OUT, G1); RegEdit_ClearBit((void *) &PORTA.OUT, G1);
RegEdit_ClearBit((void *) &PORTB.OUT, G2); RegEdit_ClearBit((void *) &PORTB.OUT, G2);
RegEdit_ClearBit((void *) &PORTB.OUT, G3); RegEdit_ClearBit((void *) &PORTB.OUT, G3);
} }
void Delay_MicroSeconds_impl(double us){
return;
}

View File

@ -44,4 +44,5 @@ void TriacOut_SetupPins(void);
void TriacOut_SetAllHigh(void); void TriacOut_SetAllHigh(void);
#endif //TRIACOUT_H #endif //TRIACOUT_H