Init lcd_semaphore when kernel is active.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 21 Dec 2009 10:58:24 +0000 (10:58 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 21 Dec 2009 10:58:24 +0000 (10:58 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3123 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/drv/lcd_text.c

index ca27f22d50d2ec81c40d20292bf2363d8997ed65..6994537c8c786146aa3a3ace19eae9070a016c55 100644 (file)
@@ -438,6 +438,9 @@ 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);