projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
48a8ae2
)
altos: Switch LED pin number to 8 bits
author
Keith Packard
<keithp@keithp.com>
Sun, 25 Sep 2022 20:54:24 +0000
(13:54 -0700)
committer
Keith Packard
<keithp@keithp.com>
Wed, 26 Oct 2022 06:29:36 +0000
(23:29 -0700)
This assumes each port has fewer than 256 pins and avoids some
compiler warnings
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 b32034e7d3f2f0903a03751e7c8210ffc17462ef..009e9bc23e434cd8496cd5177eb62257c299c805 100644
(file)
--- a/
src/drivers/ao_led.c
+++ b/
src/drivers/ao_led.c
@@
-20,7
+20,7
@@
static const struct {
void *port;
- uint
16_t
pin;
+ uint
8_t
pin;
} ao_leds[] = {
#ifdef LED_0_PORT
[0] { LED_0_PORT, LED_0_PIN },