X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Flcd_text.c;h=5cdb00581656169fa33a1535394981a8dbd7b9d9;hb=3b1451f6e3161b0f1b16e9be49dd46649b03a9d9;hp=3423eda6c0a7111f677b9085771cbfbe3c3e4265;hpb=92d5e5f668bb596036e7c4fe674b29448f7ac65d;p=bertos.git diff --git a/bertos/drv/lcd_text.c b/bertos/drv/lcd_text.c index 3423eda6..5cdb0058 100644 --- a/bertos/drv/lcd_text.c +++ b/bertos/drv/lcd_text.c @@ -55,6 +55,7 @@ #define LCD_LAYERS 6 #if CONFIG_KERN + #include /** 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 void lcd_init(void) { + #if CONFIG_KERN + sem_init(&lcd_semaphore); + #endif + int i; LIST_INIT(&lcd_Layers);