altos/telegps-v2.0: Adjust LED config
authorKeith Packard <keithp@keithp.com>
Mon, 1 May 2017 00:37:45 +0000 (17:37 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 1 May 2017 00:37:45 +0000 (17:37 -0700)
The LED is green, not red. Use it for panic and GPS lock.

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

index 85a05f2..beef86c 100644 (file)
 
 #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