Esempio n. 1
0
void rcc_clk_enable(rcc_clk_id id)
{
    static __io uint32* enable_regs[] = {
        [APB1] = &RCC_BASE->APB1ENR,
        [APB2] = &RCC_BASE->APB2ENR,
        [AHB] = &RCC_BASE->AHBENR,
    };
    rcc_do_clk_enable(enable_regs, id);
}
Esempio n. 2
0
void rcc_clk_enable(rcc_clk_id id) {
    static volatile uint32* enable_regs[] = {
        [RCC_AHB1] = &RCC_BASE->AHB1ENR,
        [RCC_AHB2] = &RCC_BASE->AHB2ENR,
        [RCC_AHB3] = &RCC_BASE->AHB3ENR,
        [RCC_APB1] = &RCC_BASE->APB1ENR,
        [RCC_APB2] = &RCC_BASE->APB2ENR,
    };
    rcc_do_clk_enable(enable_regs, id);
}