# HG changeset patch # User ethanzonca@CL-SEC241-08.cedarville.edu # Date 2012-11-15 15:57:13 # Node ID ccde21039881346e400b65b9c9de59db4a4b0a10 # Parent e54e67fc99cd6ff8fe06e39140f98f5da667b53c Added debug LED functionality to main code diff --git a/master/master/lib/led.c b/master/master/lib/led.c --- a/master/master/lib/led.c +++ b/master/master/lib/led.c @@ -13,16 +13,16 @@ void led_setup() { PORTA = 0x00; } -void led_On(uint8_t led) { +void led_on(uint8_t led) { // Turn the specified LED on PORTA |= led; } -void led_Off(uint8_t led) { +void led_off(uint8_t led) { // Turn the specified LED off PORTA &= ~(led); } -void led_Toggle(uint8_t led) { +void led_toggle(uint8_t led) { // Toggle the specified LED } \ No newline at end of file diff --git a/master/master/lib/led.h b/master/master/lib/led.h --- a/master/master/lib/led.h +++ b/master/master/lib/led.h @@ -15,9 +15,9 @@ #define OK 2 void led_setup(); -void led_On(uint8_t led); -void led_Off(uint8_t led); -void led_Toggle(uint8_t led); +void led_on(uint8_t led); +void led_off(uint8_t led); +void led_toggle(uint8_t led); #endif /* LED_H_ */ diff --git a/master/master/master.c b/master/master/master.c --- a/master/master/master.c +++ b/master/master/master.c @@ -33,7 +33,7 @@ void micro_setup() { int main(void) { // Initialize - //micro_setup(); + micro_setup(); led_setup(); //serial_setup(); // Config serial ports @@ -43,20 +43,20 @@ int main(void) afsk_setup(); while(afsk_busy()); + led_on(4); + while(1) { + led_on(2); logger_log("123,43,1,2,4,3\n"); + led_off(2); - //afsk_test(); - // Wait for transmission to complete before starting another. // Hopefully this will never delay because it should issue on a timed schedule. Software timers! while(afsk_busy()); aprs_send(); - //serial_SendCommand('0','A',0,0); - } } \ No newline at end of file