summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-04-30 17:37:45 -0700
committerKeith Packard <keithp@keithp.com>2017-04-30 17:37:45 -0700
commit671e00f9fa75d75b5f15d8cc558a46a9651690fa (patch)
treeb7aa4d4c3fa9ddd9d863e5fc766b9fadc83b9b27 /src
parentec963d358895ae46af63d2a6e9a32bdfb4d631c0 (diff)
altos/telegps-v2.0: Adjust LED config
The LED is green, not red. Use it for panic and GPS lock. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/telegps-v2.0/ao_pins.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/telegps-v2.0/ao_pins.h b/src/telegps-v2.0/ao_pins.h
index 85a05f22..beef86c7 100644
--- a/src/telegps-v2.0/ao_pins.h
+++ b/src/telegps-v2.0/ao_pins.h
@@ -21,10 +21,14 @@
#define LED_PORT_ENABLE STM_RCC_AHBENR_IOPBEN
#define LED_PORT (&stm_gpiob)
-#define LED_PIN_RED 5
-#define AO_LED_RED (1 << LED_PIN_RED)
+#define LED_PIN_GREEN 5
+#define AO_LED_GREEN (1 << LED_PIN_GREEN)
+#define AO_LED_PANIC AO_LED_GREEN
+#define AO_LED_GPS_LOCK AO_LED_GREEN
-#define LEDS_AVAILABLE (AO_LED_RED)
+#define LEDS_AVAILABLE (AO_LED_GREEN)
+
+#define AO_STACK_SIZE 512
#define IS_FLASH_LOADER 0
#define HAS_BEEP 0