periph:rtc: add missing argument for callback
This commit is contained in:
parent
d76ac6ed9f
commit
d9b7ee4c6b
@ -68,12 +68,13 @@ int rtc_get_time(struct tm *time);
|
|||||||
*
|
*
|
||||||
* @param[in] time The value to trigger an alarm when hit.
|
* @param[in] time The value to trigger an alarm when hit.
|
||||||
* @param[in] cb Callback executed when alarm is hit.
|
* @param[in] cb Callback executed when alarm is hit.
|
||||||
|
* @param[in] arg Argument passed to callback when alarm is hit.
|
||||||
*
|
*
|
||||||
* @return 0 for success
|
* @return 0 for success
|
||||||
* @return -2 invalid `time` parameter
|
* @return -2 invalid `time` parameter
|
||||||
* @return -1 other errors
|
* @return -1 other errors
|
||||||
*/
|
*/
|
||||||
int rtc_set_alarm(struct tm *time, rtc_alarm_cb_t cb);
|
int rtc_set_alarm(struct tm *time, rtc_alarm_cb_t cb, void *arg);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Gets the current alarm setting
|
* @brief Gets the current alarm setting
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user