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>
Wed, 8 May 2013 03:07:52 +0000 (20:07 -0700)
commit4551be8b03a795ece94fd303a1f556c63c0a0096
treebd79284e6c94b5ef1dd61cb9a3b55a743d399124
parent6dea353e732b6e19586c844796bc3bb848cc92f8
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_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 [new file with mode: 0644]
src/teleballoon-v1.1/ao_teleballoon.c
src/telebt-v1.0/ao_telebt.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