Add new board: SAM3X-EK
[bertos.git] / boards / sam3x-ek / templates / empty / main.c
diff --git a/boards/sam3x-ek/templates/empty/main.c b/boards/sam3x-ek/templates/empty/main.c
new file mode 100644 (file)
index 0000000..d726f35
--- /dev/null
@@ -0,0 +1,32 @@
+// Empty main.c file generated by the wizard
+#include <cpu/irq.h>
+#include <cfg/debug.h>
+#include <drv/timer.h>
+#include <hw/hw_led.h>
+#include <drv/lcd_hx8347.h>
+
+static void init(void)
+{
+       kdbg_init();
+
+       IRQ_ENABLE;
+
+       timer_init();
+       LED_INIT();
+}
+
+int main(void)
+{
+       init();
+
+       LED_ON(LED_RED);
+
+       for (;;)
+       {
+               kprintf("Hello world!\n");
+               timer_delay(500);
+       }
+
+       return 0;
+}
+