/** * @brief Get current time. * * @param[in] rtcp pointer to RTC driver structure * @param[out] timespec pointer to a @p RTCTime structure * * @api */ void rtcGetTime(RTCDriver *rtcp, RTCTime *timespec) { chDbgCheck((rtcp != NULL) && (timespec != NULL), "rtcGetTime"); chSysLock(); rtcGetTimeI(rtcp, timespec); chSysUnlock(); }
/** * @brief Get current time. * * @param[in] rtcp pointer to RTC driver structure * @param[out] timespec pointer to a @p RTCDateTime structure * * @api */ void rtcGetTime(RTCDriver *rtcp, RTCDateTime *timespec) { osalDbgCheck((rtcp != NULL) && (timespec != NULL)); osalSysLock(); rtcGetTimeI(rtcp, timespec); osalSysUnlock(); }