From 4f1cdc5c10295ace4940a9b1f9068fd885dc789b Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 9 Apr 2023 19:41:02 -0700 Subject: [PATCH] altos/telegps-v3.0: Get LED blinking when GPS locks Initialize the LED subsystem and assign the green LED to report GPS lock. Signed-off-by: Keith Packard --- src/telegps-v3.0/ao_pins.h | 1 + src/telegps-v3.0/ao_telegps.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/telegps-v3.0/ao_pins.h b/src/telegps-v3.0/ao_pins.h index ecf0124d..e8103813 100644 --- a/src/telegps-v3.0/ao_pins.h +++ b/src/telegps-v3.0/ao_pins.h @@ -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 diff --git a/src/telegps-v3.0/ao_telegps.c b/src/telegps-v3.0/ao_telegps.c index 3999cfa3..92808f16 100644 --- a/src/telegps-v3.0/ao_telegps.c +++ b/src/telegps-v3.0/ao_telegps.c @@ -25,6 +25,8 @@ main(void) { ao_clock_init(); + ao_led_init(); + ao_task_init(); ao_timer_init(); -- 2.30.2