Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/platform/stm32/
Drtc.c27 #ifndef NS_PER_S
28 #define NS_PER_S UINT64_C(1000000000) macro
173 } else if (delay > (NS_PER_S * 2 * RTC_WKUP_DOWNCOUNT_MAX)) { in rtcSetWakeupTimer()
174 delay = NS_PER_S * 2 * RTC_WKUP_DOWNCOUNT_MAX; in rtcSetWakeupTimer()
204 if (RTC_VALID_DELAY_FOR_PERIOD(delay, NS_PER_S)) in rtcSetWakeupTimer()
208 periodNs = NS_PER_S; in rtcSetWakeupTimer()
209 periodNsRecip = U64_RECIPROCAL_CALCULATE(NS_PER_S); in rtcSetWakeupTimer()
279 …return (time_s * NS_PER_S) + U64_DIV_BY_CONST_U16(((RTC_PREDIV_S - ssr) * NS_PER_S), (RTC_PREDIV_S… in rtcGetTime()
/device/google/cuttlefish/guest/hals/ril/reference-ril/
Datchannel.c89 #define NS_PER_S 1000000000 macro
99 if (p_ts->tv_nsec >= NS_PER_S) { in setTimespecRelative()
101 p_ts->tv_nsec -= NS_PER_S; in setTimespecRelative()