/hal_espressif-3.5.0/components/esp_hw_support/ |
D | esp_clk.c | 41 #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/ |
D | rtc_clk_init.c | 24 #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()
|
D | rtc_clk_common.h | 12 #undef MHZ 13 #define MHZ (1000000) macro
|
D | rtc_clk.c | 460 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()
|
D | rtc_sleep.c | 23 #define MHZ (1000000) macro
|
/hal_espressif-3.5.0/components/esp32s3/ |
D | clk.c | 27 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/ |
D | test_pm.c | 61 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/ |
D | rtc_clk_common.h | 9 #undef MHZ 10 #define MHZ (1000000) macro
|
D | rtc_clk.c | 287 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()
|
D | rtc_clk_init.c | 54 rtc_clk_apb_freq_update(xtal_freq * MHZ); in rtc_clk_init()
|
D | rtc_time.c | 92 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/ |
D | rtc_clk_common.h | 12 #undef MHZ 13 #define MHZ (1000000) macro
|
D | rtc_clk_init.c | 51 rtc_clk_apb_freq_update(xtal_freq * MHZ); in rtc_clk_init()
|
D | rtc_clk.c | 314 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/ |
D | rtc_clk_common.h | 23 #undef MHZ 24 #define MHZ (1000000) macro
|
D | rtc_clk_init.c | 24 #define MHZ (1000000) macro 55 rtc_clk_apb_freq_update(xtal_freq * MHZ); in rtc_clk_init()
|
D | rtc_clk.c | 32 #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/ |
D | rtc_clk.c | 425 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/ |
D | pm_impl.c | 61 #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/ |
D | rtc_clk_common.h | 9 #define MHZ (1000000) macro
|
D | rtc_clk_init.c | 61 rtc_clk_apb_freq_update(rtc_clk_apb_freq_get() * MHZ); in rtc_clk_init()
|
D | rtc_time.c | 88 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/ |
D | pm_impl.c | 246 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/ |
D | clk.c | 38 #define MHZ (1000000) macro
|
/hal_espressif-3.5.0/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/ |
D | README.md | 24 4. Should change the CPU frequency to 160 MHZ or 240 MHz in the `idf.py menuconfig` and `Component…
|