emlib/src/em_cmu.c
static uint32_t qspiRefClkGet(uint32_t qspi)
{
  uint32_t ret;
  CMU_Select_TypeDef clk;

  /* Get selected clock source */
  switch (qspi) {
    case 0:
      clk = CMU_ClockSelectGet(cmuClock_QSPI0REF);
      break;

    default:
      EFM_ASSERT(0);
      return 0;
  }

  switch (clk) {
    case cmuSelect_HFRCO:
      ret = SystemHfrcoFreq;
      break;

    case cmuSelect_HFXO:
      ret = SystemHFXOClockGet();
      break;

    case cmuSelect_AUXHFRCO:
      ret = auxClkGet();
      break;

    case cmuSelect_USHFRCO:
      ret = ushfrcoFreq;
      break;

    default:
      EFM_ASSERT(0);
      ret = 0;
      break;
  }
  return ret;
}
/***************************************************************************/
/**
 * @brief
 *   Get the QSPI n reference clock frequency
 *
 * @return
 *   QSPI n reference clock frequency in Hz
 ******************************************************************************/
@brief
Get the QSPI n reference clock frequency

@return
QSPI n reference clock frequency in Hz
@brief Get the QSPI n reference clock frequency @return QSPI n reference clock frequency in Hz
static uint32_t qspiRefClkGet(uint32_t qspi)
{
  uint32_t ret;
  CMU_Select_TypeDef clk;
  switch (qspi) {
    case 0:
      clk = CMU_ClockSelectGet(cmuClock_QSPI0REF);
      break;
    default:
      EFM_ASSERT(0);
      return 0;
  }
  switch (clk) {
    case cmuSelect_HFRCO:
      ret = SystemHfrcoFreq;
      break;
    case cmuSelect_HFXO:
      ret = SystemHFXOClockGet();
      break;
    case cmuSelect_AUXHFRCO:
      ret = auxClkGet();
      break;
    case cmuSelect_USHFRCO:
      ret = ushfrcoFreq;
      break;
    default:
      EFM_ASSERT(0);
      ret = 0;
      break;
  }
  return ret;
}
static uint32_t qspiRefClkGet ( uint32_t qspi ) { uint32_t ret ; CMU_Select_TypeDef clk ; switch ( qspi ) { case 0 : clk = CMU_ClockSelectGet ( cmuClock_QSPI0REF ) ; break ; default : EFM_ASSERT ( 0 ) ; return 0 ; } switch ( clk ) { case cmuSelect_HFRCO : ret = SystemHfrcoFreq ; break ; case cmuSelect_HFXO : ret = SystemHFXOClockGet ( ) ; break ; case cmuSelect_AUXHFRCO : ret = auxClkGet ( ) ; break ; case cmuSelect_USHFRCO : ret = ushfrcoFreq ; break ; default : EFM_ASSERT ( 0 ) ; ret = 0 ; break ; } return ret ; }
@brief
   Get the QSPI n reference clock frequency
@brief Get the QSPI n reference clock frequency
/* Get selected clock source */