Home
last modified time | relevance | path

Searched refs:stm32fd_cfg (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/drivers/can/
Dcan_stm32_fdcan.c407 const struct can_stm32fd_config *stm32fd_cfg = mcan_cfg->custom; in can_stm32fd_get_core_clock() local
415 if (IS_ENABLED(STM32_CANFD_DOMAIN_CLOCK_SUPPORT) && (stm32fd_cfg->pclk_len > 1)) { in can_stm32fd_get_core_clock()
417 (clock_control_subsys_t) &stm32fd_cfg->pclken[1], in can_stm32fd_get_core_clock()
424 (clock_control_subsys_t) &stm32fd_cfg->pclken[0], in can_stm32fd_get_core_clock()
444 const struct can_stm32fd_config *stm32fd_cfg = mcan_cfg->custom; in can_stm32fd_clock_enable() local
451 if (IS_ENABLED(STM32_CANFD_DOMAIN_CLOCK_SUPPORT) && (stm32fd_cfg->pclk_len > 1)) { in can_stm32fd_clock_enable()
453 (clock_control_subsys_t)&stm32fd_cfg->pclken[1], in can_stm32fd_clock_enable()
461 ret = clock_control_on(clk, (clock_control_subsys_t)&stm32fd_cfg->pclken[0]); in can_stm32fd_clock_enable()
466 if (stm32fd_cfg->clock_divider != 0) { in can_stm32fd_clock_enable()
468 FDCAN_CONFIG->CKDIV = stm32fd_cfg->clock_divider >> 1; in can_stm32fd_clock_enable()
[all …]