diff options
author | Keith Packard <keithp@keithp.com> | 2009-04-14 11:04:09 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-04-14 11:04:09 -0700 |
commit | fbd8f4aff5058f4d371596b04715b7cb6d38e729 (patch) | |
tree | 3dd414019ae882e0a73576c17e351c7075de5861 /ao_task.c | |
parent | fb63262699d3a6fbf347d24efda8b01f75b7d0d3 (diff) |
Switch from --model-large to --model-small
This shrinks the application quite a bit, and should make it faster as well.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao_task.c')
-rw-r--r-- | ao_task.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -162,9 +162,9 @@ ao_yield(void) _naked int ao_sleep(__xdata void *wchan) { - ao_interrupt_disable(); + __critical { ao_cur_task->wchan = wchan; - ao_interrupt_enable(); + } ao_yield(); } @@ -181,11 +181,6 @@ ao_wakeup(__xdata void *wchan) void ao_start_scheduler(void) { - ao_timer_init(); - ao_adc_init(); - ao_beep_init(); - ao_led_init(); - ao_usb_init(); ao_cur_task_id = AO_NO_TASK; ao_cur_task = NULL; |