Searched refs:core_clock (Results 1 – 5 of 5) sorted by relevance
/Zephyr-Core-3.5.0/drivers/can/ |
D | can_common.c | 164 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 …]
|
D | can_shell.c | 283 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/ |
D | clock_control_numaker_scc.c | 22 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/ |
D | main.c | 92 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/ |
D | soc.c | 73 #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()
|