projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a01a7e
)
altos/drivers/ao_led.c: Declare LED port as void * to allow any SoC to use this code
author
Keith Packard
<keithp@keithp.com>
Tue, 12 Mar 2019 11:58:20 +0000
(12:58 +0100)
committer
Keith 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
patch
|
blob
|
history
diff --git
a/src/drivers/ao_led.c
b/src/drivers/ao_led.c
index 0f7b7c27c7776332ea90f8a6455d4f90d9f058d0..899bee74915e0be87330b4892bb62cd15a5dfc31 100644
(file)
--- 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