void lcd_init_device()
{
    iomux_lcd();       /* setup pins for 16bit lcd interface */
    lcdctrl_init();    /* basic lcdc module configuration */

    lcdctrl_bypass(1); /* run in bypass mode - all writes goes directly to lcd controller */
    lcd_display_init();
}
/**
 * @brief Create a new thread for LCD
 * @param None
 * @retval osThreadId the created tread id
 */
osThreadId  lcd_thread_create(void)
{
  lcd_display_init();
  lcd_timer_init();
  lcd_semaphore = osSemaphoreCreate(osSemaphore(lcd_semaphore), 1);
  //create temperature thread
  lcd_thread_id = osThreadCreate(osThread(lcd_thread), NULL);
  return lcd_thread_id;
}
Exemplo n.º 3
0
void lcd_init()
{
	lcd_contrast_init();
	lcd_timer_init();
	lcd_display_init();
}