diff options
| author | Keith Packard <keithp@keithp.com> | 2016-08-04 09:54:16 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2016-08-04 09:54:16 -0700 | 
| commit | 48088d1d6a66c5d5271b52191367f07b09626b29 (patch) | |
| tree | c53106d01aec985bbdf7bd7ad8fb382d5fe6183d /src | |
| parent | 71e3a59e42c284fde8ac2767abd029230ed86e07 (diff) | |
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 <keithp@keithp.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/easymega-v1.0/ao_easymega.c | 9 | ||||
| -rw-r--r-- | src/telebt-v3.0/ao_telebt.c | 4 | ||||
| -rw-r--r-- | src/teledongle-v3.0/ao_teledongle.c | 4 | ||||
| -rw-r--r-- | src/telemega-v1.0/ao_telemega.c | 9 | ||||
| -rw-r--r-- | src/telemega-v2.0/ao_telemega.c | 10 | ||||
| -rw-r--r-- | src/telemetrum-v2.0/ao_telemetrum.c | 9 | 
6 files changed, 25 insertions, 20 deletions
diff --git a/src/easymega-v1.0/ao_easymega.c b/src/easymega-v1.0/ao_easymega.c index aa360a3c..9848c367 100644 --- a/src/easymega-v1.0/ao_easymega.c +++ b/src/easymega-v1.0/ao_easymega.c @@ -37,14 +37,14 @@ int  main(void)  {  	ao_clock_init(); -	 +  #if HAS_STACK_GUARD  	ao_mpu_init();  #endif  	ao_task_init();  	ao_led_init(LEDS_AVAILABLE); -	ao_led_on(AO_LED_GREEN); +	ao_led_on(LEDS_AVAILABLE);  	ao_timer_init();  	ao_i2c_init(); @@ -73,7 +73,7 @@ main(void)  	ao_eeprom_init();  	ao_storage_init(); -	 +  	ao_flight_init();  	ao_log_init();  	ao_report_init(); @@ -90,7 +90,8 @@ main(void)  #if HAS_SAMPLE_PROFILE  	ao_sample_profile_init();  #endif -	 + +	ao_led_off(LEDS_AVAILABLE);  	ao_start_scheduler();  	return 0;  } diff --git a/src/telebt-v3.0/ao_telebt.c b/src/telebt-v3.0/ao_telebt.c index 833bcd5b..9117863b 100644 --- a/src/telebt-v3.0/ao_telebt.c +++ b/src/telebt-v3.0/ao_telebt.c @@ -33,7 +33,7 @@ main(void)  	ao_task_init();  	ao_led_init(LEDS_AVAILABLE); -	ao_led_on(AO_LED_RED); +	ao_led_on(LEDS_AVAILABLE);  	ao_timer_init();  	ao_spi_init(); @@ -53,7 +53,7 @@ main(void)  	ao_config_init(); -	ao_led_off(AO_LED_RED); +	ao_led_off(LEDS_AVAILABLE);  	ao_start_scheduler();  	return 0; diff --git a/src/teledongle-v3.0/ao_teledongle.c b/src/teledongle-v3.0/ao_teledongle.c index dde3123f..32899af2 100644 --- a/src/teledongle-v3.0/ao_teledongle.c +++ b/src/teledongle-v3.0/ao_teledongle.c @@ -32,7 +32,7 @@ main(void)  	ao_task_init();  	ao_led_init(LEDS_AVAILABLE); -	ao_led_on(AO_LED_RED); +	ao_led_on(LEDS_AVAILABLE);  	ao_timer_init();  	ao_spi_init(); @@ -48,7 +48,7 @@ main(void)  	ao_config_init(); -	ao_led_off(AO_LED_RED); +	ao_led_off(LEDS_AVAILABLE);  	ao_start_scheduler();  	return 0;  } diff --git a/src/telemega-v1.0/ao_telemega.c b/src/telemega-v1.0/ao_telemega.c index 3cfc9b44..2deb852e 100644 --- a/src/telemega-v1.0/ao_telemega.c +++ b/src/telemega-v1.0/ao_telemega.c @@ -38,7 +38,7 @@ int  main(void)  {  	ao_clock_init(); -	 +  #if HAS_STACK_GUARD  	ao_mpu_init();  #endif @@ -46,7 +46,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(); @@ -75,7 +75,7 @@ main(void)  	ao_eeprom_init();  	ao_storage_init(); -	 +  	ao_flight_init();  	ao_log_init();  	ao_report_init(); @@ -97,7 +97,8 @@ main(void)  #if HAS_SAMPLE_PROFILE  	ao_sample_profile_init();  #endif -	 + +	ao_led_off(LEDS_AVAILABLE);  	ao_start_scheduler();  	return 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;  } diff --git a/src/telemetrum-v2.0/ao_telemetrum.c b/src/telemetrum-v2.0/ao_telemetrum.c index 80cd484e..5cf42a8d 100644 --- a/src/telemetrum-v2.0/ao_telemetrum.c +++ b/src/telemetrum-v2.0/ao_telemetrum.c @@ -36,7 +36,7 @@ int  main(void)  {  	ao_clock_init(); -	 +  #if HAS_STACK_GUARD  	ao_mpu_init();  #endif @@ -44,7 +44,7 @@ main(void)  	ao_task_init();  	ao_serial_init();  	ao_led_init(LEDS_AVAILABLE); -	ao_led_on(AO_LED_RED); +	ao_led_on(LEDS_AVAILABLE);  	ao_timer_init();  	ao_spi_init(); @@ -67,7 +67,7 @@ main(void)  	ao_eeprom_init();  	ao_storage_init(); -	 +  	ao_flight_init();  	ao_log_init();  	ao_report_init(); @@ -88,7 +88,8 @@ main(void)  #if HAS_SAMPLE_PROFILE  	ao_sample_profile_init();  #endif -	 +	ao_led_off(LEDS_AVAILABLE); +  	ao_start_scheduler();  	return 0;  }  | 
