Add new board: SAM3X-EK
[bertos.git] / boards / sam3x-ek / templates / empty / main.c
1 // Empty main.c file generated by the wizard
2 #include <cpu/irq.h>
3 #include <cfg/debug.h>
4 #include <drv/timer.h>
5 #include <hw/hw_led.h>
6 #include <drv/lcd_hx8347.h>
7
8 static void init(void)
9 {
10         kdbg_init();
11
12         IRQ_ENABLE;
13
14         timer_init();
15         LED_INIT();
16 }
17
18 int main(void)
19 {
20         init();
21
22         LED_ON(LED_RED);
23
24         for (;;)
25         {
26                 kprintf("Hello world!\n");
27                 timer_delay(500);
28         }
29
30         return 0;
31 }
32