diff options
| author | Keith Packard <keithp@keithp.com> | 2012-11-18 10:35:39 -0800 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2012-11-18 10:35:39 -0800 | 
| commit | 8ff0db3979405357003b52022e564a3da75ec3fb (patch) | |
| tree | 2940d7ea17fc9d35db123e6b3bf8a6b5ff83fba0 /src | |
| parent | ba3532a8ca7083b09fde5827faeb95f0c2f3b07c (diff) | |
altos: micropeak LED is orange now, not blue
Change the names around to match
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/micropeak/ao_micropeak.c | 8 | ||||
| -rw-r--r-- | src/micropeak/ao_pins.h | 7 | ||||
| -rw-r--r-- | src/micropeak/ao_report_tiny.c | 2 | 
3 files changed, 9 insertions, 8 deletions
| diff --git a/src/micropeak/ao_micropeak.c b/src/micropeak/ao_micropeak.c index bf656979..10e1d0f9 100644 --- a/src/micropeak/ao_micropeak.c +++ b/src/micropeak/ao_micropeak.c @@ -133,11 +133,11 @@ main(void)  	for (;;) {  		time += SAMPLE_SLEEP;  		if (sample_count == 0) -			ao_led_on(AO_LED_BLUE); +			ao_led_on(AO_LED_REPORT);  		ao_delay_until(time);  		ao_pa_get();  		if (sample_count == 0) -			ao_led_off(AO_LED_BLUE); +			ao_led_off(AO_LED_REPORT);  		pa_avg = pa_avg - (pa_avg >> FILTER_SHIFT) + pa;  		pa_diff = pa_ground - pa_avg; @@ -172,10 +172,10 @@ main(void)  		time += SAMPLE_SLEEP;  		ao_delay_until(time);  		if ((sample_count & 3) == 0) -			ao_led_on(AO_LED_BLUE); +			ao_led_on(AO_LED_REPORT);  		ao_pa_get();  		if ((sample_count & 3) == 0) -			ao_led_off(AO_LED_BLUE); +			ao_led_off(AO_LED_REPORT);  #if HAS_EEPROM  		ao_log_micro_data(AO_LOG_MICRO_DATA | pa);  #endif diff --git a/src/micropeak/ao_pins.h b/src/micropeak/ao_pins.h index 64f4444f..257b8694 100644 --- a/src/micropeak/ao_pins.h +++ b/src/micropeak/ao_pins.h @@ -19,10 +19,11 @@  #define _AO_PINS_H_  #include <avr/pgmspace.h> -#define AO_LED_BLUE		(1<<4) +#define AO_LED_ORANGE		(1<<4)  #define AO_LED_SERIAL		4 -#define AO_LED_PANIC		AO_LED_BLUE -#define LEDS_AVAILABLE		(AO_LED_BLUE) +#define AO_LED_PANIC		AO_LED_ORANGE +#define AO_LED_REPORT		AO_LED_ORANGE +#define LEDS_AVAILABLE		(AO_LED_ORANGE)  #define USE_SERIAL_1_STDIN	0  #define HAS_USB			0  #define PACKET_HAS_SLAVE	0 diff --git a/src/micropeak/ao_report_tiny.c b/src/micropeak/ao_report_tiny.c index 5937508b..8b4960c6 100644 --- a/src/micropeak/ao_report_tiny.c +++ b/src/micropeak/ao_report_tiny.c @@ -17,7 +17,7 @@  #include <ao.h> -#define mid(time)	ao_led_for(AO_LED_BLUE, time) +#define mid(time)	ao_led_for(AO_LED_REPORT, time)  #define pause(time)	ao_delay(time)  static void | 
