Skip to content
Commit 4c880f4b authored by Andrew Featherstone's avatar Andrew Featherstone Committed by Fabio Baltieri
Browse files

drivers: rtc: Create utility function for time validation



RTC drivers should validate the `struct rtc_time`'s contents against the
provided `mask`. Promote this common code to a new rtc_utils file and
modify existing drivers to use this functionality. Extend the test
coverage to include verifying this behaviour.

This is groundwork ahead of adding support for the RP2040's (as used in
the Raspberry Pi Pico) RTC and alarm.

Signed-off-by: default avatarAndrew Featherstone <andrew.featherstone@gmail.com>
parent c975910f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment