Home
last modified time | relevance | path

Searched refs:RTC_CLK_CAL_FRACT (Results 1 – 25 of 35) sorted by relevance

12

/hal_espressif-3.4.0/components/esp_hw_support/port/esp32/
Drtc_time.c114 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()
Drtc_clk_init.c153 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.4.0/components/esp_hw_support/port/esp32c3/
Drtc_time.c124 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.4.0/components/esp_hw_support/port/esp32h2/
Drtc_time.c116 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.4.0/components/esp_hw_support/port/esp32s3/
Drtc_time.c130 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.4.0/components/esp_hw_support/port/esp32s2/
Drtc_time.c133 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.4.0/components/esp_hw_support/
Desp_clk.c123 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.4.0/components/bt/controller/esp32c3/
Dbt.c1043 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.4.0/components/bt/controller/esp32s3/
Dbt.c1010 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.4.0/zephyr/esp32c3/src/bt/
Desp_bt_adapter.c1086 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init()
1120 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init()
1126 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init()
1127 btdm_lpcycle_us = (RTC_CLK_CAL_FRACT > 15) ? (1000000 << (RTC_CLK_CAL_FRACT - 15)) : in esp_bt_controller_init()
1128 (1000000 >> (15 - RTC_CLK_CAL_FRACT)); in esp_bt_controller_init()
1134 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init()
/hal_espressif-3.4.0/zephyr/esp32s3/src/bt/
Desp_bt_adapter.c1077 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init()
1111 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init()
1117 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init()
1118 btdm_lpcycle_us = (RTC_CLK_CAL_FRACT > 15) ? (1000000 << (RTC_CLK_CAL_FRACT - 15)) : in esp_bt_controller_init()
1119 (1000000 >> (15 - RTC_CLK_CAL_FRACT)); in esp_bt_controller_init()
1125 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init()
/hal_espressif-3.4.0/zephyr/esp32/src/bt/
Desp_bt_adapter.c1038 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init()
1062 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init()
1068 btdm_lpcycle_us_frac = RTC_CLK_CAL_FRACT; in esp_bt_controller_init()
1069 btdm_lpcycle_us = (RTC_CLK_CAL_FRACT > 15) ? (1000000 << (RTC_CLK_CAL_FRACT - 15)) : in esp_bt_controller_init()
1070 (1000000 >> (15 - RTC_CLK_CAL_FRACT)); in esp_bt_controller_init()
/hal_espressif-3.4.0/zephyr/esp32s3/src/wifi/
Desp_wifi_adapter.c490 …return (((time_per_us << RTC_CLK_CAL_FRACT) / 1000000) >> (RTC_CLK_CAL_FRACT - SOC_WIFI_LIGHT_SLEE… in esp_clk_slowclk_cal_get_wrapper()
492 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.4.0/components/bt/controller/esp32/
Dbt.c1641 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.4.0/components/ulp/
Dulp.c145 uint64_t period_cycles = (period_us_64 << RTC_CLK_CAL_FRACT) / esp_clk_slowclk_cal_get(); in ulp_set_wakeup_period()
/hal_espressif-3.4.0/components/esp_system/port/soc/esp32h2/
Dclk.c179 const uint64_t cal_dividend = (1ULL << RTC_CLK_CAL_FRACT) * 1000000ULL; in select_rtc_slow_clk()
/hal_espressif-3.4.0/components/esp_system/port/soc/esp32/
Dclk.c113 const uint64_t cal_dividend = (1ULL << RTC_CLK_CAL_FRACT) * 1000000ULL; in select_rtc_slow_clk()
/hal_espressif-3.4.0/components/esp_system/port/soc/esp32c3/
Dclk.c188 const uint64_t cal_dividend = (1ULL << RTC_CLK_CAL_FRACT) * 1000000ULL; in select_rtc_slow_clk()
/hal_espressif-3.4.0/components/esp_system/port/soc/esp32s2/
Dclk.c194 const uint64_t cal_dividend = (1ULL << RTC_CLK_CAL_FRACT) * 1000000ULL; in select_rtc_slow_clk()
/hal_espressif-3.4.0/components/esp_system/port/soc/esp32s3/
Dclk.c191 const uint64_t cal_dividend = (1ULL << RTC_CLK_CAL_FRACT) * 1000000ULL; in select_rtc_slow_clk()
/hal_espressif-3.4.0/components/soc/esp32/include/soc/
Drtc.h396 #define RTC_CLK_CAL_FRACT 19 //!< Number of fractional bits in values returned by rtc_clk_cal macro
/hal_espressif-3.4.0/components/esp_hw_support/test/
Dtest_rtc_clk.c163 uint32_t rtc_fast_freq_hz = 1000000ULL * (1 << RTC_CLK_CAL_FRACT) * 256 / rtc_8md256_period;
/hal_espressif-3.4.0/components/soc/esp32s2/include/soc/
Drtc.h212 #define RTC_CLK_CAL_FRACT 19 //!< Number of fractional bits in values returned by rtc_clk_cal macro
/hal_espressif-3.4.0/components/soc/esp32c3/include/soc/
Drtc.h195 #define RTC_CLK_CAL_FRACT 19 //!< Number of fractional bits in values returned by rtc_clk_cal macro
/hal_espressif-3.4.0/components/soc/esp32s3/include/soc/
Drtc.h195 #define RTC_CLK_CAL_FRACT 19 //!< Number of fractional bits in values returned by rtc_clk_cal macro

12