From 4118e682688893e2cf192a24885748827ae13e5c Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Sun, 1 Sep 2024 16:28:52 -0700 Subject: [PATCH] removed commented out code --- src/main.c | 55 +----------------------------------------------------- 1 file changed, 1 insertion(+), 54 deletions(-) diff --git a/src/main.c b/src/main.c index 8bafc88..850d7ff 100644 --- a/src/main.c +++ b/src/main.c @@ -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();