X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Flcd_text.c;h=94b46b773e583936d3d3ed6a30271edd13ea5a2b;hb=feebd0747cc5f1c3199f0716cef4ab0ea06f2160;hp=3423eda6c0a7111f677b9085771cbfbe3c3e4265;hpb=92d5e5f668bb596036e7c4fe674b29448f7ac65d;p=bertos.git diff --git a/bertos/drv/lcd_text.c b/bertos/drv/lcd_text.c index 3423eda6..94b46b77 100644 --- a/bertos/drv/lcd_text.c +++ b/bertos/drv/lcd_text.c @@ -32,7 +32,6 @@ * * \brief Generic text LCD driver (impl.). * - * \version $Id$ * \author Bernie Innocenti * \author Stefano Fedrigo */ @@ -55,6 +54,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 +437,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);