X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=boards%2Fstm32VLDiscovery%2Ftemplates%2Fempty%2Fmain.c;fp=boards%2Fstm32VLDiscovery%2Ftemplates%2Fempty%2Fmain.c;h=c21b9a0ffab1db3aef91441d75493861763d002f;hb=bbc9b62788f5e2f94dd550708a6af22f6d49eb98;hp=0000000000000000000000000000000000000000;hpb=17f239924a2d52d099e60ba3a65662f4d2b1fb16;p=bertos.git diff --git a/boards/stm32VLDiscovery/templates/empty/main.c b/boards/stm32VLDiscovery/templates/empty/main.c new file mode 100644 index 00000000..c21b9a0f --- /dev/null +++ b/boards/stm32VLDiscovery/templates/empty/main.c @@ -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 + +#include + +#include + +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; +} +