File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ setAlarm KEYWORD2
15
15
setAlarmMode KEYWORD2
16
16
attachInterrupt KEYWORD2
17
17
detachInterrupt KEYWORD2
18
+ clearInterrupt KEYWORD2
18
19
19
20
# Structures (KEYWORD3)
20
21
Original file line number Diff line number Diff line change @@ -201,6 +201,11 @@ void Apollo3RTC::detachInterrupt() {
201
201
am_hal_rtc_int_disable (AM_HAL_RTC_INT_ALM);
202
202
}
203
203
204
+ void Apollo3RTC::clearInterrupt () {
205
+ // Clear the RTC alarm interrupt
206
+ am_hal_rtc_int_clear (AM_HAL_RTC_INT_ALM);
207
+ }
208
+
204
209
// mthToIndex() converts a string indicating a month to an index value.
205
210
// The return value is a value 0-12, with 0-11 indicating the month given
206
211
// by the string, and 12 indicating that the string is not a month.
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ class Apollo3RTC {
34
34
void setAlarmMode (uint8_t mode); // Set the RTC alarm repeat interval
35
35
void attachInterrupt (); // Attach the RTC alarm interrupt
36
36
void detachInterrupt (); // Detach the RTC alarm interrupt
37
+ void clearInterrupt (); // Clear RTC alarm interrupt
37
38
38
39
uint32_t weekday; // 0 to 6 representing the day of the week
39
40
uint32_t century;
You can’t perform that action at this time.
0 commit comments