From b7de266431ee7bf05ba68ccae3e43a0468045860 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 12 Mar 2019 12:58:20 +0100 Subject: [PATCH] altos/drivers/ao_led.c: Declare LED port as void * to allow any SoC to use this code The generic LED code needs a generic type for the GPIO port. Signed-off-by: Keith Packard --- src/drivers/ao_led.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/ao_led.c b/src/drivers/ao_led.c index 0f7b7c27..899bee74 100644 --- a/src/drivers/ao_led.c +++ b/src/drivers/ao_led.c @@ -19,7 +19,7 @@ #include "ao.h" static const struct { - struct stm_gpio *port; + void *port; uint16_t pin; } ao_leds[] = { #ifdef LED_0_PORT -- 2.30.2