altos/drivers/ao_led.c: Declare LED port as void * to allow any SoC to use this code
authorKeith Packard <keithp@keithp.com>
Tue, 12 Mar 2019 11:58:20 +0000 (12:58 +0100)
committerKeith Packard <keithp@keithp.com>
Tue, 12 Mar 2019 12:01:58 +0000 (13:01 +0100)
The generic LED code needs a generic type for the GPIO port.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_led.c

index 0f7b7c27c7776332ea90f8a6455d4f90d9f058d0..899bee74915e0be87330b4892bb62cd15a5dfc31 100644 (file)
@@ -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