Move serial driver to a port different from the debug one.
[bertos.git] / boards / lpc-p2378 / templates / empty / main.c
index 1036c5cb6b95c100b1fd37e4c488bfd9eb90c589..9ed920e7bf10533f78330b11d9a7dc1069281abb 100644 (file)
  * supported board and proposes an empty main.
  */
 
+#include "hw/hw_led.h"
+
 #include <cfg/debug.h>
+
 #include <cpu/irq.h>
 #include <cpu/power.h>
-#include <hw/hw_led.h>
+
+
 #include <drv/timer.h>
 #include <drv/ser.h>
 
@@ -56,9 +60,9 @@ static void init(void)
        kdbg_init();
        /* Initialize system timer */
        timer_init();
-       /* Initialize UART0 */
-       ser_init(&out, SER_UART0);
-       /* Configure UART0 to work at 115.200 bps */
+       /* Initialize UART1 */
+       ser_init(&out, SER_UART1);
+       /* Configure UART1 to work at 115.200 bps */
        ser_setbaudrate(&out, 115200);
        /* Initialize LED driver */
        LED_INIT();