zephyr/tests/drivers/rtc
Bjarki Arge Andreasen 1fc26b8974 drivers: rtc: api: Add helper for determining calibration
Add helper function which calculates the required calibration to
1 Hertz from the actual frequency of an RTC. This helper is both
functional and adds to the documentation of the RTC calibration
API.

The rtc.h header now includes zephyr/kernel.h instead of
zephyr/types.h as __ASSERT_NO_MSG is now referenced in the header.

The commit additionally extends the rtc_api_helpers test suite
with a test to validate the conversion function itself.

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-06-18 14:35:55 -04:00
..
rtc_api tests: drivers: rtc: skip alarm callback test if not supported 2024-06-17 12:09:15 -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