emlib/src/em_cmu.c
void CMU_LCDClkFDIVSet(uint32_t div)
{
#if defined(LCD_PRESENT) && defined(_CMU_LCDCTRL_MASK)
  EFM_ASSERT(div <= cmuClkDiv_128);

  /* Do not allow modification if LCD clock enabled */
  if (CMU->LFACLKEN0 & CMU_LFACLKEN0_LCD) {
    return;
  }

  div        <<= _CMU_LCDCTRL_FDIV_SHIFT;
  div         &= _CMU_LCDCTRL_FDIV_MASK;
  CMU->LCDCTRL = (CMU->LCDCTRL & ~_CMU_LCDCTRL_FDIV_MASK) | div;
#else
  (void)div;  /* Unused parameter */
#endif /* defined(LCD_PRESENT) */
}
/***************************************************************************/
/**
 * @brief
 *   Set the LCD framerate divisor (FDIV) setting.
 *
 * @note
 *   The FDIV field (CMU LCDCTRL register) should only be modified while the
 *   LCD module is clock disabled (CMU LFACLKEN0.LCD bit is 0). This function
 *   will NOT modify FDIV if the LCD module clock is enabled. Please refer to
 *   CMU_ClockEnable() for disabling/enabling LCD clock.
 *
 * @param[in] div
 *   The FDIV setting to use.
 ******************************************************************************/
@brief
Set the LCD framerate divisor (FDIV) setting.

@note
The FDIV field (CMU LCDCTRL register) should only be modified while the
LCD module is clock disabled (CMU LFACLKEN0.LCD bit is 0). This function
will NOT modify FDIV if the LCD module clock is enabled. Please refer to
CMU_ClockEnable() for disabling/enabling LCD clock.

@param[in] div
The FDIV setting to use.
@brief Set the LCD framerate divisor ( FDIV ) setting . @note The FDIV field ( CMU LCDCTRL register ) should only be modified while the LCD module is clock disabled ( CMU LFACLKEN0 . LCD bit is 0 ) . This function will NOT modify FDIV if the LCD module clock is enabled . Please refer to CMU_ClockEnable () for disabling / enabling LCD clock . @param [ in ] div The FDIV setting to use .
void CMU_LCDClkFDIVSet(uint32_t div)
{
#if defined(LCD_PRESENT) && defined(_CMU_LCDCTRL_MASK)
  EFM_ASSERT(div <= cmuClkDiv_128);
  if (CMU->LFACLKEN0 & CMU_LFACLKEN0_LCD) {
    return;
  }
  div        <<= _CMU_LCDCTRL_FDIV_SHIFT;
  div         &= _CMU_LCDCTRL_FDIV_MASK;
  CMU->LCDCTRL = (CMU->LCDCTRL & ~_CMU_LCDCTRL_FDIV_MASK) | div;
#else
  (void)div;  
#endif 
}
void CMU_LCDClkFDIVSet ( uint32_t div ) { #if defined ( LCD_PRESENT ) && defined ( _CMU_LCDCTRL_MASK ) EFM_ASSERT ( div <= cmuClkDiv_128 ) ; if ( CMU -> LFACLKEN0 & CMU_LFACLKEN0_LCD ) { return ; } div <<= _CMU_LCDCTRL_FDIV_SHIFT ; div &= _CMU_LCDCTRL_FDIV_MASK ; CMU -> LCDCTRL = ( CMU -> LCDCTRL & ~ _CMU_LCDCTRL_FDIV_MASK ) | div ; #else ( void ) div ; #endif }
@brief
   Set the LCD framerate divisor (FDIV) setting.
@brief Set the LCD framerate divisor ( FDIV ) setting .
/* Do not allow modification if LCD clock enabled */ /* Unused parameter */ /* defined(LCD_PRESENT) */