Move serial driver to a port different from the debug one.
[bertos.git] / boards / ek-lm3s1968 / templates / empty / main.c
index 659b51b5524aeee572c5f573888ab7331340e9ed..224e9335be65d715077547af782eb7ed4b4b4e35 100644 (file)
  * supported board and proposes an empty main.
  */
 
+#include "hw/hw_led.h"
+
 #include <cfg/debug.h>
+
 #include <cpu/irq.h>
-#include <hw/hw_led.h>
+
 #include <drv/timer.h>
 #include <drv/ser.h>
-#include <kern/proc.h>
 #include <drv/lcd_rit128x96.h>
 #include <drv/kbd.h>
+#include <drv/flash.h>
 
 /* Bitmap to display on the OLED display */
 static Bitmap lcd_bitmap;
 /* Raster associated to the Bitmap image */
 static uint8_t raster[RAST_SIZE(LCD_WIDTH, LCD_HEIGHT)];
-
+/* Internal flash memory descriptor */
+static Flash flash;
+/* UART port descriptor */
 static Serial out;
 
 static void init(void)
@@ -63,8 +68,8 @@ static void init(void)
        kdbg_init();
        /* Initialize system timer */
        timer_init();
-       /* Initialize UART0 */
-       ser_init(&out, SER_UART0);
+       /* Initialize UART1 */
+       ser_init(&out, SER_UART1);
        /* Configure UART0 to work at 115.200 bps */
        ser_setbaudrate(&out, 115200);
        /* Initialize LED driver */
@@ -77,12 +82,8 @@ static void init(void)
        rit128x96_blitBitmap(&lcd_bitmap);
        /* Initialize the keypad driver */
        kbd_init();
-
-       /*
-        * Kernel initialization: processes (allow to create and dispatch
-        * processes using proc_new()).
-        */
-       proc_init();
+       /* Initialize the internal flash memory */
+        flash_init(&flash);
 }
 
 int main(void)