Commit Graph

9 Commits (044051c2d9785c5555de3888272bec2e83f5bf34)

Author SHA1 Message Date
Marc Poulhiès 044051c2d9 Support setting alarms from a NaiveTime
It allows for more concise user code when setting alarm from such object.
2020-07-05 09:41:59 +02:00
Marc Poulhiès 092af13298 Better detect incorrect input for alarms, refactor some test macros
Alarm can be triggered on a subset of input, no need to reject ignored
fields (eg. don't care about day field when matching on time only). We still
need to set these to correct values as they are still used to set alarm
registers.

Test macro have been refactored to accept variable number of arguments.
2020-07-05 09:41:59 +02:00
Diego Barrios Romero 3c8d378d6f Implement Rtcc trait 2020-05-02 11:36:42 +02:00
Diego Barrios Romero af20f0321c Code formatting 2019-05-16 19:18:07 +02:00
Diego Barrios Romero eb87a741f6 Remove redundant statements 2018-11-16 19:11:13 +01:00
Diego Barrios Romero c10bf7de9d Rename date to day as it is a day of the month. 2018-11-16 18:22:30 +01:00
Diego Barrios Romero b717f4e62b Add support for setting alarm 2 2018-11-03 08:11:38 +01:00
Diego Barrios Romero c3927e46c3 Add support for settin alarm1 to a weekday 2018-11-03 08:09:32 +01:00
Diego Barrios Romero 46d6656009 Add function to set the alarm1 to a date 2018-11-03 08:06:18 +01:00