/Zephyr-latest/drivers/sensor/memsic/mc3419/ |
D | mc3419.c | 24 static int mc3419_get_odr_value(uint16_t freq, uint16_t m_freq) in mc3419_get_odr_value() argument 27 if (odr_map_table[i].freq == freq && in mc3419_get_odr_value()
|
/Zephyr-latest/tests/benchmarks/wait_queues/src/ |
D | main.c | 217 unsigned int freq; in main() local 228 freq = timing_freq_get_mhz(); in main() 232 printk("Timing results: Clock frequency: %u MHz\n", freq); in main()
|
/Zephyr-latest/drivers/sensor/st/ism330dhcx/ |
D | ism330dhcx.c | 29 static int ism330dhcx_freq_to_odr_val(uint16_t freq) in ism330dhcx_freq_to_odr_val() argument 34 if (freq <= ism330dhcx_odr_map[i]) { in ism330dhcx_freq_to_odr_val() 169 static int ism330dhcx_accel_odr_set(const struct device *dev, uint16_t freq) in ism330dhcx_accel_odr_set() argument 173 odr = ism330dhcx_freq_to_odr_val(freq); in ism330dhcx_accel_odr_set() 223 static int ism330dhcx_gyro_odr_set(const struct device *dev, uint16_t freq) in ism330dhcx_gyro_odr_set() argument 227 odr = ism330dhcx_freq_to_odr_val(freq); in ism330dhcx_gyro_odr_set()
|
/Zephyr-latest/drivers/sensor/st/lsm6dsl/ |
D | lsm6dsl.c | 32 static int lsm6dsl_freq_to_odr_val(uint16_t freq) in lsm6dsl_freq_to_odr_val() argument 37 if (freq == lsm6dsl_odr_map[i]) { in lsm6dsl_freq_to_odr_val() 180 static int lsm6dsl_accel_odr_set(const struct device *dev, uint16_t freq) in lsm6dsl_accel_odr_set() argument 184 odr = lsm6dsl_freq_to_odr_val(freq); in lsm6dsl_accel_odr_set() 243 static int lsm6dsl_gyro_odr_set(const struct device *dev, uint16_t freq) in lsm6dsl_gyro_odr_set() argument 247 odr = lsm6dsl_freq_to_odr_val(freq); in lsm6dsl_gyro_odr_set()
|
/Zephyr-latest/soc/nxp/kinetis/kv5x/ |
D | soc.c | 29 .freq = CONFIG_OSC_XTAL0_FREQ,
|
/Zephyr-latest/boards/beagle/beaglebone_ai64/ |
D | beaglebone_ai64_j721e_main_r5f0_0.dts | 13 #include <freq.h>
|
/Zephyr-latest/drivers/wifi/nrf_wifi/src/ |
D | wpa_supp_if.c | 188 r->freq = scan_res->frequency; in nrf_wifi_wpa_supp_event_proc_scan_res() 347 event.assoc_info.freq = vif_ctx_zep->assoc_freq; in nrf_wifi_wpa_supp_event_proc_assoc_resp() 800 if (params->freq) { in nrf_wifi_wpa_supp_authenticate() 801 auth_info.frequency = params->freq; in nrf_wifi_wpa_supp_authenticate() 900 if (params->freq.freq) { in nrf_wifi_wpa_supp_associate() 901 assoc_info.center_frequency = params->freq.freq; in nrf_wifi_wpa_supp_associate() 902 vif_ctx_zep->assoc_freq = params->freq.freq; in nrf_wifi_wpa_supp_associate() 1382 unsigned int freq, int no_cck, in nrf_wifi_nl80211_send_mlme() argument 1432 if (freq) { in nrf_wifi_nl80211_send_mlme() 1433 mgmt_tx_info->frequency = freq; in nrf_wifi_nl80211_send_mlme() [all …]
|
/Zephyr-latest/tests/benchmarks/sched_queues/src/ |
D | main.c | 228 unsigned int freq; in main() local 239 freq = timing_freq_get_mhz(); in main() 244 printk("Timing results: Clock frequency: %u MHz\n", freq); in main()
|
/Zephyr-latest/drivers/clock_control/ |
D | clock_control_rpi_pico.c | 488 float freq = 0.f; in rpi_pico_calc_clock_freq() local 491 return freq; in rpi_pico_calc_clock_freq() 507 freq = rpi_pico_calc_clock_freq(dev, rpi_pico_get_clock_src(dev, id)) / in rpi_pico_calc_clock_freq() 511 freq = rpi_pico_calc_clock_freq(dev, rpi_pico_get_clock_src(dev, id)); in rpi_pico_calc_clock_freq() 515 freq = rpi_pico_calc_clock_freq(dev, rpi_pico_get_clock_src(dev, id)) * in rpi_pico_calc_clock_freq() 520 freq = CLOCK_FREQ_xosc; in rpi_pico_calc_clock_freq() 522 freq = data->rosc_freq; in rpi_pico_calc_clock_freq() 524 freq = data->rosc_ph_freq; in rpi_pico_calc_clock_freq() 527 return freq; in rpi_pico_calc_clock_freq()
|
/Zephyr-latest/boards/shields/nrf7002eb/ |
D | nrf7002eb.overlay | 7 #include <freq.h>
|
/Zephyr-latest/dts/arm/nuvoton/npcm/ |
D | npcm.dtsi | 11 #include <freq.h>
|
/Zephyr-latest/drivers/dai/intel/ssp/ |
D | ssp.c | 233 if (ft[i].freq % mclk_rate == 0) { in dai_ssp_setup_initial_mclk_source() 281 if (ft[mp->mclk_source_clock].freq % mclk_rate != 0) { in dai_ssp_check_current_mclk_source() 363 ret = dai_ssp_set_mclk_divider(dp, mclk_id, ft[mp->mclk_source_clock].freq / mclk_rate); in dai_ssp_mn_set_mclk() 424 static bool dai_ssp_find_mn(uint32_t freq, uint32_t bclk, uint32_t *out_scr_div, uint32_t *out_m, in dai_ssp_find_mn() argument 428 uint32_t scr_div = freq / bclk; in dai_ssp_find_mn() 430 LOG_INF("for freq %d bclk %d", freq, bclk); in dai_ssp_find_mn() 432 if (freq % bclk == 0 && scr_div < (SSCR0_SCR_MASK >> 8) + 1) { in dai_ssp_find_mn() 441 if ((bclk * 2) >= freq) { in dai_ssp_find_mn() 454 while (scr_div > 1 && freq % scr_div != 0) { in dai_ssp_find_mn() 459 mn_div = dai_ssp_gcd(bclk, freq / scr_div); in dai_ssp_find_mn() [all …]
|
/Zephyr-latest/drivers/counter/ |
D | counter_smartbond_timer.c | 37 uint32_t freq; member 341 data->freq = DT_PROP(DT_NODELABEL(divn_clk), clock_frequency) / in counter_smartbond_init_timer() 360 data->freq = osc_freq / (cfg->prescaler + 1); in counter_smartbond_init_timer() 414 return data->freq; in counter_smartbond_get_freq()
|
D | counter_nxp_mrt.c | 204 uint32_t freq; in nxp_mrt_get_freq() local 206 clock_control_get_rate(config->clock_dev, config->clock_subsys, &freq); in nxp_mrt_get_freq() 208 return freq; in nxp_mrt_get_freq()
|
/Zephyr-latest/drivers/adc/ |
D | adc_sam0.c | 58 uint32_t freq; member 101 scaled_acq += cfg->freq / 2U; in adc_sam0_acquisition_to_clocks() 102 scaled_acq /= cfg->freq; in adc_sam0_acquisition_to_clocks() 568 .freq = UTIL_CAT(UTIL_CAT(SOC_ATMEL_SAM0_GCLK, \
|
/Zephyr-latest/tests/bluetooth/audio/codec/src/ |
D | main.c | 116 enum bt_audio_codec_cfg_freq freq; in ZTEST() member 119 {.freq = BT_AUDIO_CODEC_CFG_FREQ_8KHZ, .freq_hz = 8000U}, in ZTEST() 120 {.freq = BT_AUDIO_CODEC_CFG_FREQ_11KHZ, .freq_hz = 11025U}, in ZTEST() 121 {.freq = BT_AUDIO_CODEC_CFG_FREQ_16KHZ, .freq_hz = 16000U}, in ZTEST() 122 {.freq = BT_AUDIO_CODEC_CFG_FREQ_22KHZ, .freq_hz = 22050U}, in ZTEST() 123 {.freq = BT_AUDIO_CODEC_CFG_FREQ_24KHZ, .freq_hz = 24000U}, in ZTEST() 124 {.freq = BT_AUDIO_CODEC_CFG_FREQ_32KHZ, .freq_hz = 32000U}, in ZTEST() 125 {.freq = BT_AUDIO_CODEC_CFG_FREQ_44KHZ, .freq_hz = 44100U}, in ZTEST() 126 {.freq = BT_AUDIO_CODEC_CFG_FREQ_48KHZ, .freq_hz = 48000U}, in ZTEST() 127 {.freq = BT_AUDIO_CODEC_CFG_FREQ_88KHZ, .freq_hz = 88200U}, in ZTEST() [all …]
|
/Zephyr-latest/soc/nxp/kinetis/k8x/ |
D | soc.c | 32 .freq = CONFIG_OSC_XTAL0_FREQ,
|
/Zephyr-latest/include/zephyr/logging/ |
D | log_ctrl.h | 76 uint32_t freq);
|
/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_cc13xx_cc26xx_subg.c | 576 uint16_t freq, fract; in ieee802154_cc13xx_cc26xx_subg_set_channel() local 581 ret = drv_channel_frequency(channel, &freq, &fract); in ieee802154_cc13xx_cc26xx_subg_set_channel() 601 drv_data->cmd_fs.frequency = freq; in ieee802154_cc13xx_cc26xx_subg_set_channel() 935 uint16_t freq, fract; in ieee802154_cc13xx_cc26xx_subg_init() local 960 (void)drv_channel_frequency(0, &freq, &fract); in ieee802154_cc13xx_cc26xx_subg_init() 962 drv_data->cmd_fs.frequency = freq; in ieee802154_cc13xx_cc26xx_subg_init()
|
/Zephyr-latest/drivers/sensor/st/lsm6dso/ |
D | lsm6dso.c | 26 static int lsm6dso_freq_to_odr_val(uint16_t freq) in lsm6dso_freq_to_odr_val() argument 31 if (freq <= lsm6dso_odr_map[i]) { in lsm6dso_freq_to_odr_val() 158 static int lsm6dso_accel_odr_set(const struct device *dev, uint16_t freq) in lsm6dso_accel_odr_set() argument 162 odr = lsm6dso_freq_to_odr_val(freq); in lsm6dso_accel_odr_set() 214 static int lsm6dso_gyro_odr_set(const struct device *dev, uint16_t freq) in lsm6dso_gyro_odr_set() argument 218 odr = lsm6dso_freq_to_odr_val(freq); in lsm6dso_gyro_odr_set()
|
/Zephyr-latest/drivers/sensor/st/lsm6dso16is/ |
D | lsm6dso16is.c | 28 static int lsm6dso16is_freq_to_odr_val(uint16_t freq) in lsm6dso16is_freq_to_odr_val() argument 33 if (freq <= lsm6dso16is_odr_map[i]) { in lsm6dso16is_freq_to_odr_val() 152 static int lsm6dso16is_accel_odr_set(const struct device *dev, uint16_t freq) in lsm6dso16is_accel_odr_set() argument 156 odr = lsm6dso16is_freq_to_odr_val(freq); in lsm6dso16is_accel_odr_set() 223 static int lsm6dso16is_gyro_odr_set(const struct device *dev, uint16_t freq) in lsm6dso16is_gyro_odr_set() argument 227 odr = lsm6dso16is_freq_to_odr_val(freq); in lsm6dso16is_gyro_odr_set()
|
/Zephyr-latest/drivers/pwm/ |
D | pwm_mc_esp32.c | 78 uint32_t freq; member 122 set_duty = (timer_clk_hz / channel->freq) * channel->duty / 100; in mcpwm_esp32_duty_set() 191 __ASSERT_NO_MSG(channel->freq > 0); in mcpwm_esp32_timer_set() 199 mcpwm_ll_timer_set_peak(data->hal.dev, channel->timer_id, timer_clk_hz / channel->freq, in mcpwm_esp32_timer_set() 252 channel->freq = (uint32_t)(clk_freq / period_cycles); in mcpwm_esp32_set_cycles() 253 if (!channel->freq) { in mcpwm_esp32_set_cycles()
|
/Zephyr-latest/soc/nxp/kinetis/kwx/ |
D | soc_kw2xd.c | 36 .freq = CONFIG_OSC_XTAL0_FREQ,
|
/Zephyr-latest/boards/others/neorv32/ |
D | neorv32.dts | 10 #include <freq.h>
|
/Zephyr-latest/include/zephyr/bluetooth/audio/ |
D | audio.h | 830 int bt_audio_codec_cfg_freq_to_freq_hz(enum bt_audio_codec_cfg_freq freq); 865 enum bt_audio_codec_cfg_freq freq); 1557 enum bt_audio_codec_cap_freq freq); 2208 static inline char *bt_audio_codec_cap_freq_bit_to_str(enum bt_audio_codec_cap_freq freq) in bt_audio_codec_cap_freq_bit_to_str() argument 2210 switch (freq) { in bt_audio_codec_cap_freq_bit_to_str()
|