*
* \brief Generic text LCD driver (impl.).
*
- * \version $Id$
* \author Bernie Innocenti <bernie@codewiz.org>
* \author Stefano Fedrigo <aleph@develer.com>
*/
#define LCD_LAYERS 6
#if CONFIG_KERN
+ #include <kern/sem.h>
/** Semaphore to arbitrate access to the display. */
static struct Semaphore lcd_semaphore;
#define LOCK_LCD sem_obtain(&lcd_semaphore)
#include <cfg/debug.h>
void lcd_init(void)
{
+ #if CONFIG_KERN
+ sem_init(&lcd_semaphore);
+ #endif
+
int i;
LIST_INIT(&lcd_Layers);