/** * @brief Enables or disables RTC callbacks. * @details This function enables or disables the callback, use a @p NULL * pointer in order to disable it. * @note This function can be called from any context but limitations * could be imposed by the low level implementation. It is * guaranteed that the function can be called from thread * context. * @note The function can be reentrant or not reentrant depending on * the low level implementation. * * @param[in] rtcp pointer to RTC driver structure * @param[in] callback callback function pointer or @p NULL * * @special */ void rtcSetCallback(RTCDriver *rtcp, rtccb_t callback) { osalDbgCheck(rtcp != NULL); rtc_lld_set_callback(rtcp, callback); }
/** * @brief Enables or disables RTC callbacks. * @details This function enables or disables callbacks, use a @p NULL pointer * in order to disable a callback. * * @param[in] rtcp pointer to RTC driver structure * @param[in] callback callback function pointer or @p NULL * * @api */ void rtcSetCallback(RTCDriver *rtcp, rtccb_t callback) { chDbgCheck((rtcp != NULL), "rtcSetCallback"); rtc_lld_set_callback(rtcp, callback); }