X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fstm32-p103%2Ftemplates%2Fempty%2Fmain.c;h=251b987afdf62fb9c87d5017211aeb329ce92c70;hb=9f892b42079e6f254881e57f59b12500042bb3ee;hp=33777883a8dd2200d9c64f503957c69c1c0a0d7c;hpb=cd19c6e09a32747c2da6e62204e4b74c7502d200;p=bertos.git diff --git a/boards/stm32-p103/templates/empty/main.c b/boards/stm32-p103/templates/empty/main.c index 33777883..251b987a 100644 --- a/boards/stm32-p103/templates/empty/main.c +++ b/boards/stm32-p103/templates/empty/main.c @@ -38,25 +38,32 @@ * supported board and proposes an empty main. */ +#include "hw/hw_led.h" + #include + #include -#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(); - proc_init(); + /* Initialize LED driver */ LED_INIT(); } int main(void) { init(); + + /* Put your code here... */ while (1) { }