/* brief Setup peripheral clock dividers. param div_name : Clock divider name param divided_by_value: Value to be divided param reset : Whether to reset the divider counter. return Nothing  */
void CLOCK_SetClkDiv(clock_div_name_t div_name, uint32_t divided_by_value, bool reset)
/* brief Setup peripheral clock dividers. param div_name : Clock divider name param divided_by_value: Value to be divided param reset : Whether to reset the divider counter. return Nothing  */
void CLOCK_SetClkDiv(clock_div_name_t div_name, uint32_t divided_by_value, bool reset)
{
    volatile uint32_t *pClkDiv;
    pClkDiv = &(SYSCON->SYSTICKCLKDIV0);
    if (reset)
    {
        pClkDiv[(uint8_t)div_name] = 1UL << 29U;
    }
    if (divided_by_value == 0U)
    {
        pClkDiv[(uint8_t)div_name] = 1UL << 30U;
    }
    else
    {
        pClkDiv[(uint8_t)div_name] = (divided_by_value - 1U);
    }
}