summaryrefslogtreecommitdiff
path: root/ao_task.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-04-14 11:04:09 -0700
committerKeith Packard <keithp@keithp.com>2009-04-14 11:04:09 -0700
commitfbd8f4aff5058f4d371596b04715b7cb6d38e729 (patch)
tree3dd414019ae882e0a73576c17e351c7075de5861 /ao_task.c
parentfb63262699d3a6fbf347d24efda8b01f75b7d0d3 (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.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/ao_task.c b/ao_task.c
index 24bd319a..2e0a8b33 100644
--- a/ao_task.c
+++ b/ao_task.c
@@ -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;