The UART is used by the debug module, so it cannot
be used by the serial driver at the same time.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3873
38d2e660-2303-0410-9eaa-
f027e97ec537
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();
}
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();