removed commented out code

This commit is contained in:
jakeg00dwin 2024-09-01 16:28:52 -07:00
parent 069ab127bf
commit 4118e68268
1 changed files with 1 additions and 54 deletions

View File

@ -30,62 +30,9 @@
// Set the function pointer for the delay func
void (*Delay_MicroSeconds)(double us) = _delay_us;
void Activate_Relay(void) { PORTA.OUT |= RELAYPIN; }
void Deactivate_Relay(void) { PORTA.OUT &= ~RELAYPIN; }
void WaitForRelayConnect(void) {
while (!(PORTA.IN & RELAYREADINGPIN)) {
;
}
}
void WaitForRelayDisconnect(void) {
while (PORTA.IN & RELAYREADINGPIN) {
;
}
}
/*
int main(int argc, char **argv) {
// We use pin 10 which is the UDPI/RESET pin.
// This means we have to change it's mode.
PORTA.DIR |= RELAYPIN;
PORTA.DIR &= ~RELAYREADINGPIN;
uint16_t make_time = 0;
uint16_t break_time = 0;
uint8_t temp = 0;
while (true) {
Activate_Relay();
Timer_Start();
WaitForRelayConnect();
Timer_Disable();
make_time = Timer_GetOverflowCount();
// Output the Make time via LEDS
temp = (uint8_t)(make_time & 0xFF);
Deactivate_Relay();
Timer_Start();
WaitForRelayDisconnect();
Timer_Disable();
break_time = Timer_GetOverflowCount();
// Output the Break time via LEDS
temp = (uint8_t)(break_time & 0xFF);
}
}
*/
int main(int argc, char **argv) {
// Setup for Infinite Loop
SuperLoop_SetIterations(0);
SuperLoop_Run();