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_main.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_main.c')
-rw-r--r-- | ao_main.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ao_main.c b/ao_main.c new file mode 100644 index 00000000..2cf6c80d --- /dev/null +++ b/ao_main.c @@ -0,0 +1,34 @@ +/* + * Copyright © 2009 Keith Packard <keithp@keithp.com> + * + * 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; 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 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + */ + +#include "ao.h" + +void +main(void) +{ + CLKCON = 0; + while (!(SLEEP & SLEEP_XOSC_STB)) + ; + + ao_timer_init(); + ao_adc_init(); + ao_beep_init(); + ao_led_init(); + ao_usb_init(); + ao_cmd_init(); + ao_start_scheduler(); +} |