Graphical support with empty template for STM32VLDiscovery board added to the wizard.
[bertos.git] / boards / stm32VLDiscovery / templates / empty / main.c
diff --git a/boards/stm32VLDiscovery/templates/empty/main.c b/boards/stm32VLDiscovery/templates/empty/main.c
new file mode 100644 (file)
index 0000000..c21b9a0
--- /dev/null
@@ -0,0 +1,40 @@
+/* \brief Empty project.
+ *
+ * This is a minimalist project, it just initializes the hardware of the
+ * supported board and proposes an empty main.
+ */
+
+#include "hw/hw_led.h"
+
+#include <cfg/debug.h>
+
+#include <cpu/irq.h>
+
+#include <drv/timer.h>
+
+static void init(void)
+{
+       /* Enable all the interrupts */
+       IRQ_ENABLE;
+
+       /* Initialize debugging module (allow kprintf(), etc.) */
+       kdbg_init();
+       /* Initialize system timer */
+       timer_init();
+       /* Initialize LED driver */
+       LED_INIT();
+}
+
+
+int main(void)
+{
+       init();
+
+       while (1)
+       {
+               // your code goes here
+       }
+
+       return 0;
+}
+