Skip to content

Commit 9590892

Browse files
committed
Updated the Alarm_Match enum
Now the identifiers from /component/rtc.h are used.
1 parent b8504c9 commit 9590892

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/RTCZero.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ typedef void(*voidFuncPtr)(void);
2929
class RTCZero {
3030
public:
3131

32-
enum Alarm_Match: uint8_t
32+
enum Alarm_Match: uint8_t // Should we have this enum or just use the identifiers from /component/rtc.h ?
3333
{
34-
MATCH_OFF = 0x00,
35-
MATCH_SS = 0x01,
36-
MATCH_MMSS = 0x02,
37-
MATCH_HHMMSS = 0x03,
38-
MATCH_DHHMMSS = 0x04,
39-
MATCH_MMDDHHMMSS = 0x05,
40-
MATCH_YYMMDDHHMMSS = 0x06
34+
MATCH_OFF = RTC_MODE2_MASK_SEL_OFF_Val,
35+
MATCH_SS = RTC_MODE2_MASK_SEL_SS_Val,
36+
MATCH_MMSS = RTC_MODE2_MASK_SEL_MMSS_Val,
37+
MATCH_HHMMSS = RTC_MODE2_MASK_SEL_HHMMSS_Val,
38+
MATCH_DHHMMSS = RTC_MODE2_MASK_SEL_DDHHMMSS_Val,
39+
MATCH_MMDDHHMMSS = RTC_MODE2_MASK_SEL_MMDDHHMMSS_Val,
40+
MATCH_YYMMDDHHMMSS = RTC_MODE2_MASK_SEL_YYMMDDHHMMSS_Val
4141
};
4242

4343
RTCZero() {};

0 commit comments

Comments
 (0)