Move LCD string output code to ao_lcd_font.c
[fw/altos] / src / stm-demo / ao_demo.c
1 /*
2  * Copyright © 2011 Keith Packard <keithp@keithp.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; version 2 of the License.
7  *
8  * This program is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11  * General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License along
14  * with this program; if not, write to the Free Software Foundation, Inc.,
15  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
16  */
17
18 #include "ao.h"
19
20 struct ao_task demo_task;
21
22 void
23 ao_demo(void)
24 {
25         for (;;) {
26                 ao_led_on(AO_LED_BLUE);
27                 ao_delay(AO_MS_TO_TICKS(500));
28                 ao_led_off(AO_LED_BLUE);
29                 ao_led_on(AO_LED_GREEN);
30                 ao_delay(AO_MS_TO_TICKS(500));
31                 ao_led_off(AO_LED_GREEN);
32         }
33 }
34
35 void _close() { }
36 void _sbrk() { }
37 void _isatty() { }
38 void _lseek() { }
39 void _exit () { }
40 void _read () { }
41 void _fstat() { }
42 int
43 main(void)
44 {
45         ao_clock_init();
46         
47         ao_serial_init();
48         ao_timer_init();
49         ao_cmd_init();
50 //      ao_led_init(LEDS_AVAILABLE);
51         ao_lcd_stm_init();
52         ao_lcd_font_init();
53 //      ao_add_task(&demo_task, ao_demo, "demo");
54         
55         ao_start_scheduler();
56         return 0;
57 }