/* Configures the LCD GLASS relative GPIO port IOs and LCD peripheral.  */
void LCD_GLASS_Init(void)
/* Configures the LCD GLASS relative GPIO port IOs and LCD peripheral.  */
void LCD_GLASS_Init(void)
{
  LCD_InitTypeDef LCD_InitStructure;
  LCD_GPIOConfig();
  RCC_APB1PeriphClockCmd(RCC_APB1Periph_LCD, ENABLE);
  LCD_InitStructure.LCD_Prescaler = LCD_Prescaler_8;
  LCD_InitStructure.LCD_Divider = LCD_Divider_16;
  LCD_InitStructure.LCD_Duty = LCD_Duty_1_4;
  LCD_InitStructure.LCD_Bias = LCD_Bias_1_3;
  LCD_InitStructure.LCD_VoltageSource = LCD_VoltageSource_Internal;
  LCD_Init(&LCD_InitStructure);
  LCD_PulseOnDurationConfig(LCD_PulseOnDuration_2);
  LCD_ContrastConfig(LCD_Contrast_Level_7);
  LCD_WaitForSynchro();
  LCD_Cmd(ENABLE);
  while(LCD_GetFlagStatus(LCD_FLAG_ENS) == RESET)
  {
  }  
  while(LCD_GetFlagStatus(LCD_FLAG_RDY) == RESET)
  {
  }    
}