From 568b4ea03df388d66a5a91f92a8cab627983889f Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 4 Aug 2024 13:51:47 -0700 Subject: [PATCH] quantimotor-v1: Switch to common LED code Stop using LPC-specific LED code, switch the config around. Signed-off-by: Keith Packard --- src/quantimotor-v1/Makefile | 2 +- src/quantimotor-v1/ao_pins.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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 /* -- 2.47.2