X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Farduino%2Ftemplates%2Fkernel%2Fmain.c;h=663386f45c0723008699f85f6d76a1abdf6c8d69;hb=b46f64914c62fbb0297728280478681659469654;hp=b4ebd8ed9dbe7e7b7a754ee08c5752c2580ba76b;hpb=3d527e7aacadd146a7b3a06eb491194ed39f0c85;p=bertos.git diff --git a/boards/arduino/templates/kernel/main.c b/boards/arduino/templates/kernel/main.c index b4ebd8ed..663386f4 100644 --- a/boards/arduino/templates/kernel/main.c +++ b/boards/arduino/templates/kernel/main.c @@ -39,12 +39,16 @@ * continues to monitor the stack utilization of all the processes. */ +#include "hw/hw_led.h" + #include + #include #include -#include + #include #include + #include #include @@ -59,10 +63,20 @@ static void init(void) kdbg_init(); /* Initialize system timer */ timer_init(); + /* + * XXX: Arduino has a single UART port that was previously + * initialized for debugging purpose. + * In order to activate the serial driver you should disable + * the debugging module. + */ +#if 0 /* Initialize UART0 */ ser_init(&out, SER_UART0); /* Configure UART0 to work at 115.200 bps */ ser_setbaudrate(&out, 115200); +#else + (void)out; +#endif /* Initialize LED driver */ LED_INIT();