/* Segment LCD Initialization routine for EFM32 STK display.  */
void SegmentLCD_Init(bool useBoost)
/* Segment LCD Initialization routine for EFM32 STK display.  */
void SegmentLCD_Init(bool useBoost)
{
  CMU_ClockEnable(cmuClock_CORELE, true);
  CMU_ClockSelectSet(cmuClock_LFA, cmuSelect_LFRCO);
  CMU_ClockDivSet(cmuClock_LCDpre, LCD_CMU_CLK_PRE);
  CMU_LCDClkFDIVSet(LCD_CMU_CLK_DIV);
  CMU_ClockEnable(cmuClock_LCD, true);
  LCD_DISPLAY_ENABLE();
  LCD_IntDisable(0xFFFFFFFF);
  LCD_Init(&lcdInit);
  LCD_SEGMENTS_ENABLE();
  if (useBoost)
  {
    LCD_VBoostSet(LCD_BOOST_LEVEL);
    LCD_VLCDSelect(lcdVLCDSelVExtBoost);
    CMU->LCDCTRL |= CMU_LCDCTRL_VBOOSTEN;
  }
  SegmentLCD_AllOff();
  LCD_SyncBusyDelay(0xFFFFFFFF);
}