/Zephyr-latest/drivers/clock_control/ |
D | clock_control_si32_ahb.c | 25 uint32_t freq; member 43 *rate = config->freq; in clock_control_si32_ahb_get_rate() 62 if (config->freq != 20000000) { in clock_control_si32_ahb_init() 63 uint32_t freq = config->freq; in clock_control_si32_ahb_init() local 65 ret = clock_control_set_rate(config->clock_dev, NULL, &freq); in clock_control_si32_ahb_init() 79 if (config->freq > 80000000) { in clock_control_si32_ahb_init() 81 } else if (config->freq > 53000000) { in clock_control_si32_ahb_init() 83 } else if (config->freq > 26000000) { in clock_control_si32_ahb_init() 99 .freq = DT_PROP(DT_PATH(cpus, cpu_0), clock_frequency),
|
D | clock_control_si32_pll.c | 28 uint32_t freq; member 36 if (data->freq == 0) { in clock_control_si32_pll_on() 42 if (data->freq > 80000000) { in clock_control_si32_pll_on() 44 } else if (data->freq > 76500000) { in clock_control_si32_pll_on() 46 } else if (data->freq > 62000000) { in clock_control_si32_pll_on() 48 } else if (data->freq > 49500000) { in clock_control_si32_pll_on() 50 } else if (data->freq > 35000000) { in clock_control_si32_pll_on() 52 } else if (data->freq > 23000000) { in clock_control_si32_pll_on() 61 const uint32_t div_n = (data->freq / source_clock_freq) * (div_m + 1) - 1; in clock_control_si32_pll_on() 100 *rate = data->freq; in clock_control_si32_pll_get_rate() [all …]
|
D | clock_control_renesas_cpg_mssr.c | 136 int64_t freq = -ENOTSUP; in rcar_cpg_get_in_update_out_freq() local 140 return freq; in rcar_cpg_get_in_update_out_freq() 146 return freq; in rcar_cpg_get_in_update_out_freq() 154 freq = rcar_cpg_get_in_update_out_freq(dev, parent_clk); in rcar_cpg_get_in_update_out_freq() 155 if (freq < 0) { in rcar_cpg_get_in_update_out_freq() 156 return freq; in rcar_cpg_get_in_update_out_freq() 161 freq = rcar_cpg_update_out_freq(dev, clk_info); in rcar_cpg_get_in_update_out_freq() 162 if (freq < 0) { in rcar_cpg_get_in_update_out_freq() 163 return freq; in rcar_cpg_get_in_update_out_freq() 171 int64_t freq; in rcar_cpg_get_out_freq() local [all …]
|
D | beetle_clock_control.c | 29 uint32_t freq; member 138 uint32_t nc_mainclk = beetle_round_freq(cfg->freq); in beetle_clock_control_get_subsys_rate() 229 if (cfg->freq != MAINCLK_BASE_FREQ) { in beetle_clock_control_init() 230 beetle_pll_enable(cfg->freq); in beetle_clock_control_init() 239 .freq = DT_PROP(DT_PATH(cpus, cpu_0), clock_frequency),
|
D | clock_control_litex.c | 345 ldev->g_config.freq = f; in litex_clk_get_real_global_frequency() 348 ldev->ts_g_config.freq = ldev->g_config.freq; in litex_clk_get_real_global_frequency() 442 lcko->def.freq, lcko->def.duty.num, in litex_clk_print_params() 446 lcko->ts_config.div, lcko->ts_config.freq, in litex_clk_print_params() 451 lcko->config.div, lcko->config.freq, in litex_clk_print_params() 473 ldev->ts_g_config.freq, ldev->ts_g_config.mul, in litex_clk_print_all_params() 477 ldev->g_config.freq, ldev->g_config.mul, ldev->g_config.div); in litex_clk_print_all_params() 825 ldev->g_config.freq = ldev->ts_g_config.freq; in litex_clk_set_globs() 1263 m = lcko->ts_config.freq * lcko->margin.m; in litex_clk_calc_clkout_params() 1269 delta_f = clk_freq - lcko->ts_config.freq; in litex_clk_calc_clkout_params() [all …]
|
/Zephyr-latest/modules/hal_nordic/nrfs/dvfs/ |
D | ld_dvfs_handler.c | 227 LOG_DBG("DVFS handler EVT_OPPOINT_REQ_CONFIRMED %d", (uint32_t)p_evt->freq); in nrfs_dvfs_evt_handler() 228 if (dvfs_service_handler_get_requested_oppoint() == p_evt->freq) { in nrfs_dvfs_evt_handler() 229 dvfs_service_update_core_clock(p_evt->freq); in nrfs_dvfs_evt_handler() 231 dvfs_frequency_change_applied_clb(p_evt->freq); in nrfs_dvfs_evt_handler() 239 if (dvfs_service_handler_is_downscaling(p_evt->freq)) { in nrfs_dvfs_evt_handler() 241 dvfs_service_handler_prepare_to_scale(p_evt->freq); in nrfs_dvfs_evt_handler() 244 dvfs_service_handler_scaling_background_job(p_evt->freq); in nrfs_dvfs_evt_handler() 248 static enum dvfs_frequency_setting freq; in nrfs_dvfs_evt_handler() local 250 freq = p_evt->freq; in nrfs_dvfs_evt_handler() 252 (void *)&freq); in nrfs_dvfs_evt_handler() [all …]
|
/Zephyr-latest/drivers/sensor/tdk/icm42670/ |
D | icm42670.c | 73 uint16_t freq; in convert_dt_enum_to_freq() local 77 freq = 0; in convert_dt_enum_to_freq() 80 freq = 1600; in convert_dt_enum_to_freq() 83 freq = 800; in convert_dt_enum_to_freq() 86 freq = 400; in convert_dt_enum_to_freq() 89 freq = 200; in convert_dt_enum_to_freq() 92 freq = 100; in convert_dt_enum_to_freq() 95 freq = 50; in convert_dt_enum_to_freq() 98 freq = 25; in convert_dt_enum_to_freq() 101 freq = 12; in convert_dt_enum_to_freq() [all …]
|
/Zephyr-latest/drivers/pwm/ |
D | pwm_led_esp32.c | 45 uint32_t freq; member 142 uint32_t max_precision_n = clock_freq/channel->freq; in pwm_led_esp32_calculate_max_resolution() 210 __ASSERT_NO_MSG(channel->freq > 0); in pwm_led_esp32_timer_set() 219 prescaler = ((uint64_t) APB_CLK_FREQ << 8) / channel->freq / precision; in pwm_led_esp32_timer_set() 224 prescaler = ((uint64_t) SCLK_CLK_FREQ << 8) / channel->freq / precision; in pwm_led_esp32_timer_set() 229 prescaler = ((uint64_t) REF_CLK_FREQ << 8) / channel->freq / precision; in pwm_led_esp32_timer_set() 299 channel->freq = (uint32_t) (clk_freq/period_cycles); in pwm_led_esp32_set_cycles() 300 if (!channel->freq) { in pwm_led_esp32_set_cycles() 301 channel->freq = 1; in pwm_led_esp32_set_cycles()
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_gd32.c | 495 uint32_t pclk1, freq, clkc; in i2c_gd32_configure() local 508 freq = pclk1 / 1000000U; in i2c_gd32_configure() 509 if (freq > I2CCLK_MAX) { in i2c_gd32_configure() 511 I2CCLK_MAX, freq); in i2c_gd32_configure() 547 if (freq < I2CCLK_MIN) { in i2c_gd32_configure() 549 I2CCLK_MIN, freq); in i2c_gd32_configure() 554 I2C_CTL1(cfg->reg) |= freq; in i2c_gd32_configure() 557 if (freq == I2CCLK_MAX) { in i2c_gd32_configure() 560 I2C_RT(cfg->reg) = freq + 1U; in i2c_gd32_configure() 573 if (freq < I2CCLK_FM_MIN) { in i2c_gd32_configure() [all …]
|
/Zephyr-latest/tests/drivers/spi/spi_loopback/boards/ |
D | nucleo_h723zg.overlay | 7 /* Set div-q to get test clk freq into acceptable SPI freq range */
|
D | nucleo_h743zi.overlay | 7 /* Set div-q to get test clk freq into acceptable SPI freq range */
|
D | nucleo_h745zi_q_stm32h745xx_m4.overlay | 7 /* Set div-q to get test clk freq into acceptable SPI freq range */
|
D | nucleo_h745zi_q_stm32h745xx_m7.overlay | 7 /* Set div-q to get test clk freq into acceptable SPI freq range */
|
D | nucleo_h753zi.overlay | 7 /* Set div-q to get test clk freq into acceptable SPI freq range */
|
/Zephyr-latest/drivers/counter/ |
D | counter_mcux_qtmr.c | 43 uint32_t freq; member 254 return data->freq; in mcux_qtmr_get_freq() 270 data->freq = config->info.freq; in mcux_qtmr_init() 279 &data->freq)) { in mcux_qtmr_init() 283 data->freq /= qtmr_primary_source_divider[config->qtmr_config.primarySource - in mcux_qtmr_init() 314 .freq = DT_INST_PROP_OR(n, freq, 0), \
|
D | counter_dw_timer.c | 49 uint32_t freq; member 72 uint32_t freq; member 292 return data->freq; in counter_dw_timer_get_freq() 296 return config->freq; in counter_dw_timer_get_freq() 331 timer_config->clkid, &data->freq); in counter_dw_timer_init() 362 .freq = DT_INST_PROP(inst, clock_frequency), \ 365 .freq = 0, \
|
/Zephyr-latest/tests/drivers/spi/spi_loopback/ |
D | overlay-stm32-spi-16bits.overlay | 7 /* Set div-q to get test clk freq into acceptable SPI freq range */
|
/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_cc1200.c | 224 static bool write_reg_freq(const struct device *dev, uint32_t freq) in write_reg_freq() argument 228 freq_data[0] = (uint8_t)((freq & 0x00FF0000) >> 16); in write_reg_freq() 229 freq_data[1] = (uint8_t)((freq & 0x0000FF00) >> 8); in write_reg_freq() 230 freq_data[2] = (uint8_t)(freq & 0x000000FF); in write_reg_freq() 272 uint32_t freq = 0U; in rf_evaluate_freq_setting() local 304 freq += freq_tmp; in rf_evaluate_freq_setting() 312 LOG_DBG("FREQ is 0x%06X", freq); in rf_evaluate_freq_setting() 314 return freq; in rf_evaluate_freq_setting() 547 uint32_t freq; in cc1200_set_channel() local 569 freq = rf_evaluate_freq_setting(dev, channel); in cc1200_set_channel() [all …]
|
/Zephyr-latest/tests/boards/espressif/rtc_clk/ |
D | README.rst | 68 Testing RTC FAST CLK freq: 20000000 MHz 69 Testing RTC FAST CLK freq: 17500000 MHz 73 Testing RTC SLOW CLK freq: 136000 MHz 74 Testing RTC SLOW CLK freq: 68359 MHz
|
/Zephyr-latest/drivers/sensor/st/lsm6dso16is/ |
D | lsm6dso16is_shub.c | 83 uint8_t i2c_addr, uint16_t freq) in lsm6dso16is_lis2mdl_odr_set() argument 88 if (freq <= lis2mdl_map[odr]) { in lsm6dso16is_lis2mdl_odr_set() 94 LOG_DBG("shub: LIS2MDL freq val %d not supported.", freq); in lsm6dso16is_lis2mdl_odr_set() 179 uint8_t i2c_addr, uint16_t freq) in lsm6dso16is_hts221_odr_set() argument 184 if (freq <= hts221_map[odr]) { in lsm6dso16is_hts221_odr_set() 190 LOG_DBG("shub: HTS221 freq val %d not supported.", freq); in lsm6dso16is_hts221_odr_set() 292 uint8_t i2c_addr, uint16_t freq) in lsm6dso16is_lps22hh_odr_set() argument 297 if (freq <= lps22hh_map[odr]) { in lsm6dso16is_lps22hh_odr_set() 303 LOG_DBG("shub: LPS22HH freq val %d not supported.", freq); in lsm6dso16is_lps22hh_odr_set() 372 uint8_t i2c_addr, uint16_t freq) in lsm6dso16is_lps22df_odr_set() argument [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/ |
D | lsm6dsv16x_shub.c | 83 uint8_t i2c_addr, uint16_t freq) in lsm6dsv16x_lis2mdl_odr_set() argument 88 if (freq <= lis2mdl_map[odr]) { in lsm6dsv16x_lis2mdl_odr_set() 94 LOG_DBG("shub: LIS2MDL freq val %d not supported.", freq); in lsm6dsv16x_lis2mdl_odr_set() 179 uint8_t i2c_addr, uint16_t freq) in lsm6dsv16x_hts221_odr_set() argument 184 if (freq <= hts221_map[odr]) { in lsm6dsv16x_hts221_odr_set() 190 LOG_DBG("shub: HTS221 freq val %d not supported.", freq); in lsm6dsv16x_hts221_odr_set() 292 uint8_t i2c_addr, uint16_t freq) in lsm6dsv16x_lps22hh_odr_set() argument 297 if (freq <= lps22hh_map[odr]) { in lsm6dsv16x_lps22hh_odr_set() 303 LOG_DBG("shub: LPS22HH freq val %d not supported.", freq); in lsm6dsv16x_lps22hh_odr_set() 372 uint8_t i2c_addr, uint16_t freq) in lsm6dsv16x_lps22df_odr_set() argument [all …]
|
/Zephyr-latest/boards/gaisler/gr716a_mini/ |
D | board.cmake | 7 set(TSIM_SYS -freq 20 -gr716)
|
/Zephyr-latest/drivers/sensor/st/lsm9ds1/ |
D | lsm9ds1.c | 99 static int lsm9ds1_accel_freq_to_odr_val(uint16_t freq) in lsm9ds1_accel_freq_to_odr_val() argument 104 if (freq <= lsm9ds1_odr_map[i]) { in lsm9ds1_accel_freq_to_odr_val() 112 static int lsm9ds1_gyro_freq_to_odr_val(uint16_t freq) in lsm9ds1_gyro_freq_to_odr_val() argument 117 if (freq <= lsm9ds1_gyro_odr_map[i]) { in lsm9ds1_gyro_freq_to_odr_val() 176 static int lsm9ds1_gyro_odr_set(const struct device *dev, uint16_t freq) in lsm9ds1_gyro_odr_set() argument 182 odr = lsm9ds1_gyro_freq_to_odr_val(freq); in lsm9ds1_gyro_odr_set() 210 static int lsm9ds1_accel_odr_set(const struct device *dev, uint16_t freq) in lsm9ds1_accel_odr_set() argument 229 odr = lsm9ds1_gyro_freq_to_odr_val(freq); in lsm9ds1_accel_odr_set() 252 odr = lsm9ds1_accel_freq_to_odr_val(freq); in lsm9ds1_accel_odr_set()
|
/Zephyr-latest/soc/snps/arc_iot/ |
D | sysconf.c | 76 int32_t arc_iot_pll_fout_config(uint32_t freq) in arc_iot_pll_fout_config() argument 80 if (freq == PLL_CLK_IN) { in arc_iot_pll_fout_config() 85 if (pll_configuration[i].fout == freq) { in arc_iot_pll_fout_config() 95 if (freq > 100) { in arc_iot_pll_fout_config()
|
/Zephyr-latest/subsys/testsuite/busy_sim/ |
D | busy_sim.c | 178 uint32_t freq; in busy_sim_init() local 193 freq = counter_get_frequency(config->counter); in busy_sim_init() 194 if (freq < 1000000) { in busy_sim_init() 204 data->us_tick = freq / 1000000; in busy_sim_init()
|