From: batt Date: Mon, 21 Dec 2009 10:58:24 +0000 (+0000) Subject: Init lcd_semaphore when kernel is active. X-Git-Tag: 2.4.0~74 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=2d029a31f46f72f3d321f5ef855b1cd8c7b5de54;p=bertos.git Init lcd_semaphore when kernel is active. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3123 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/drv/lcd_text.c b/bertos/drv/lcd_text.c index ca27f22d..6994537c 100644 --- a/bertos/drv/lcd_text.c +++ b/bertos/drv/lcd_text.c @@ -438,6 +438,9 @@ 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);