Reformat.
[bertos.git] / bertos / drv / lcd_text.c
index 3423eda6c0a7111f677b9085771cbfbe3c3e4265..5cdb00581656169fa33a1535394981a8dbd7b9d9 100644 (file)
@@ -55,6 +55,7 @@
 #define LCD_LAYERS 6
 
 #if CONFIG_KERN
+       #include <kern/sem.h>
        /** Semaphore to arbitrate access to the display. */
        static struct Semaphore lcd_semaphore;
        #define LOCK_LCD        sem_obtain(&lcd_semaphore)
@@ -437,6 +438,10 @@ static void lcd_setDefLayer(Layer *layer)
 #include <cfg/debug.h>
 void lcd_init(void)
 {
+       #if CONFIG_KERN
+       sem_init(&lcd_semaphore);
+       #endif
+
        int i;
 
        LIST_INIT(&lcd_Layers);