From: Keith Packard Date: Sun, 4 Aug 2024 20:51:47 +0000 (-0700) Subject: quantimotor-v1: Switch to common LED code X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=568b4ea03df388d66a5a91f92a8cab627983889f;p=fw%2Faltos quantimotor-v1: Switch to common LED code Stop using LPC-specific LED code, switch the config around. Signed-off-by: Keith Packard --- diff --git a/src/quantimotor-v1/Makefile b/src/quantimotor-v1/Makefile index 3022bd0d..aa6bf9c0 100644 --- a/src/quantimotor-v1/Makefile +++ b/src/quantimotor-v1/Makefile @@ -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 diff --git a/src/quantimotor-v1/ao_pins.h b/src/quantimotor-v1/ao_pins.h index e352cf6e..5b4a6111 100644 --- a/src/quantimotor-v1/ao_pins.h +++ b/src/quantimotor-v1/ao_pins.h @@ -62,10 +62,10 @@ /* 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 /*