X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Flcd_text.c;h=ca27f22d50d2ec81c40d20292bf2363d8997ed65;hb=c2bba5bc02081b369d2117e4f19c2473d31fd21f;hp=d62752078640d9f09ccd21da8b895da60a503be5;hpb=4cc44c9888a0336b9d01121ec0b7ad95f4a76195;p=bertos.git diff --git a/bertos/drv/lcd_text.c b/bertos/drv/lcd_text.c index d6275207..ca27f22d 100644 --- a/bertos/drv/lcd_text.c +++ b/bertos/drv/lcd_text.c @@ -46,7 +46,7 @@ #include // timer_delay() #include // _formatted_write() -#include // LIST_EMPTY() +#include // LIST_EMPTY() #include // strlen() @@ -54,15 +54,16 @@ /** Maximum number of layers. */ #define LCD_LAYERS 6 -#if CONFIG_KERNEL +#if CONFIG_KERN + #include /** Semaphore to arbitrate access to the display. */ static struct Semaphore lcd_semaphore; #define LOCK_LCD sem_obtain(&lcd_semaphore) #define UNLOCK_LCD sem_release(&lcd_semaphore) -#else /* !CONFIG_KERNEL */ +#else /* !CONFIG_KERN */ #define LOCK_LCD do {} while (0) #define UNLOCK_LCD do {} while (0) -#endif /* !CONFIG_KERNEL */ +#endif /* !CONFIG_KERN */ DECLARE_LIST_TYPE(Layer); @@ -91,7 +92,7 @@ void lcd_setAddr(Layer *layer, lcdpos_t addr) layer->addr = addr; } -#if CONFIG_KERNEL +#if CONFIG_KERN void lcd_lock(void) { @@ -104,7 +105,7 @@ void lcd_unlock(void) UNLOCK_LCD; } -#endif /* CONFIG_KERNEL */ +#endif /* CONFIG_KERN */ /**