summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2019-03-12 12:58:20 +0100
committerKeith Packard <keithp@keithp.com>2019-03-12 13:01:58 +0100
commitb7de266431ee7bf05ba68ccae3e43a0468045860 (patch)
treeb457be8c1107c01b9331f0a678aabcc02c8f924b /src/drivers
parent3a01a7e36dd475adf96468f42c95aa352b5fdf11 (diff)
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 <keithp@keithp.com>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/ao_led.c2
1 files changed, 1 insertions, 1 deletions
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