emlib/src/em_cmu.c
static uint32_t CMU_AUXHFRCODevinfoGet(CMU_AUXHFRCOFreq_TypeDef freq)
{
  switch (freq) {
    /* 1, 2 and 4MHz share the same calibration word */
    case cmuAUXHFRCOFreq_1M0Hz:
    case cmuAUXHFRCOFreq_2M0Hz:
    case cmuAUXHFRCOFreq_4M0Hz:
      return DEVINFO->AUXHFRCOCAL0;

    case cmuAUXHFRCOFreq_7M0Hz:
      return DEVINFO->AUXHFRCOCAL3;

    case cmuAUXHFRCOFreq_13M0Hz:
      return DEVINFO->AUXHFRCOCAL6;

    case cmuAUXHFRCOFreq_16M0Hz:
      return DEVINFO->AUXHFRCOCAL7;

    case cmuAUXHFRCOFreq_19M0Hz:
      return DEVINFO->AUXHFRCOCAL8;

    case cmuAUXHFRCOFreq_26M0Hz:
      return DEVINFO->AUXHFRCOCAL10;

    case cmuAUXHFRCOFreq_32M0Hz:
      return DEVINFO->AUXHFRCOCAL11;

    case cmuAUXHFRCOFreq_38M0Hz:
      return DEVINFO->AUXHFRCOCAL12;

#if defined(DEVINFO_AUXHFRCOCAL14)
    case cmuAUXHFRCOFreq_48M0Hz:
      return DEVINFO->AUXHFRCOCAL13;

    case cmuAUXHFRCOFreq_50M0Hz:
      return DEVINFO->AUXHFRCOCAL14;
#endif

    default: /* cmuAUXHFRCOFreq_UserDefined */
      return 0;
  }
}
/**************************************************************************/
/**
 * @brief
 *   Get the AUXHFRCO frequency calibration word in DEVINFO
 *
 * @param[in] freq
 *   Frequency in Hz
 *
 * @return
 *   AUXHFRCO calibration word for a given frequency
 *****************************************************************************/
@brief
Get the AUXHFRCO frequency calibration word in DEVINFO

@param[in] freq
Frequency in Hz

@return
AUXHFRCO calibration word for a given frequency
@brief Get the AUXHFRCO frequency calibration word in DEVINFO @param [ in ] freq Frequency in Hz @return AUXHFRCO calibration word for a given frequency
static uint32_t CMU_AUXHFRCODevinfoGet(CMU_AUXHFRCOFreq_TypeDef freq)
{
  switch (freq) {
    case cmuAUXHFRCOFreq_1M0Hz:
    case cmuAUXHFRCOFreq_2M0Hz:
    case cmuAUXHFRCOFreq_4M0Hz:
      return DEVINFO->AUXHFRCOCAL0;
    case cmuAUXHFRCOFreq_7M0Hz:
      return DEVINFO->AUXHFRCOCAL3;
    case cmuAUXHFRCOFreq_13M0Hz:
      return DEVINFO->AUXHFRCOCAL6;
    case cmuAUXHFRCOFreq_16M0Hz:
      return DEVINFO->AUXHFRCOCAL7;
    case cmuAUXHFRCOFreq_19M0Hz:
      return DEVINFO->AUXHFRCOCAL8;
    case cmuAUXHFRCOFreq_26M0Hz:
      return DEVINFO->AUXHFRCOCAL10;
    case cmuAUXHFRCOFreq_32M0Hz:
      return DEVINFO->AUXHFRCOCAL11;
    case cmuAUXHFRCOFreq_38M0Hz:
      return DEVINFO->AUXHFRCOCAL12;
#if defined(DEVINFO_AUXHFRCOCAL14)
    case cmuAUXHFRCOFreq_48M0Hz:
      return DEVINFO->AUXHFRCOCAL13;
    case cmuAUXHFRCOFreq_50M0Hz:
      return DEVINFO->AUXHFRCOCAL14;
#endif
    default: 
      return 0;
  }
}
static uint32_t CMU_AUXHFRCODevinfoGet ( CMU_AUXHFRCOFreq_TypeDef freq ) { switch ( freq ) { case cmuAUXHFRCOFreq_1M0Hz : case cmuAUXHFRCOFreq_2M0Hz : case cmuAUXHFRCOFreq_4M0Hz : return DEVINFO -> AUXHFRCOCAL0 ; case cmuAUXHFRCOFreq_7M0Hz : return DEVINFO -> AUXHFRCOCAL3 ; case cmuAUXHFRCOFreq_13M0Hz : return DEVINFO -> AUXHFRCOCAL6 ; case cmuAUXHFRCOFreq_16M0Hz : return DEVINFO -> AUXHFRCOCAL7 ; case cmuAUXHFRCOFreq_19M0Hz : return DEVINFO -> AUXHFRCOCAL8 ; case cmuAUXHFRCOFreq_26M0Hz : return DEVINFO -> AUXHFRCOCAL10 ; case cmuAUXHFRCOFreq_32M0Hz : return DEVINFO -> AUXHFRCOCAL11 ; case cmuAUXHFRCOFreq_38M0Hz : return DEVINFO -> AUXHFRCOCAL12 ; #if defined ( DEVINFO_AUXHFRCOCAL14 ) case cmuAUXHFRCOFreq_48M0Hz : return DEVINFO -> AUXHFRCOCAL13 ; case cmuAUXHFRCOFreq_50M0Hz : return DEVINFO -> AUXHFRCOCAL14 ; #endif default : return 0 ; } }
@brief
   Get the AUXHFRCO frequency calibration word in DEVINFO
@brief Get the AUXHFRCO frequency calibration word in DEVINFO
/* 1, 2 and 4MHz share the same calibration word */ /* cmuAUXHFRCOFreq_UserDefined */