X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Farduino%2Ftemplates%2Fempty%2Fmain.c;h=407efe2049897fe97d67483c992cdef3a0c01e02;hb=cc3e0b349232c473385e2f136a3185e5f2fb6031;hp=1b6b79a690f8d1d2de1a158de703243f4f7252b9;hpb=dd7d54a9e52b47856782cfea08fd714fa6aba4e5;p=bertos.git diff --git a/boards/arduino/templates/empty/main.c b/boards/arduino/templates/empty/main.c index 1b6b79a6..407efe20 100644 --- a/boards/arduino/templates/empty/main.c +++ b/boards/arduino/templates/empty/main.c @@ -59,10 +59,21 @@ 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(); }