diff options
| author | Keith Packard <keithp@keithp.com> | 2018-09-11 11:57:50 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2018-10-13 08:23:25 -0700 |
| commit | 2cdb1f30c49ba460b0850d23ba9c85e0336af290 (patch) | |
| tree | 880abd83761ec7ce5511b30ee621057eeb8412d8 /src/telefiretwo-v0.1 | |
| parent | cdaa0d7b272505c49017f409b7c0b8e3240608f0 (diff) | |
altos: Add generic LED driver.
This driver uses the generic GPIO functions and allows per-LED port
and pin configuration. It supports up to 32 LEDs.
Rename SoC-specific LED drivers.
Remove enabled parameter to ao_led_init
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/telefiretwo-v0.1')
| -rw-r--r-- | src/telefiretwo-v0.1/Makefile | 2 | ||||
| -rw-r--r-- | src/telefiretwo-v0.1/ao_telefiretwo.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/telefiretwo-v0.1/Makefile b/src/telefiretwo-v0.1/Makefile index 6454d6fd..72171fac 100644 --- a/src/telefiretwo-v0.1/Makefile +++ b/src/telefiretwo-v0.1/Makefile @@ -33,7 +33,7 @@ ALTOS_SRC = \ ao_data.c \ ao_config.c \ ao_task.c \ - ao_led.c \ + ao_led_stm.c \ ao_stdio.c \ ao_panic.c \ ao_timer.c \ diff --git a/src/telefiretwo-v0.1/ao_telefiretwo.c b/src/telefiretwo-v0.1/ao_telefiretwo.c index bdcf3213..89541a02 100644 --- a/src/telefiretwo-v0.1/ao_telefiretwo.c +++ b/src/telefiretwo-v0.1/ao_telefiretwo.c @@ -26,7 +26,8 @@ main(void) { ao_clock_init(); - ao_led_init(LEDS_AVAILABLE); + ao_led_init(); + ao_led_on(LEDS_AVAILABLE); ao_task_init(); @@ -51,5 +52,7 @@ main(void) // ao_radio_cmac_cmd_init(); + ao_led_off(LEDS_AVAILABLE); + ao_start_scheduler(); } |
