Home
last modified time | relevance | path

Searched refs:freq (Results 1 – 25 of 110) sorted by relevance

12345

/Zephyr-Core-2.7.6/tests/benchmarks/latency_measure/src/
Dmain.c34 uint32_t freq; in test_thread() local
40 freq = timing_freq_get_mhz(); in test_thread()
43 TC_PRINT("Timing results: Clock frequency: %u MHz\n", freq); in test_thread()
/Zephyr-Core-2.7.6/drivers/pwm/
Dpwm_led_esp32.c46 int freq; member
352 config->timer_cfg[speed_mode][timer].freq); in pwm_led_esp32_pin_set_cycles()
388 *cycles = config->timer_cfg[speed_mode][timer].freq; in pwm_led_esp32_get_cycles_per_sec()
422 .freq = TIMER_HS_FREQ(0),
426 .freq = TIMER_HS_FREQ(1),
430 .freq = TIMER_HS_FREQ(2),
434 .freq = TIMER_HS_FREQ(2),
438 .freq = TIMER_HS_FREQ(3),
442 .freq = TIMER_LS_FREQ(0),
446 .freq = TIMER_LS_FREQ(1),
[all …]
Dpwm_mchp_xec.c109 static uint16_t xec_select_div(uint32_t freq, uint32_t max_freq[16]) in xec_select_div() argument
113 if (freq >= max_freq[3]) { in xec_select_div()
117 freq *= XEC_PWM_LOWEST_ON_OFF; in xec_select_div()
120 if (freq >= max_freq[i]) { in xec_select_div()
128 static void xec_compute_on_off(uint32_t freq, uint32_t dc, uint32_t clk, in xec_compute_on_off() argument
133 on_off = (clk * 10) / freq; in xec_compute_on_off()
Dpwm_sam0_tcc.c25 uint32_t freq; member
54 *cycles = cfg->freq; in pwm_sam0_get_cycles_per_sec()
155 .freq = SOC_ATMEL_SAM0_GCLK0_FREQ_HZ / \
Dpwm_xlnx_axi_timer.c43 uint32_t freq; member
173 *cycles = config->freq; in xlnx_axi_timer_get_cycles_per_sec()
201 .freq = DT_INST_PROP(n, clock_frequency), \
/Zephyr-Core-2.7.6/drivers/sensor/wsen_itds/
Ditds.c37 uint16_t *freq, uint16_t *mfreq) in itds_get_odr_for_index() argument
57 *freq = itds_odr_map[idx].freq; in itds_get_odr_for_index()
63 static int itds_accl_odr_set(const struct device *dev, uint16_t freq, in itds_accl_odr_set() argument
81 if ((freq == itds_odr_map[i].freq) && in itds_accl_odr_set()
315 uint16_t freq, mfreq; in itds_init() local
359 ret = itds_get_odr_for_index(dev, cfg->def_odr, &freq, &mfreq); in itds_init()
365 ret = itds_accl_odr_set(dev, freq, mfreq); in itds_init()
/Zephyr-Core-2.7.6/drivers/clock_control/
Dbeetle_clock_control.c28 uint32_t freq; member
137 uint32_t nc_mainclk = beetle_round_freq(cfg->freq); in beetle_clock_control_get_subsys_rate()
228 if (cfg->freq != MAINCLK_BASE_FREQ) { in beetle_clock_control_init()
229 beetle_pll_enable(cfg->freq); in beetle_clock_control_init()
238 .freq = DT_INST_PROP(0, clock_frequency),
Dclock_control_litex.c343 ldev->g_config.freq = f; in litex_clk_get_real_global_frequency()
346 ldev->ts_g_config.freq = ldev->g_config.freq; in litex_clk_get_real_global_frequency()
439 lcko->def.freq, lcko->def.duty.num, in litex_clk_print_params()
443 lcko->ts_config.div, lcko->ts_config.freq, in litex_clk_print_params()
448 lcko->config.div, lcko->config.freq, in litex_clk_print_params()
470 ldev->ts_g_config.freq, ldev->ts_g_config.mul, in litex_clk_print_all_params()
474 ldev->g_config.freq, ldev->g_config.mul, ldev->g_config.div); in litex_clk_print_all_params()
822 ldev->g_config.freq = ldev->ts_g_config.freq; in litex_clk_set_globs()
1254 m = lcko->ts_config.freq * lcko->margin.m; in litex_clk_calc_clkout_params()
1260 delta_f = clk_freq - lcko->ts_config.freq; in litex_clk_calc_clkout_params()
[all …]
Dclock_control_esp32.c198 static void esp32_cpu_freq_to_xtal(int freq, int div) in esp32_cpu_freq_to_xtal() argument
200 ets_update_cpu_frequency(freq); in esp32_cpu_freq_to_xtal()
202 uint32_t apb_freq = MHZ(freq); in esp32_cpu_freq_to_xtal()
207 REG_WRITE(APB_CTRL_XTAL_TICK_CONF_REG, MHZ(freq) / REF_CLK_FREQ - 1); in esp32_cpu_freq_to_xtal()
212 if (freq <= 2) { in esp32_cpu_freq_to_xtal()
Dclock_control_litex.h78 lcko->def.freq = CLKOUT_FREQ(N); \
182 uint32_t freq; member
186 uint64_t freq; member
218 uint32_t freq; member
/Zephyr-Core-2.7.6/drivers/ieee802154/
Dieee802154_cc1200.c232 static bool write_reg_freq(struct cc1200_context *ctx, uint32_t freq) in write_reg_freq() argument
236 freq_data[0] = (uint8_t)((freq & 0x00FF0000) >> 16); in write_reg_freq()
237 freq_data[1] = (uint8_t)((freq & 0x0000FF00) >> 8); in write_reg_freq()
238 freq_data[2] = (uint8_t)(freq & 0x000000FF); in write_reg_freq()
279 uint32_t freq = 0U; in rf_evaluate_freq_setting() local
311 freq += freq_tmp; in rf_evaluate_freq_setting()
319 LOG_DBG("FREQ is 0x%06X", freq); in rf_evaluate_freq_setting()
321 return freq; in rf_evaluate_freq_setting()
557 uint32_t freq = rf_evaluate_freq_setting(cc1200, channel); in cc1200_set_channel() local
559 if (!write_reg_freq(cc1200, freq) || in cc1200_set_channel()
/Zephyr-Core-2.7.6/soc/arc/snps_arc_iot/
Dsysconf.c73 int32_t arc_iot_pll_fout_config(uint32_t freq) in arc_iot_pll_fout_config() argument
77 if (freq == PLL_CLK_IN) { in arc_iot_pll_fout_config()
82 if (pll_configuration[i].fout == freq) { in arc_iot_pll_fout_config()
92 if (freq > 100) { in arc_iot_pll_fout_config()
/Zephyr-Core-2.7.6/subsys/testsuite/busy_sim/
Dbusy_sim.c161 uint32_t freq; in busy_sim_init() local
175 freq = counter_get_frequency(config->counter); in busy_sim_init()
176 if (freq < 1000000) { in busy_sim_init()
184 data->us_tick = freq / 1000000; in busy_sim_init()
/Zephyr-Core-2.7.6/drivers/sensor/ism330dhcx/
Dism330dhcx_shub.c101 uint8_t i2c_addr, uint16_t freq) in ism330dhcx_lis2mdl_odr_set() argument
106 if (freq == lis2mdl_map[odr]) { in ism330dhcx_lis2mdl_odr_set()
112 LOG_DBG("shub: LIS2MDL freq val %d not supported.", freq); in ism330dhcx_lis2mdl_odr_set()
196 uint8_t i2c_addr, uint16_t freq) in ism330dhcx_hts221_odr_set() argument
201 if (freq == hts221_map[odr]) { in ism330dhcx_hts221_odr_set()
207 LOG_DBG("shub: HTS221 freq val %d not supported.", freq); in ism330dhcx_hts221_odr_set()
309 uint8_t i2c_addr, uint16_t freq) in ism330dhcx_lps22hh_odr_set() argument
314 if (freq == lps22hh_map[odr]) { in ism330dhcx_lps22hh_odr_set()
320 LOG_DBG("shub: LPS22HH freq val %d not supported.", freq); in ism330dhcx_lps22hh_odr_set()
/Zephyr-Core-2.7.6/drivers/sensor/lsm6dso/
Dlsm6dso_shub.c99 uint8_t i2c_addr, uint16_t freq) in lsm6dso_lis2mdl_odr_set() argument
104 if (freq == lis2mdl_map[odr]) { in lsm6dso_lis2mdl_odr_set()
110 LOG_DBG("shub: LIS2MDL freq val %d not supported.", freq); in lsm6dso_lis2mdl_odr_set()
194 uint8_t i2c_addr, uint16_t freq) in lsm6dso_hts221_odr_set() argument
199 if (freq == hts221_map[odr]) { in lsm6dso_hts221_odr_set()
205 LOG_DBG("shub: HTS221 freq val %d not supported.", freq); in lsm6dso_hts221_odr_set()
307 uint8_t i2c_addr, uint16_t freq) in lsm6dso_lps22hh_odr_set() argument
312 if (freq == lps22hh_map[odr]) { in lsm6dso_lps22hh_odr_set()
318 LOG_DBG("shub: LPS22HH freq val %d not supported.", freq); in lsm6dso_lps22hh_odr_set()
/Zephyr-Core-2.7.6/drivers/counter/
Dcounter_mcux_gpt.c177 if (clock_freq % config->info.freq) { in mcux_gpt_init()
178 LOG_ERR("Cannot Adjust GPT freq to %u\n", config->info.freq); in mcux_gpt_init()
186 gptConfig.divider = clock_freq / config->info.freq; in mcux_gpt_init()
213 .freq = DT_INST_PROP(n, gptfreq), \
Dcounter_mcux_ctimer.c186 uint32_t freq = clk_freq / (config->prescale + 1); in mcux_lpc_ctimer_init() local
188 config->info.freq = freq; in mcux_lpc_ctimer_init()
224 .freq = 1, \
/Zephyr-Core-2.7.6/drivers/sensor/lis2ds12/
Dlis2ds12.c47 static int lis2ds12_freq_to_odr_val(uint16_t freq) in lis2ds12_freq_to_odr_val() argument
52 if (freq == lis2ds12_hr_odr_map[i]) { in lis2ds12_freq_to_odr_val()
60 static int lis2ds12_accel_odr_set(const struct device *dev, uint16_t freq) in lis2ds12_accel_odr_set() argument
65 odr = lis2ds12_freq_to_odr_val(freq); in lis2ds12_accel_odr_set()
/Zephyr-Core-2.7.6/drivers/sensor/iis2iclx/
Diis2iclx_shub.c99 uint8_t i2c_addr, uint16_t freq) in iis2iclx_lis2mdl_odr_set() argument
104 if (freq == lis2mdl_map[odr]) { in iis2iclx_lis2mdl_odr_set()
110 LOG_ERR("shub: LIS2MDL freq val %d not supported.", freq); in iis2iclx_lis2mdl_odr_set()
197 uint8_t i2c_addr, uint16_t freq) in iis2iclx_hts221_odr_set() argument
202 if (freq == hts221_map[odr]) { in iis2iclx_hts221_odr_set()
208 LOG_ERR("shub: HTS221 freq val %d not supported.", freq); in iis2iclx_hts221_odr_set()
310 uint8_t i2c_addr, uint16_t freq) in iis2iclx_lps22hh_odr_set() argument
315 if (freq == lps22hh_map[odr]) { in iis2iclx_lps22hh_odr_set()
321 LOG_ERR("shub: LPS22HH freq val %d not supported.", freq); in iis2iclx_lps22hh_odr_set()
/Zephyr-Core-2.7.6/boards/sparc/gr716a_mini/
Dboard.cmake7 set(TSIM_SYS -freq 20 -gr716)
/Zephyr-Core-2.7.6/include/drivers/
Dcounter.h168 uint32_t freq; member
255 return config->freq; in z_impl_counter_get_frequency()
273 uint64_t ticks = (us * config->freq) / USEC_PER_SEC; in z_impl_counter_us_to_ticks()
294 return ((uint64_t)ticks * USEC_PER_SEC) / config->freq; in z_impl_counter_ticks_to_us()
/Zephyr-Core-2.7.6/drivers/sensor/lis2dh/
Dlis2dh.c122 static int lis2dh_freq_to_odr_val(uint16_t freq) in lis2dh_freq_to_odr_val() argument
127 if (freq == 0U) { in lis2dh_freq_to_odr_val()
132 if (freq == lis2dh_odr_map[i]) { in lis2dh_freq_to_odr_val()
140 static int lis2dh_acc_odr_set(const struct device *dev, uint16_t freq) in lis2dh_acc_odr_set() argument
147 odr = lis2dh_freq_to_odr_val(freq); in lis2dh_acc_odr_set()
/Zephyr-Core-2.7.6/subsys/logging/
Dlog_output.c45 static uint32_t freq; variable
179 } else if (freq != 0U) { in timestamp_print()
189 total_seconds = timestamp / freq; in timestamp_print()
196 remainder = timestamp % freq; in timestamp_print()
197 ms = (remainder * 1000U) / freq; in timestamp_print()
198 us = (1000 * (remainder * 1000U - (ms * freq))) / freq; in timestamp_print()
757 freq = frequency; in log_output_timestamp_freq_set()
764 return ((uint64_t) timestamp * 1000000U) / freq; in log_output_timestamp_to_us()
/Zephyr-Core-2.7.6/drivers/i2c/
Di2c_ite_it8xxx2.c81 uint8_t freq; member
329 data->freq = psr & 0xFF; in i2c_enhanced_port_set_frequency()
338 uint32_t freq, freq_set; in i2c_it8xxx2_configure() local
350 freq = 100; in i2c_it8xxx2_configure()
354 freq = 400; in i2c_it8xxx2_configure()
358 freq = 1000; in i2c_it8xxx2_configure()
366 i2c_standard_port_set_frequency(dev, freq, freq_set); in i2c_it8xxx2_configure()
368 i2c_enhanced_port_set_frequency(dev, freq); in i2c_it8xxx2_configure()
401 IT83XX_I2C_PSR(base) = data->freq; in enhanced_i2c_start()
402 IT83XX_I2C_HSPR(base) = data->freq; in enhanced_i2c_start()
/Zephyr-Core-2.7.6/boards/shields/dfrobot_can_bus_v2_0/
Ddfrobot_can_bus_v2_0.overlay18 osc-freq = <16000000>;

12345