add attachAlarmInterrupt and detachAlarmInterrupt

This commit is contained in:
csnol 2017-09-13 04:10:25 +08:00 committed by GitHub
parent 7752fc68f2
commit a87ad87fa7
1 changed files with 5 additions and 1 deletions

View File

@ -78,6 +78,10 @@ class RTClock {
void attachSecondsInterrupt(voidFuncPtr function);
void detachSecondsInterrupt();
void attachAlarmInterrupt(voidFuncPtr function);
void attachAlarmInterrupt(voidFuncPtr function, time_t alarm_time);
void detachAlarmInterrupt();
void setAlarmTime (tm_t & tm_ptr);
void setAlarmTime (time_t alarm_time);
@ -89,4 +93,4 @@ class RTClock {
#endif // _RTCLOCK_H_