zephyr/tests/drivers/rtc/rtc_api_helpers
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
..
src drivers: rtc: api: Add helper for determining calibration 2024-06-18 14:35:55 -04:00
CMakeLists.txt drivers: rtc: api: Add helper for determining calibration 2024-06-18 14:35:55 -04:00
prj.conf tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
testcase.yaml tests: drivers: rtc: api_helpers: Should depend on rtc support 2023-07-24 14:38:47 +00:00