altos/telegps-v3.0: Get LED blinking when GPS locks
authorKeith Packard <keithp@keithp.com>
Mon, 10 Apr 2023 02:41:02 +0000 (19:41 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 10 Apr 2023 02:43:01 +0000 (19:43 -0700)
Initialize the LED subsystem and assign the green LED to report GPS
lock.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/telegps-v3.0/ao_pins.h
src/telegps-v3.0/ao_telegps.c

index ecf0124d6b6c688ff2bdf76536a06dfc4cdab7b8..e8103813803c7181e36ab74c1381f16a6a61aba8 100644 (file)
@@ -68,6 +68,7 @@
 #define LED_0_PIN              25
 #define AO_LED_GREEN           (1 << 0)
 #define AO_LED_PANIC           AO_LED_GREEN
+#define AO_LED_GPS_LOCK                AO_LED_GREEN
 
 /* Radio */
 #define HAS_SPI_0              1
index 3999cfa3a0b8b231a1d0c7de3edcabdaab6c4a8c..92808f169eecb38b43dd82f2cd6f3d95fc26fe0c 100644 (file)
@@ -25,6 +25,8 @@ main(void)
 {
        ao_clock_init();
 
+       ao_led_init();
+
        ao_task_init();
        ao_timer_init();