1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-30 08:51:19 +01:00

Merge pull request #1595 from thomaseichinger/fix_rtc

periph:rtc: add missing argument for callback
This commit is contained in:
Thomas Eichinger 2014-08-21 22:14:12 +02:00
commit 99d18d7644

View File

@ -68,12 +68,13 @@ int rtc_get_time(struct tm *time);
*
* @param[in] time The value to trigger an alarm when 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 -2 invalid `time` parameter
* @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