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

[stm32] Add RTC driver #1242

Merged
merged 5 commits into from
Dec 30, 2024
Merged

[stm32] Add RTC driver #1242

merged 5 commits into from
Dec 30, 2024

Conversation

salkinium
Copy link
Member

@salkinium salkinium commented Dec 22, 2024

This continues the work of #1055.

  • Working RTC peripheral on all STM32 except STM32F1, which has a completely different RTC
  • Efficient and cached conversion algorithm to milliseconds since 1970 epoch.
  • C++ std::chrono interface for clocks.
  • Add interface code for DateTime objects
    • There should be a modm::DateTime class that deals with conversions compatible with Rtc::DateTime.
    • Construct from __TIMESTAMP__ instead of adding an extra class.
    • Unit tests for time conversion
  • Better Board support for SystemClock. Lots of boards have an RTC crystal.
  • Generic example showing off millisecond time_points and DateTime object.
  • Tested on ~40 nucleo and discovery boards I had lying around with the generic example, covering almost all families.
  • Ran unit tests on 5 STM32 boards.

@salkinium salkinium force-pushed the feature-rtc branch 11 times, most recently from 648a93e to cbd4d9e Compare December 28, 2024 16:11
@salkinium salkinium added the ci:hal Triggers the exhaustive HAL compile CI jobs label Dec 28, 2024
@salkinium salkinium force-pushed the feature-rtc branch 13 times, most recently from c812267 to 717a10a Compare December 30, 2024 18:57
@salkinium salkinium removed the ci:hal Triggers the exhaustive HAL compile CI jobs label Dec 30, 2024
@salkinium salkinium added the ci:hal Triggers the exhaustive HAL compile CI jobs label Dec 30, 2024
@salkinium salkinium marked this pull request as ready for review December 30, 2024 19:31
@salkinium salkinium merged commit f402893 into modm-io:develop Dec 30, 2024
12 checks passed
@salkinium salkinium deleted the feature-rtc branch December 30, 2024 22:35
@salkinium salkinium added this to the 2024q4 milestone Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
advanced 🤯 ci:hal Triggers the exhaustive HAL compile CI jobs example 🔑 feature 🚧
Development

Successfully merging this pull request may close these issues.

2 participants