/* This function make QSPI module be ready to transfer.  */
static void QSPI_SetSrcClkToPCLK(QSPI_T *qspi)
/* This function make QSPI module be ready to transfer.  */
static void QSPI_SetSrcClkToPCLK(QSPI_T *qspi)
{
    uint32_t u32ClkSelMsk = 0U, u32ClkSelPos = 0U;
    if (qspi == QSPI0)
    {
        u32ClkSelMsk = CLK_CLKSEL4_QSPI0SEL_Msk;
        u32ClkSelPos = CLK_CLKSEL4_QSPI0SEL_Pos;
    }
    else if (qspi == QSPI1)
    {
        u32ClkSelMsk = CLK_CLKSEL4_QSPI1SEL_Msk;
        u32ClkSelPos = CLK_CLKSEL4_QSPI1SEL_Pos;
    }
    CLK->CLKSEL4 = (CLK->CLKSEL4 & (~u32ClkSelMsk)) | (0x2UL << u32ClkSelPos);
}