Diego Barrios Romero
fe990d7295
Avoid using deprecated methods
2023-07-16 13:43:46 +02:00
Diego Barrios Romero
faf48c2870
Fix small clippy warnings and run it on tests as well on CI
2022-02-20 10:27:12 +01:00
Diego Barrios Romero
2799590575
Fix imports
2020-07-10 22:42:39 +02:00
Diego Barrios Romero
f146d1d26e
Use Rust edition 2018
2020-07-10 22:24:29 +02:00
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