zephyr/tests/drivers/rtc
Bjarki Arge Andreasen 5343ae6817 tests: drivers: rtc: rtc_api: add config for alarm time mask
RTCs support a variety of combinations of alarm time fields, set
by the alarm time mask. Until now, alarm tests have selected
only the minute and hour fields, as these are always supported,
but some RTCs require setting every supported field when setting
the alarm time, while other RTCs don't support setting every field.

To support all RTCs in the test suite, a configuration has been
added which makes the alarm time mask configurable. Boards can now
define the specific alarm time mask they want to test within
their boards .conf files.

Additionally, the alarm tests have been refactored to not depend
on the time.h library to determine the struct rtc_time times to
set as these are constant, so they are now provided as const
structs instead.

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-06-28 20:58:22 -04:00
..
rtc_api tests: drivers: rtc: rtc_api: add config for alarm time mask 2024-06-28 20:58:22 -04:00
rtc_api_helpers drivers: rtc: api: Add helper for determining calibration 2024-06-18 14:35:55 -04:00
rtc_utils drivers: rtc: Create utility function for time validation 2024-03-06 10:08:48 +00:00
shell tests/drivers several: Use hwmv2 native targets identifiers 2024-03-15 16:13:12 +01:00