]> git.gag.com Git - fw/altos/commitdiff
quantimotor-v1: Switch to common LED code
authorKeith Packard <keithp@keithp.com>
Sun, 4 Aug 2024 20:51:47 +0000 (13:51 -0700)
committerBdale Garbee <bdale@gag.com>
Tue, 6 May 2025 18:37:26 +0000 (12:37 -0600)
Stop using LPC-specific LED code, switch the config around.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/quantimotor-v1/Makefile
src/quantimotor-v1/ao_pins.h

index 3022bd0da14626dd66f828b83638e2f995325cc7..aa6bf9c0c2ef579d0e75fa95b912d74778f4ffd1 100644 (file)
@@ -34,7 +34,7 @@ ALTOS_SRC = \
        ao_adc_lpc.c \
        ao_serial_lpc.c \
        ao_usb_lpc.c \
-       ao_led_lpc.c
+       ao_led.c
 
 PRODUCT=QuantiMotor-v1
 PRODUCT_DEF=-DQUANTIMOTOR_V_1
index e352cf6e7c0dabc73eba21b0293ec873cb596d0c..5b4a6111d31ed5d211a0abb4f4e9c7c53b9442a4 100644 (file)
 
 /* LED */
 
-#define LED_PORT                0
-#define LED_PIN_HEALTH          8
-#define AO_LED_HEALTH           (1 << LED_PIN_HEALTH)
-#define LEDS_AVAILABLE          (AO_LED_HEALTH)
+#define HAS_LED                        1
+#define LED_0_PORT              0
+#define LED_0_PIN              8
+#define AO_LED_HEALTH           (1 << 0)
 #define AO_LED_PANIC           AO_LED_HEALTH
 
 /*