altos: Call ao_task_init before initializing any drivers
authorKeith Packard <keithp@keithp.com>
Sun, 24 Mar 2013 22:14:12 +0000 (15:14 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 24 Mar 2013 22:14:12 +0000 (15:14 -0700)
commit03854360029591dd7f2607db21b9e863880d949b
treead40f58da564978ea4ae3532d0af2de21bf34ca3
parent2a66aab0b0efb63bf3619ec03abb357823e9cdde
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>
21 files changed:
src/avr-demo/ao_demo.c
src/product/ao_telebt.c
src/product/ao_teledongle.c
src/product/ao_telelaunch.c
src/product/ao_telemetrum.c
src/product/ao_telemini.c
src/product/ao_telenano.c
src/product/ao_telepyro.c
src/product/ao_telescience.c
src/product/ao_teleterra.c
src/product/ao_teleterra_0_2.c
src/product/ao_test.c
src/product/ao_tidongle.c
src/spiradio-v0.1/ao_spiradio.c
src/stm-demo/ao_demo.c
src/stm-flash/ao_stm_flash.c
src/teleballoon-v1.1/ao_teleballoon.c
src/telefire-v0.1/ao_telefire.c
src/telelco-v0.1/ao_telelco.c
src/telescience-v0.2/ao_telescience.c
src/teleshield-v0.1/ao_teleshield.c