diff options
| author | Keith Packard <keithp@keithp.com> | 2011-05-19 23:43:17 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2011-05-19 23:43:17 -0700 |
| commit | 8fcd9ccf458abf4f85729a48ae789f38cdc1b9ca (patch) | |
| tree | bdc0f3f5246b292f61b21ed0f7125a0e172e2d08 /src-avr/ao_telescience.c | |
| parent | 08c00b439dd2ebe0924e7d5fee519ec8d869151e (diff) | |
src-avr: Add telescience build target
No serial output, just USB
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src-avr/ao_telescience.c')
| -rw-r--r-- | src-avr/ao_telescience.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src-avr/ao_telescience.c b/src-avr/ao_telescience.c new file mode 100644 index 00000000..4bbe14cc --- /dev/null +++ b/src-avr/ao_telescience.c @@ -0,0 +1,38 @@ +/* + * Copyright © 2011 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" + +int +main(void) +{ + ao_clock_init(); + + PORTE |= (1 << 6); + DDRE |= (1 << 6); + + ao_stdio_init(); + ao_timer_init(); + ao_cmd_init(); +// ao_spi_init(); +// ao_storage_init(); + ao_usb_init(); + + /* Turn on the LED until the system is stable */ + ao_start_scheduler(); + return 0; +} |
