altos: micropeak LED is orange now, not blue
authorKeith Packard <keithp@keithp.com>
Sun, 18 Nov 2012 18:35:39 +0000 (10:35 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 18 Nov 2012 18:35:39 +0000 (10:35 -0800)
Change the names around to match

Signed-off-by: Keith Packard <keithp@keithp.com>
src/micropeak/ao_micropeak.c
src/micropeak/ao_pins.h
src/micropeak/ao_report_tiny.c

index bf65697994e71705a9cb3d6d5608ab7e8ea659d7..10e1d0f9f3246d7a5e8aba35a60605d44a8b8ef3 100644 (file)
@@ -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
index 64f4444fd0b008d73d824fd8b28816e560fc424d..257b8694bc3c6301ecea048660dd3c1602e90df0 100644 (file)
 #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
index 5937508be239b20ec32775f6eb7f1366b423540f..8b4960c63cf93a5cb6dba48b280f2ee5b3e32c5b 100644 (file)
@@ -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