Graphical support with empty template for STM32VLDiscovery board added to the wizard.
[bertos.git] / boards / stm32VLDiscovery / templates / empty / main.c
1 /* \brief Empty project.
2  *
3  * This is a minimalist project, it just initializes the hardware of the
4  * supported board and proposes an empty main.
5  */
6
7 #include "hw/hw_led.h"
8
9 #include <cfg/debug.h>
10
11 #include <cpu/irq.h>
12
13 #include <drv/timer.h>
14
15 static void init(void)
16 {
17         /* Enable all the interrupts */
18         IRQ_ENABLE;
19
20         /* Initialize debugging module (allow kprintf(), etc.) */
21         kdbg_init();
22         /* Initialize system timer */
23         timer_init();
24         /* Initialize LED driver */
25         LED_INIT();
26 }
27
28
29 int main(void)
30 {
31         init();
32
33         while (1)
34         {
35                 // your code goes here
36         }
37
38         return 0;
39 }
40