altos/stm: Add per-LED port/pin mode in LED code
authorKeith Packard <keithp@keithp.com>
Thu, 17 May 2018 05:03:25 +0000 (22:03 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 17 May 2018 05:06:12 +0000 (22:06 -0700)
commit85a8846a423ce2d15815466564fb589bb553c742
tree4adedcdd5ef993be0c3633537fc01fe4f3819224
parent96ee5257068a988db10097af8df72b0008bce978
altos/stm: Add per-LED port/pin mode in LED code

If you've got a complicated LED pin arrangement, you can ask for each
one to be configured separately, instead of using groups in a couple
of GPIO registers. The code isn't as efficient this way, but at least
it's easy to read.

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