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/telelco-v0.2/ao_telelco.c | |
| 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/telelco-v0.2/ao_telelco.c')
| -rw-r--r-- | src/telelco-v0.2/ao_telelco.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/telelco-v0.2/ao_telelco.c b/src/telelco-v0.2/ao_telelco.c index 7b04d386..4eba3597 100644 --- a/src/telelco-v0.2/ao_telelco.c +++ b/src/telelco-v0.2/ao_telelco.c @@ -35,9 +35,9 @@ int main(void) { ao_clock_init(); - - ao_led_init(LEDS_AVAILABLE); - ao_led_on(AO_LED_GREEN); + + ao_led_init(); + ao_led_on(LEDS_AVAILABLE); ao_task_init(); ao_timer_init(); @@ -55,17 +55,19 @@ main(void) ao_button_init(); ao_eeprom_init(); - + ao_radio_init(); ao_usb_init(); ao_config_init(); - + ao_lco_init(); ao_lco_cmd_init(); // ao_radio_cmac_cmd_init(); - + + ao_led_off(LEDS_AVAILABLE); + ao_start_scheduler(); return 0; } |
