/* Get Clock frequency for IP in common group.  */
static uint32_t get_frequency_for_ip_in_common_group(clock_node_t node)
/* Get Clock frequency for IP in common group.  */
static uint32_t get_frequency_for_ip_in_common_group(clock_node_t node)
{
    uint32_t clk_freq = 0UL;
    uint32_t node_or_instance = GET_CLK_NODE_FROM_NAME(node);
    if (node_or_instance < clock_node_end) {
        uint32_t clk_node = (uint32_t) node_or_instance;
        uint32_t clk_div = 1UL + SYSCTL_CLOCK_DIV_GET(HPM_SYSCTL->CLOCK[clk_node]);
        clock_source_t clk_mux = (clock_source_t) SYSCTL_CLOCK_MUX_GET(HPM_SYSCTL->CLOCK[clk_node]);
        clk_freq = get_frequency_for_source(clk_mux) / clk_div;
    }
    return clk_freq;
}