Skip to content

Commit a87ad87

Browse files
authored
add attachAlarmInterrupt and detachAlarmInterrupt
1 parent 7752fc6 commit a87ad87

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

STM32F1/libraries/RTClock/src/RTClock.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ class RTClock {
7878
void attachSecondsInterrupt(voidFuncPtr function);
7979
void detachSecondsInterrupt();
8080

81+
void attachAlarmInterrupt(voidFuncPtr function);
82+
void attachAlarmInterrupt(voidFuncPtr function, time_t alarm_time);
83+
void detachAlarmInterrupt();
84+
8185
void setAlarmTime (tm_t & tm_ptr);
8286
void setAlarmTime (time_t alarm_time);
8387

@@ -89,4 +93,4 @@ class RTClock {
8993

9094

9195
#endif // _RTCLOCK_H_
92-
96+

0 commit comments

Comments
 (0)