Skip to content

stm32: counter: making counter date-time friendly #41318

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

Closed
manoj153 opened this issue Dec 18, 2021 · 4 comments
Closed

stm32: counter: making counter date-time friendly #41318

manoj153 opened this issue Dec 18, 2021 · 4 comments
Labels
area: Counter area: RTC Real Time Clock Enhancement Changes/Updates/Additions to existing features

Comments

@manoj153
Copy link
Contributor

I have great interest to support the RTC datetime feature for STM32 mainly.

Should I poke the counter driver and its subsystem?

It is a simple exercise to introduce 2 API as a solution:

  • set_system_time(struct tm *now)
  • get_system_time(struct tm *now)

Please let me know if this is the right way of doing it?

@manoj153 manoj153 added the Enhancement Changes/Updates/Additions to existing features label Dec 18, 2021
@ycsin
Copy link
Member

ycsin commented Dec 20, 2021

You might be interested in #23526

@ycsin ycsin added area: Counter area: RTC Real Time Clock labels Dec 20, 2021
@erwango
Copy link
Member

erwango commented Dec 20, 2021

I think the recent RTC API proposal would answer your request: #41287.
Question remains: how to make it works with #28977

@arbrauns
Copy link
Contributor

arbrauns commented Apr 5, 2023

I think this is covered by #35333.

@erwango
Copy link
Member

erwango commented Apr 5, 2023

I think this is covered by #35333.

Ok, closing current. Thanks

@erwango erwango closed this as completed Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Counter area: RTC Real Time Clock Enhancement Changes/Updates/Additions to existing features
Projects
None yet
Development

No branches or pull requests

4 participants