summaryrefslogtreecommitdiff
path: root/src/stm-flash
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-03-24 15:14:12 -0700
committerKeith Packard <keithp@keithp.com>2013-03-24 15:14:12 -0700
commit03854360029591dd7f2607db21b9e863880d949b (patch)
treead40f58da564978ea4ae3532d0af2de21bf34ca3 /src/stm-flash
parent2a66aab0b0efb63bf3619ec03abb357823e9cdde (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/stm-flash')
-rw-r--r--src/stm-flash/ao_stm_flash.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stm-flash/ao_stm_flash.c b/src/stm-flash/ao_stm_flash.c
index 65bc2daf..df466d85 100644
--- a/src/stm-flash/ao_stm_flash.c
+++ b/src/stm-flash/ao_stm_flash.c
@@ -122,6 +122,9 @@ int
main(void)
{
ao_clock_init();
+
+ ao_task_init();
+
ao_timer_init();
// ao_dma_init();
ao_cmd_init();