Home
last modified time | relevance | path

Searched refs:MHZ (Results 1 – 25 of 30) sorted by relevance

12

/hal_espressif-3.5.0/components/esp_hw_support/
Desp_clk.c41 #define MHZ (1000000) macro
67 return MHZ(s_get_cpu_freq_mhz()); in esp_clk_cpu_freq()
69 return s_get_cpu_freq_mhz() * MHZ; in esp_clk_cpu_freq()
76 return MHZ(MIN(s_get_cpu_freq_mhz(), 80)); in esp_clk_apb_freq()
78 return MIN(s_get_cpu_freq_mhz(), 80) * MHZ; in esp_clk_apb_freq()
85 return MHZ(rtc_clk_xtal_freq_get()); in esp_clk_xtal_freq()
87 return rtc_clk_xtal_freq_get() * MHZ; in esp_clk_xtal_freq()
/hal_espressif-3.5.0/components/esp_hw_support/port/esp32/
Drtc_clk_init.c24 #undef MHZ
25 #define MHZ (1000000) macro
103 rtc_clk_apb_freq_update(xtal_freq * MHZ); in rtc_clk_init()
119 …REG_WRITE(SYSCON_PLL_TICK_CONF_REG, APB_CLK_FREQ / MHZ - 1); /* Under PLL, APB frequency is always… in rtc_clk_init()
153 uint32_t freq_mhz = (cal_val * RTC_FAST_CLK_FREQ_APPROX / MHZ / 256 ) >> RTC_CLK_CAL_FRACT; in rtc_clk_xtal_freq_estimate()
Drtc_clk_common.h12 #undef MHZ
13 #define MHZ (1000000) macro
Drtc_clk.c460 REG_WRITE(SYSCON_XTAL_TICK_CONF_REG, freq * MHZ / REF_CLK_FREQ - 1); in rtc_clk_cpu_freq_to_xtal()
463 rtc_clk_apb_freq_update(freq * MHZ); in rtc_clk_cpu_freq_to_xtal()
533 rtc_clk_apb_freq_update(80 * MHZ); in rtc_clk_cpu_freq_to_pll_mhz()
764 return CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ * MHZ; in rtc_clk_apb_freq_get()
768 freq_hz += MHZ / 2; in rtc_clk_apb_freq_get()
769 uint32_t remainder = freq_hz % MHZ; in rtc_clk_apb_freq_get()
Drtc_sleep.c23 #define MHZ (1000000) macro
/hal_espressif-3.5.0/components/esp32s3/
Dclk.c27 return MHZ(g_ticks_per_us_pro); in esp_clk_cpu_freq()
32 return MHZ(MIN(g_ticks_per_us_pro, 80)); in esp_clk_apb_freq()
37 return MHZ(rtc_clk_xtal_freq_get()); in esp_clk_xtal_freq()
/hal_espressif-3.5.0/components/esp_pm/test/
Dtest_pm.c61 while (esp_clk_cpu_freq() / MHZ != mhz) {
63 printf("Frequency is %d MHz\n", esp_clk_cpu_freq() / MHZ);
76 int orig_freq_mhz = esp_clk_cpu_freq() / MHZ;
89 int cur_freq_mhz = esp_clk_cpu_freq() / MHZ;
112 int cur_freq_mhz = esp_clk_cpu_freq() / MHZ;
/hal_espressif-3.5.0/components/esp_hw_support/port/esp32c3/
Drtc_clk_common.h9 #undef MHZ
10 #define MHZ (1000000) macro
Drtc_clk.c287 rtc_clk_apb_freq_update(80 * MHZ); in rtc_clk_cpu_freq_to_pll_mhz()
443 rtc_clk_apb_freq_update(freq * MHZ); in rtc_clk_cpu_freq_to_xtal()
478 freq_hz += MHZ / 2; in rtc_clk_apb_freq_get()
479 uint32_t remainder = freq_hz % MHZ; in rtc_clk_apb_freq_get()
Drtc_clk_init.c54 rtc_clk_apb_freq_update(xtal_freq * MHZ); in rtc_clk_init()
Drtc_time.c92 uint32_t us_time_estimate = (uint32_t) (((uint64_t) slowclk_cycles) * MHZ / expected_freq); in rtc_clk_cal_internal()
/hal_espressif-3.5.0/components/esp_hw_support/port/esp32s3/
Drtc_clk_common.h12 #undef MHZ
13 #define MHZ (1000000) macro
Drtc_clk_init.c51 rtc_clk_apb_freq_update(xtal_freq * MHZ); in rtc_clk_init()
Drtc_clk.c314 rtc_clk_apb_freq_update(80 * MHZ); in rtc_clk_cpu_freq_to_pll_mhz()
486 rtc_clk_apb_freq_update(freq * MHZ); in rtc_clk_cpu_freq_to_xtal()
/hal_espressif-3.5.0/components/esp_hw_support/port/esp32s2/
Drtc_clk_common.h23 #undef MHZ
24 #define MHZ (1000000) macro
Drtc_clk_init.c24 #define MHZ (1000000) macro
55 rtc_clk_apb_freq_update(xtal_freq * MHZ); in rtc_clk_init()
Drtc_clk.c32 #define MHZ (1000000) macro
294 rtc_clk_apb_freq_update(80 * MHZ); in rtc_clk_cpu_freq_to_pll_mhz()
452 rtc_clk_apb_freq_update(freq * MHZ); in rtc_clk_cpu_freq_to_xtal()
485 freq_hz += MHZ / 2; in rtc_clk_apb_freq_get()
486 uint32_t remainder = freq_hz % MHZ; in rtc_clk_apb_freq_get()
/hal_espressif-3.5.0/components/soc/src/esp32/
Drtc_clk.c425 REG_WRITE(APB_CTRL_XTAL_TICK_CONF_REG, freq * MHZ / REF_CLK_FREQ - 1); in rtc_clk_cpu_freq_to_xtal()
428 rtc_clk_apb_freq_update(freq * MHZ); in rtc_clk_cpu_freq_to_xtal()
498 rtc_clk_apb_freq_update(80 * MHZ); in rtc_clk_cpu_freq_to_pll_mhz()
730 freq_hz += MHZ / 2; in rtc_clk_apb_freq_get()
731 uint32_t remainder = freq_hz % MHZ; in rtc_clk_apb_freq_get()
/hal_espressif-3.5.0/components/esp_pm/
Dpm_impl.c61 #define MHZ (1000000) macro
254 if (min_freq_mhz < xtal_freq_mhz && min_freq_mhz * MHZ / REF_CLK_FREQ < REF_CLK_DIV_MIN) { in esp_pm_configure()
255 ESP_LOGW(TAG, "min_freq_mhz should be >= %d", REF_CLK_FREQ * REF_CLK_DIV_MIN / MHZ); in esp_pm_configure()
421 _xt_tick_divisor = ticks_per_us * MHZ / XT_TICK_PER_SEC; in on_freq_update()
/hal_espressif-3.5.0/components/esp_hw_support/port/esp32h2/
Drtc_clk_common.h9 #define MHZ (1000000) macro
Drtc_clk_init.c61 rtc_clk_apb_freq_update(rtc_clk_apb_freq_get() * MHZ); in rtc_clk_init()
Drtc_time.c88 uint32_t us_time_estimate = (uint32_t) (((uint64_t) slowclk_cycles) * MHZ / expected_freq); in rtc_clk_cal_internal()
/hal_espressif-3.5.0/zephyr/esp_shared/components/esp_pm/
Dpm_impl.c246 if (min_freq_mhz < xtal_freq_mhz && MHZ(min_freq_mhz) / REF_CLK_FREQ < REF_CLK_DIV_MIN) { in esp_pm_configure()
247 ESP_LOGW(TAG, "min_freq_mhz should be >= %d", REF_CLK_FREQ * REF_CLK_DIV_MIN / MHZ(1)); in esp_pm_configure()
412 _xt_tick_divisor = MHZ(ticks_per_us) / XT_TICK_PER_SEC; in on_freq_update()
/hal_espressif-3.5.0/components/esp_system/port/soc/esp32h2/
Dclk.c38 #define MHZ (1000000) macro
/hal_espressif-3.5.0/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/
DREADME.md24 4. Should change the CPU frequency to 160 MHZ or 240 MHz in the `idf.py menuconfig` and `Component…

12