Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/drivers/can/
Dcan_common.c164 static int can_calc_timing_int(uint32_t core_clock, struct can_timing *res, in can_calc_timing_int() argument
179 for (int prescaler = MAX(core_clock / (ts * bitrate), 1); in can_calc_timing_int()
181 if (core_clock % (prescaler * bitrate)) { in can_calc_timing_int()
186 ts = core_clock / (prescaler * bitrate); in can_calc_timing_int()
224 uint32_t core_clock; in z_impl_can_calc_timing() local
231 ret = can_get_core_clock(dev, &core_clock); in z_impl_can_calc_timing()
236 return can_calc_timing_int(core_clock, res, min, max, bitrate, sample_pnt); in z_impl_can_calc_timing()
245 uint32_t core_clock; in z_impl_can_calc_timing_data() local
252 ret = can_get_core_clock(dev, &core_clock); in z_impl_can_calc_timing_data()
257 return can_calc_timing_int(core_clock, res, min, max, bitrate, sample_pnt); in z_impl_can_calc_timing_data()
[all …]
Dcan_shell.c283 uint32_t core_clock; in cmd_can_show() local
292 err = can_get_core_clock(dev, &core_clock); in cmd_can_show()
328 shell_print(sh, "core clock: %d Hz", core_clock); in cmd_can_show()
/Zephyr-Core-3.5.0/drivers/clock_control/
Dclock_control_numaker_scc.c22 uint32_t core_clock; member
134 #if DT_NODE_HAS_PROP(DT_NODELABEL(scc), core_clock) in numaker_scc_init()
135 LOG_DBG("Core clock: %d (Hz)", cfg->core_clock); in numaker_scc_init()
156 .core_clock = DT_INST_PROP_OR(inst, core_clock, 0), \
/Zephyr-Core-3.5.0/tests/drivers/can/timing/src/
Dmain.c92 uint32_t core_clock; in assert_bitrate_correct() local
98 err = can_get_core_clock(dev, &core_clock); in assert_bitrate_correct()
101 bitrate_calc = core_clock / timing->prescaler / ts; in assert_bitrate_correct()
315 uint32_t core_clock; in can_timing_setup() local
320 err = can_get_core_clock(dev, &core_clock); in can_timing_setup()
323 printk("testing on device %s @ %u Hz\n", dev->name, core_clock); in can_timing_setup()
/Zephyr-Core-3.5.0/soc/arm/nuvoton_numaker/m46x/
Dsoc.c73 #if DT_NODE_HAS_PROP(DT_NODELABEL(scc), core_clock) in z_arm_platform_init()
75 CLK_SetCoreClock(DT_PROP(DT_NODELABEL(scc), core_clock)); in z_arm_platform_init()