Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RTC to firmware #318

Merged
merged 3 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,7 @@ else()
add_subdirectory(src/basic_battery)
endif()

# TODO
target_sources(app PRIVATE src/zsw_clock.c)
#if (CONFIG_RTC)
# target_sources(app PRIVATE src/zsw_rtc.c)
#else()
#endif()

target_sources(app PRIVATE src/main.c)
target_sources(app PRIVATE src/zsw_cpu_freq.c)
target_sources(app PRIVATE src/zsw_retained_ram_storage.c)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ CONFIG_DEBUG_COREDUMP_BACKEND_OTHER=y

CONFIG_RTC=y
CONFIG_RTC_UPDATE=y
CONFIG_RTC_ALARM=y

CONFIG_MISC_ENABLE_SYSTEM_RESET=n # Implemented in nPM, hence not needed in FW

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
aliases {
spi-flash0 = &mx25u51245g;
buzzer-pwm = &buzzer_pwm;
rtc = &rv_8263_c8;
};

longpress: longpress {
Expand Down
Loading