This test suite validates the RTC API helper functions, like currently, and exclusively, the rtc_time_to_tm() helper function. It also validates that the struct rtc_time is member to member compatible with the struct tm from the tm_sec to and including the tm_isdts member. Signed-off-by: Bjarki Arge Andreasen <baa@trackunit.com>
16 lines
308 B
CMake
16 lines
308 B
CMake
# Copyright (c) 2022 Bjarki Arge Andreasen
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
|
|
project(rtc_api)
|
|
|
|
target_sources(app PRIVATE
|
|
src/main.c
|
|
src/test_rtc_time_to_tm.c
|
|
)
|
|
|
|
target_include_directories(app PRIVATE inc)
|