X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=ao_task.c;h=a56fe29f90df322f976d8668d9bf2bacc6a3c796;hp=a0c39ec9b70bbd970c2dacf91d27cf9edd995a39;hb=f3f25a1cec7d2a034aa544569cfd23bea1a996c5;hpb=3d3f849c9af9028f667cef4afedc0798d39a9efc diff --git a/ao_task.c b/ao_task.c index a0c39ec9..a56fe29f 100644 --- a/ao_task.c +++ b/ao_task.c @@ -3,8 +3,7 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * the Free Software Foundation; version 2 of the License. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -180,6 +179,11 @@ ao_wakeup(__xdata void *wchan) void ao_start_scheduler(void) { + ao_timer_init(); + ao_adc_init(); + ao_beep_init(); + ao_led_init(); + ao_cur_task_id = AO_NO_TASK; ao_cur_task = NULL; ao_yield();