/* Get the actual frequency of QSPI bus clock. Only available in Master mode.  */
uint32_t QSPI_GetBusClock(QSPI_T *qspi)
/* Get the actual frequency of QSPI bus clock. Only available in Master mode.  */
uint32_t QSPI_GetBusClock(QSPI_T *qspi)
{
    uint32_t u32Div;
    uint32_t u32ClkSrcFreq;
    u32ClkSrcFreq = QSPI_GetSrcClkSetting(qspi);
    u32Div = (qspi->CLKDIV & QSPI_CLKDIV_DIVIDER_Msk) >> QSPI_CLKDIV_DIVIDER_Pos;
    return (u32ClkSrcFreq / (u32Div + 1U));
}