/hal_espressif-3.7.0/components/bootloader_support/src/ |
D | bootloader_clock_init.c | 37 int cpu_freq_mhz = CPU_CLK_FREQ_MHZ_BTLD; in bootloader_clock_configure() local 47 cpu_freq_mhz = 240; in bootloader_clock_configure() 54 clk_cfg.cpu_freq_mhz = cpu_freq_mhz; in bootloader_clock_configure()
|
/hal_espressif-3.7.0/components/hal/esp32s3/ |
D | clk_tree_hal.c | 38 uint32_t cpu_freq_mhz = clk_ll_cpu_get_freq_mhz_from_pll(); in clk_hal_cpu_get_freq_hz() local 39 if (pll_freq_mhz == CLK_LL_PLL_320M_FREQ_MHZ && cpu_freq_mhz == CLK_LL_PLL_240M_FREQ_MHZ) { in clk_hal_cpu_get_freq_hz() 43 return cpu_freq_mhz * MHZ; in clk_hal_cpu_get_freq_hz()
|
/hal_espressif-3.7.0/components/esp_hw_support/port/esp32s3/ |
D | rtc_clk.c | 186 static void rtc_clk_cpu_freq_to_pll_mhz(int cpu_freq_mhz) in rtc_clk_cpu_freq_to_pll_mhz() argument 191 if (cpu_freq_mhz != 240) { in rtc_clk_cpu_freq_to_pll_mhz() 207 int pd_slave = cpu_freq_mhz / 80; in rtc_clk_cpu_freq_to_pll_mhz() 210 if (cpu_freq_mhz > cur_config.freq_mhz) { in rtc_clk_cpu_freq_to_pll_mhz() 212 clk_ll_cpu_set_freq_mhz_from_pll(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz() 217 esp_rom_set_cpu_ticks_per_us(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz() 219 clk_ll_cpu_set_freq_mhz_from_pll(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz() 224 esp_rom_set_cpu_ticks_per_us(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz()
|
D | rtc_clk_init.c | 56 bool res = rtc_clk_cpu_freq_mhz_to_config(cfg.cpu_freq_mhz, &new_config); in rtc_clk_init() 64 esp_cpu_set_cycle_count( (uint64_t)esp_cpu_get_cycle_count() * cfg.cpu_freq_mhz / freq_before ); in rtc_clk_init()
|
/hal_espressif-3.7.0/components/hal/esp32s2/ |
D | clk_tree_hal.c | 39 uint32_t cpu_freq_mhz = clk_ll_cpu_get_freq_mhz_from_pll(); in clk_hal_cpu_get_freq_hz() local 40 if (pll_freq_mhz == CLK_LL_PLL_320M_FREQ_MHZ && cpu_freq_mhz == CLK_LL_PLL_240M_FREQ_MHZ) { in clk_hal_cpu_get_freq_hz() 44 return cpu_freq_mhz * MHZ; in clk_hal_cpu_get_freq_hz()
|
/hal_espressif-3.7.0/components/esp_hw_support/port/esp32c6/ |
D | rtc_clk.c | 187 static void rtc_clk_cpu_freq_to_pll_mhz(int cpu_freq_mhz) in rtc_clk_cpu_freq_to_pll_mhz() argument 189 clk_ll_cpu_set_hs_divider(CLK_LL_PLL_480M_FREQ_MHZ / cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz() 191 esp_rom_set_cpu_ticks_per_us(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz() 331 void rtc_clk_cpu_freq_to_pll_and_pll_lock_release(int cpu_freq_mhz) in rtc_clk_cpu_freq_to_pll_and_pll_lock_release() argument 333 rtc_clk_cpu_freq_to_pll_mhz(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_and_pll_lock_release()
|
D | rtc_clk_init.c | 90 bool res = rtc_clk_cpu_freq_mhz_to_config(cfg.cpu_freq_mhz, &new_config); in rtc_clk_init() 98 esp_cpu_set_cycle_count( (uint64_t)esp_cpu_get_cycle_count() * cfg.cpu_freq_mhz / freq_before ); in rtc_clk_init()
|
/hal_espressif-3.7.0/components/esp_hw_support/port/esp32c2/ |
D | rtc_clk_init.c | 58 bool res = rtc_clk_cpu_freq_mhz_to_config(cfg.cpu_freq_mhz, &new_config); in rtc_clk_init() 66 esp_cpu_set_cycle_count( (uint64_t)esp_cpu_get_cycle_count() * cfg.cpu_freq_mhz / freq_before ); in rtc_clk_init()
|
D | rtc_clk.c | 142 static void rtc_clk_cpu_freq_to_pll_mhz(int cpu_freq_mhz) in rtc_clk_cpu_freq_to_pll_mhz() argument 144 clk_ll_cpu_set_freq_mhz_from_pll(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz() 149 esp_rom_set_cpu_ticks_per_us(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz()
|
/hal_espressif-3.7.0/components/esp_hw_support/port/esp32h2/ |
D | rtc_clk_init.c | 52 bool res = rtc_clk_cpu_freq_mhz_to_config(cfg.cpu_freq_mhz, &new_config); in rtc_clk_init() 60 esp_cpu_set_cycle_count( (uint64_t)esp_cpu_get_cycle_count() * cfg.cpu_freq_mhz / freq_before ); in rtc_clk_init()
|
D | rtc_clk.c | 203 static void rtc_clk_cpu_freq_to_pll_mhz(int cpu_freq_mhz) in rtc_clk_cpu_freq_to_pll_mhz() argument 206 uint32_t cpu_divider = CLK_LL_PLL_96M_FREQ_MHZ / cpu_freq_mhz; in rtc_clk_cpu_freq_to_pll_mhz() 214 esp_rom_set_cpu_ticks_per_us(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz() 222 static void rtc_clk_cpu_freq_to_flash_pll(uint32_t cpu_freq_mhz, uint32_t cpu_divider) in rtc_clk_cpu_freq_to_flash_pll() argument 231 esp_rom_set_cpu_ticks_per_us(cpu_freq_mhz); in rtc_clk_cpu_freq_to_flash_pll()
|
/hal_espressif-3.7.0/components/esp_hw_support/port/esp32c3/ |
D | rtc_clk_init.c | 59 bool res = rtc_clk_cpu_freq_mhz_to_config(cfg.cpu_freq_mhz, &new_config); in rtc_clk_init() 67 esp_cpu_set_cycle_count( (uint64_t)esp_cpu_get_cycle_count() * cfg.cpu_freq_mhz / freq_before ); in rtc_clk_init()
|
D | rtc_clk.c | 166 static void rtc_clk_cpu_freq_to_pll_mhz(int cpu_freq_mhz) in rtc_clk_cpu_freq_to_pll_mhz() argument 168 clk_ll_cpu_set_freq_mhz_from_pll(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz() 172 esp_rom_set_cpu_ticks_per_us(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz()
|
/hal_espressif-3.7.0/components/esp_hw_support/port/esp32s2/ |
D | rtc_clk_init.c | 58 bool res = rtc_clk_cpu_freq_mhz_to_config(cfg.cpu_freq_mhz, &new_config); in rtc_clk_init() 66 esp_cpu_set_cycle_count( (uint64_t)esp_cpu_get_cycle_count() * cfg.cpu_freq_mhz / freq_before ); in rtc_clk_init()
|
D | rtc_clk.c | 257 static void rtc_clk_cpu_freq_to_pll_mhz(int cpu_freq_mhz) in rtc_clk_cpu_freq_to_pll_mhz() argument 259 int dbias = (cpu_freq_mhz == 240) ? DIG_DBIAS_240M : DIG_DBIAS_80M_160M; in rtc_clk_cpu_freq_to_pll_mhz() 260 clk_ll_cpu_set_freq_mhz_from_pll(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz() 265 esp_rom_set_cpu_ticks_per_us(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz()
|
/hal_espressif-3.7.0/components/esp_hw_support/port/esp32/ |
D | rtc_clk.c | 33 static void rtc_clk_cpu_freq_to_pll_mhz(int cpu_freq_mhz); 386 static void rtc_clk_cpu_freq_to_pll_mhz(int cpu_freq_mhz) in rtc_clk_cpu_freq_to_pll_mhz() argument 388 int dbias = (cpu_freq_mhz == 240) ? DIG_DBIAS_240M : DIG_DBIAS_80M_160M; in rtc_clk_cpu_freq_to_pll_mhz() 389 clk_ll_cpu_set_freq_mhz_from_pll(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz() 392 clk_ll_ref_tick_set_divider(SOC_CPU_CLK_SRC_PLL, cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz() 396 esp_rom_set_cpu_ticks_per_us(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz()
|
D | rtc_clk_init.c | 110 bool res = rtc_clk_cpu_freq_mhz_to_config(cfg.cpu_freq_mhz, &new_config); in rtc_clk_init() 124 esp_cpu_set_cycle_count( (uint64_t)esp_cpu_get_cycle_count() * cfg.cpu_freq_mhz / freq_before ); in rtc_clk_init()
|
/hal_espressif-3.7.0/components/soc/esp32c6/include/soc/ |
D | rtc.h | 173 uint32_t cpu_freq_mhz : 10; //!< CPU frequency to set, in MHz member 188 .cpu_freq_mhz = 80, \ 385 void rtc_clk_cpu_freq_to_pll_and_pll_lock_release(int cpu_freq_mhz);
|
/hal_espressif-3.7.0/components/esp_hw_support/test_apps/esp_hw_support_unity_tests/main/ |
D | test_dport.c | 127 void run_tasks_with_change_freq_cpu(int cpu_freq_mhz) in run_tasks_with_change_freq_cpu() argument 138 if (cpu_freq_mhz != old_config.freq_mhz) { in run_tasks_with_change_freq_cpu() 140 bool res = rtc_clk_cpu_freq_mhz_to_config(cpu_freq_mhz, &new_config); in run_tasks_with_change_freq_cpu() 151 _xt_tick_divisor = cpu_freq_mhz * 1000000 / XT_TICK_PER_SEC; in run_tasks_with_change_freq_cpu() 154 printf("CPU_FREQ switched to %d MHz\n", cpu_freq_mhz); in run_tasks_with_change_freq_cpu()
|
/hal_espressif-3.7.0/components/soc/esp32h2/include/soc/ |
D | rtc.h | 177 uint32_t cpu_freq_mhz : 10; //!< CPU frequency to set, in MHz member 192 .cpu_freq_mhz = 96, \
|
/hal_espressif-3.7.0/components/hal/esp32/include/hal/ |
D | clk_tree_ll.h | 668 …ays_inline)) void clk_ll_ref_tick_set_divider(soc_cpu_clk_src_t cpu_clk_src, uint32_t cpu_freq_mhz) in clk_ll_ref_tick_set_divider() argument 673 apb_freq_mhz = cpu_freq_mhz; in clk_ll_ref_tick_set_divider() 681 apb_freq_mhz = cpu_freq_mhz; in clk_ll_ref_tick_set_divider() 685 apb_freq_mhz = cpu_freq_mhz >> 1; in clk_ll_ref_tick_set_divider()
|
/hal_espressif-3.7.0/components/bt/include/esp32c6/include/ |
D | esp_bt.h | 204 uint8_t cpu_freq_mhz; member 259 .cpu_freq_mhz = CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ, \
|
/hal_espressif-3.7.0/components/bt/include/esp32h2/include/ |
D | esp_bt.h | 209 uint8_t cpu_freq_mhz; member 263 .cpu_freq_mhz = CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ, \
|
/hal_espressif-3.7.0/components/soc/esp32/include/soc/ |
D | rtc.h | 112 uint32_t cpu_freq_mhz : 10; //!< CPU frequency to set, in MHz member 125 .cpu_freq_mhz = 80, \
|
/hal_espressif-3.7.0/components/soc/esp32c2/include/soc/ |
D | rtc.h | 181 uint32_t cpu_freq_mhz : 10; //!< CPU frequency to set, in MHz member 195 .cpu_freq_mhz = 80, \
|