Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/pwm/
Dpwm_led_esp32.c48 ledc_clk_src_t clock_src; member
138 uint64_t clock_freq = channel->clock_src == LEDC_APB_CLK ? APB_CLK_FREQ : REF_CLK_FREQ; in pwm_led_esp32_calculate_max_resolution()
177 channel->clock_src = LEDC_APB_CLK; in pwm_led_esp32_timer_config()
184 channel->clock_src = LEDC_REF_TICK; in pwm_led_esp32_timer_config()
212 switch (channel->clock_src) { in pwm_led_esp32_timer_set()
233 LOG_ERR("Invalid clock source (%d)", channel->clock_src); in pwm_led_esp32_timer_set()
243 ledc_hal_set_slow_clk_sel(&data->hal, channel->clock_src); in pwm_led_esp32_timer_set()
248 ledc_hal_set_clock_source(&data->hal, channel->timer_num, channel->clock_src); in pwm_led_esp32_timer_set()
271 *cycles = channel->clock_src == LEDC_APB_CLK ? APB_CLK_FREQ : REF_CLK_FREQ; in pwm_led_esp32_get_cycles_per_sec()
372 .clock_src = CLOCK_SOURCE, \
/Zephyr-latest/drivers/rtc/
Drtc_nxp_irtc.c18 uint8_t clock_src; member
332 irtc_reg->CTRL = RTC_CTRL_CLK_SEL(config->clock_src) | in nxp_irtc_init()
387 .clock_src = DT_INST_PROP(n, clock_src), \
/Zephyr-latest/drivers/adc/
Dadc_mcux_12b1msps_sar.c27 adc_clock_source_t clock_src; member
233 adc_config.clockSource = config->clock_src; in mcux_12b1msps_sar_adc_init()
291 .clock_src = kADC_ClockSourceAD, \
Dadc_mcux_adc12.c26 adc12_clock_source_t clock_src; member
236 adc_config.clockSource = config->clock_src; in mcux_adc12_init()
293 .clock_src = TO_ADC12_CLOCK_SRC(DT_INST_PROP(n, clk_source)),\
/Zephyr-latest/drivers/clock_control/
Dclock_control_smartbond.c582 BUILD_ASSERT(DT_NODE_HAS_STATUS_OKAY(DT_PROP(DT_NODELABEL(sys_clk), clock_src)), in smartbond_clocks_init()
584 BUILD_ASSERT(DT_NODE_HAS_STATUS_OKAY(DT_PROP(DT_NODELABEL(lp_clk), clock_src)), in smartbond_clocks_init()
590 clk_id = DT_DEP_ORD(DT_PROP(DT_NODELABEL(lp_clk), clock_src)); in smartbond_clocks_init()
594 clk_id = DT_DEP_ORD(DT_PROP(DT_NODELABEL(sys_clk), clock_src)); in smartbond_clocks_init()
/Zephyr-latest/drivers/watchdog/
Dwdt_max32.c32 static int wdt_max32_calculate_timeout(uint32_t timeout, uint32_t clock_src) in wdt_max32_calculate_timeout() argument
38 clk_frequency = ADI_MAX32_GET_PRPH_CLK_FREQ(clock_src); in wdt_max32_calculate_timeout()
/Zephyr-latest/drivers/counter/
Dcounter_smartbond_timer.c521 .clock_src_divn = DT_SAME_NODE(DT_PROP(TIMERN(idx), clock_src), \