Home
last modified time | relevance | path

Searched refs:period_ppb (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/drivers/rtc/
Drtc_pcf8523.c720 int32_t period_ppb = freq_ppb * -1; in pcf8523_set_calibration() local
723 if (period_ppb < PCF8523_OFFSET_PPB_MIN || period_ppb > PCF8523_OFFSET_PPB_MAX) { in pcf8523_set_calibration()
728 offset = period_ppb / PCF8523_OFFSET_PPB_PER_LSB; in pcf8523_set_calibration()
734 LOG_DBG("freq_ppb = %d, period_ppb = %d, offset = %d", freq_ppb, period_ppb, offset); in pcf8523_set_calibration()
741 int32_t period_ppb; in pcf8523_get_calibration() local
751 period_ppb = (offset << 1U) >> 1U; in pcf8523_get_calibration()
753 period_ppb = period_ppb * PCF8523_OFFSET_PPB_PER_LSB; in pcf8523_get_calibration()
754 *freq_ppb = period_ppb * -1; in pcf8523_get_calibration()
756 LOG_DBG("freq_ppb = %d, period_ppb = %d, offset = %d", *freq_ppb, period_ppb, offset); in pcf8523_get_calibration()