/hal_espressif-3.6.0/components/esp_hw_support/port/esp32/ |
D | rtc_time.c | 114 uint64_t ratio_64 = ((xtal_cycles << RTC_CLK_CAL_FRACT)) / slowclk_cycles; in rtc_clk_cal_ratio() 124 uint64_t period_64 = ((xtal_cycles << RTC_CLK_CAL_FRACT) + divider / 2 - 1) / divider; in rtc_clk_cal() 134 return (time_in_us << RTC_CLK_CAL_FRACT) / period; in rtc_time_us_to_slowclk() 139 return (rtc_cycles * period) >> RTC_CLK_CAL_FRACT; in rtc_time_slowclk_to_us() 175 return 1000000ULL * (1 << RTC_CLK_CAL_FRACT) / cal_val; in rtc_clk_freq_cal()
|
D | rtc_clk_init.c | 153 uint32_t freq_mhz = (cal_val * RTC_FAST_CLK_FREQ_APPROX / MHZ / 256 ) >> RTC_CLK_CAL_FRACT; in rtc_clk_xtal_freq_estimate()
|
/hal_espressif-3.6.0/components/esp_hw_support/port/esp32c3/ |
D | rtc_time.c | 124 uint64_t ratio_64 = ((xtal_cycles << RTC_CLK_CAL_FRACT)) / slowclk_cycles; in rtc_clk_cal_ratio() 134 uint64_t period_64 = ((xtal_cycles << RTC_CLK_CAL_FRACT) + divider / 2 - 1) / divider; in rtc_clk_cal() 144 return (time_in_us << RTC_CLK_CAL_FRACT) / period; in rtc_time_us_to_slowclk() 149 return (rtc_cycles * period) >> RTC_CLK_CAL_FRACT; in rtc_time_slowclk_to_us() 190 return 1000000ULL * (1 << RTC_CLK_CAL_FRACT) / cal_val; in rtc_clk_freq_cal()
|
/hal_espressif-3.6.0/components/esp_hw_support/port/esp32h2/ |
D | rtc_time.c | 116 uint64_t ratio_64 = ((xtal_cycles << RTC_CLK_CAL_FRACT)) / slowclk_cycles; in rtc_clk_cal_ratio() 126 uint64_t period_64 = ((xtal_cycles << RTC_CLK_CAL_FRACT) + divider / 2 - 1) / divider; in rtc_clk_cal() 136 return (time_in_us << RTC_CLK_CAL_FRACT) / period; in rtc_time_us_to_slowclk() 141 return (rtc_cycles * period) >> RTC_CLK_CAL_FRACT; in rtc_time_slowclk_to_us() 182 return 1000000ULL * (1 << RTC_CLK_CAL_FRACT) / cal_val; in rtc_clk_freq_cal()
|
/hal_espressif-3.6.0/components/esp_hw_support/port/esp32s3/ |
D | rtc_time.c | 130 uint64_t ratio_64 = ((xtal_cycles << RTC_CLK_CAL_FRACT)) / slowclk_cycles; in rtc_clk_cal_ratio() 140 uint64_t period_64 = ((xtal_cycles << RTC_CLK_CAL_FRACT) + divider / 2 - 1) / divider; in rtc_clk_cal() 150 return (time_in_us << RTC_CLK_CAL_FRACT) / period; in rtc_time_us_to_slowclk() 155 return (rtc_cycles * period) >> RTC_CLK_CAL_FRACT; in rtc_time_slowclk_to_us() 196 return 1000000ULL * (1 << RTC_CLK_CAL_FRACT) / cal_val; in rtc_clk_freq_cal()
|
/hal_espressif-3.6.0/components/esp_hw_support/port/esp32s2/ |
D | rtc_time.c | 133 uint64_t period_64 = ((xtal_cycles << RTC_CLK_CAL_FRACT) + divider / 2 - 1) / divider; in rtc_clk_xtal_to_slowclk() 193 uint64_t ratio_64 = ((xtal_cycles << RTC_CLK_CAL_FRACT)) / slowclk_cycles; in rtc_clk_cal_ratio() 217 return (time_in_us << RTC_CLK_CAL_FRACT) / period; in rtc_time_us_to_slowclk() 222 return (rtc_cycles * period) >> RTC_CLK_CAL_FRACT; in rtc_time_slowclk_to_us() 263 return 1000000ULL * (1 << RTC_CLK_CAL_FRACT) / cal_val; in rtc_clk_freq_cal()
|
/hal_espressif-3.6.0/components/esp_hw_support/ |
D | esp_clk.c | 123 const uint64_t delta_time_us = ((ticks_low * cal) >> RTC_CLK_CAL_FRACT) + in esp_rtc_get_time_us() 124 ((ticks_high * cal) << (32 - RTC_CLK_CAL_FRACT)); in esp_rtc_get_time_us()
|
/hal_espressif-3.6.0/components/bt/controller/esp32c3/ |
D | bt.c | 1043 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init() 1077 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init() 1083 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init() 1084 btdm_lpcycle_us = (RTC_CLK_CAL_FRACT > 15) ? (1000000 << (RTC_CLK_CAL_FRACT - 15)) : in esp_bt_controller_init() 1085 (1000000 >> (15 - RTC_CLK_CAL_FRACT)); in esp_bt_controller_init() 1091 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init()
|
/hal_espressif-3.6.0/components/bt/controller/esp32s3/ |
D | bt.c | 1010 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init() 1044 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init() 1050 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init() 1051 btdm_lpcycle_us = (RTC_CLK_CAL_FRACT > 15) ? (1000000 << (RTC_CLK_CAL_FRACT - 15)) : in esp_bt_controller_init() 1052 (1000000 >> (15 - RTC_CLK_CAL_FRACT)); in esp_bt_controller_init() 1058 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init()
|
/hal_espressif-3.6.0/zephyr/esp32c3/src/bt/ |
D | esp_bt_adapter.c | 1090 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init() 1124 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init() 1130 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init() 1131 btdm_lpcycle_us = (RTC_CLK_CAL_FRACT > 15) ? (1000000 << (RTC_CLK_CAL_FRACT - 15)) : in esp_bt_controller_init() 1132 (1000000 >> (15 - RTC_CLK_CAL_FRACT)); in esp_bt_controller_init() 1138 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init()
|
/hal_espressif-3.6.0/zephyr/esp32s3/src/bt/ |
D | esp_bt_adapter.c | 1081 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init() 1115 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init() 1121 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init() 1122 btdm_lpcycle_us = (RTC_CLK_CAL_FRACT > 15) ? (1000000 << (RTC_CLK_CAL_FRACT - 15)) : in esp_bt_controller_init() 1123 (1000000 >> (15 - RTC_CLK_CAL_FRACT)); in esp_bt_controller_init() 1129 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init()
|
/hal_espressif-3.6.0/zephyr/esp32/src/bt/ |
D | esp_bt_adapter.c | 1042 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init() 1066 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init() 1072 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init() 1073 btdm_lpcycle_us = (RTC_CLK_CAL_FRACT > 15) ? (1000000 << (RTC_CLK_CAL_FRACT - 15)) : in esp_bt_controller_init() 1074 (1000000 >> (15 - RTC_CLK_CAL_FRACT)); in esp_bt_controller_init()
|
/hal_espressif-3.6.0/zephyr/esp32s3/src/wifi/ |
D | esp_wifi_adapter.c | 501 …return (((time_per_us << RTC_CLK_CAL_FRACT) / 1000000) >> (RTC_CLK_CAL_FRACT - SOC_WIFI_LIGHT_SLEE… in esp_clk_slowclk_cal_get_wrapper() 503 return (esp_clk_slowclk_cal_get() >> (RTC_CLK_CAL_FRACT - SOC_WIFI_LIGHT_SLEEP_CLK_WIDTH)); in esp_clk_slowclk_cal_get_wrapper()
|
/hal_espressif-3.6.0/components/bt/controller/esp32/ |
D | bt.c | 1641 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init() 1669 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init() 1675 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init() 1676 btdm_lpcycle_us = (RTC_CLK_CAL_FRACT > 15) ? (1000000 << (RTC_CLK_CAL_FRACT - 15)) : in esp_bt_controller_init() 1677 (1000000 >> (15 - RTC_CLK_CAL_FRACT)); in esp_bt_controller_init()
|
/hal_espressif-3.6.0/components/ulp/ |
D | ulp.c | 145 uint64_t period_cycles = (period_us_64 << RTC_CLK_CAL_FRACT) / esp_clk_slowclk_cal_get(); in ulp_set_wakeup_period()
|
/hal_espressif-3.6.0/components/esp_system/port/soc/esp32h2/ |
D | clk.c | 179 const uint64_t cal_dividend = (1ULL << RTC_CLK_CAL_FRACT) * 1000000ULL; in select_rtc_slow_clk()
|
/hal_espressif-3.6.0/components/esp_system/port/soc/esp32/ |
D | clk.c | 113 const uint64_t cal_dividend = (1ULL << RTC_CLK_CAL_FRACT) * 1000000ULL; in select_rtc_slow_clk()
|
/hal_espressif-3.6.0/components/esp_system/port/soc/esp32c3/ |
D | clk.c | 188 const uint64_t cal_dividend = (1ULL << RTC_CLK_CAL_FRACT) * 1000000ULL; in select_rtc_slow_clk()
|
/hal_espressif-3.6.0/components/esp_system/port/soc/esp32s3/ |
D | clk.c | 191 const uint64_t cal_dividend = (1ULL << RTC_CLK_CAL_FRACT) * 1000000ULL; in select_rtc_slow_clk()
|
/hal_espressif-3.6.0/components/esp_system/port/soc/esp32s2/ |
D | clk.c | 194 const uint64_t cal_dividend = (1ULL << RTC_CLK_CAL_FRACT) * 1000000ULL; in select_rtc_slow_clk()
|
/hal_espressif-3.6.0/components/soc/esp32/include/soc/ |
D | rtc.h | 396 #define RTC_CLK_CAL_FRACT 19 //!< Number of fractional bits in values returned by rtc_clk_cal macro
|
/hal_espressif-3.6.0/components/esp_hw_support/test/ |
D | test_rtc_clk.c | 163 uint32_t rtc_fast_freq_hz = 1000000ULL * (1 << RTC_CLK_CAL_FRACT) * 256 / rtc_8md256_period;
|
/hal_espressif-3.6.0/components/soc/esp32c3/include/soc/ |
D | rtc.h | 195 #define RTC_CLK_CAL_FRACT 19 //!< Number of fractional bits in values returned by rtc_clk_cal macro
|
/hal_espressif-3.6.0/components/soc/esp32s2/include/soc/ |
D | rtc.h | 212 #define RTC_CLK_CAL_FRACT 19 //!< Number of fractional bits in values returned by rtc_clk_cal macro
|
/hal_espressif-3.6.0/components/soc/esp32s3/include/soc/ |
D | rtc.h | 217 #define RTC_CLK_CAL_FRACT 19 //!< Number of fractional bits in values returned by rtc_clk_cal macro
|