From 48088d1d6a66c5d5271b52191367f07b09626b29 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 4 Aug 2016 09:54:16 -0700 Subject: altos: Flash all LEDS during power on This tests the LEDS to make sure they all work on the following devices: easymega-v1.0 telebt-v3.0 teledongle-v3.0 telemega-v1.0 telemega-v2.0 telemetrum-v2.0 Signed-off-by: Keith Packard --- src/telemega-v2.0/ao_telemega.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/telemega-v2.0') diff --git a/src/telemega-v2.0/ao_telemega.c b/src/telemega-v2.0/ao_telemega.c index b44bc019..7a1c46ae 100644 --- a/src/telemega-v2.0/ao_telemega.c +++ b/src/telemega-v2.0/ao_telemega.c @@ -39,7 +39,7 @@ int main(void) { ao_clock_init(); - + #if HAS_STACK_GUARD ao_mpu_init(); #endif @@ -47,7 +47,7 @@ main(void) ao_task_init(); ao_serial_init(); ao_led_init(LEDS_AVAILABLE); - ao_led_on(AO_LED_GREEN); + ao_led_on(LEDS_AVAILABLE); ao_timer_init(); ao_i2c_init(); @@ -76,7 +76,7 @@ main(void) ao_eeprom_init(); ao_storage_init(); - + ao_flight_init(); ao_log_init(); ao_report_init(); @@ -98,9 +98,11 @@ main(void) #if HAS_SAMPLE_PROFILE ao_sample_profile_init(); #endif - + ao_pwm_init(); + ao_led_off(LEDS_AVAILABLE); + ao_start_scheduler(); return 0; } -- cgit v1.2.3