diff options
author | Keith Packard <keithp@keithp.com> | 2013-03-24 15:14:12 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-05-07 20:07:52 -0700 |
commit | 4551be8b03a795ece94fd303a1f556c63c0a0096 (patch) | |
tree | bd79284e6c94b5ef1dd61cb9a3b55a743d399124 /src/telelco-v0.1 | |
parent | 6dea353e732b6e19586c844796bc3bb848cc92f8 (diff) |
altos: Call ao_task_init before initializing any drivers
When using task queues, the sleep queues must be initialized before
any invocation of ao_wakeup or the OS will crash. Just make sure
ao_task_init is always invoked early in the task process to get that done.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/telelco-v0.1')
-rw-r--r-- | src/telelco-v0.1/ao_telelco.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/telelco-v0.1/ao_telelco.c b/src/telelco-v0.1/ao_telelco.c index 080a140b..70665ec6 100644 --- a/src/telelco-v0.1/ao_telelco.c +++ b/src/telelco-v0.1/ao_telelco.c @@ -36,6 +36,8 @@ main(void) ao_led_init(LEDS_AVAILABLE); ao_led_on(AO_LED_GREEN); + ao_task_init(); + ao_timer_init(); ao_spi_init(); |