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

ports/RTC: Attempt to reduce the inconsistencies between the port's RTC implementation. #10607

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

robert-hh
Copy link
Contributor

@robert-hh robert-hh commented Jan 28, 2023

This PR follows the issue #10578 and #5553 and other discussions about the topic. It consists of the commits:

  • docs/quickref: Fix the documentation of rtc.datetime(), which makes the documentation of rtc.datetime() consistent to the implementation for all ports.
  • mimxrt/machine_rtc.c: Drop rtc.now() Keep it at the WiPy port for legacy,
  • ports/RTC: Rework the availability and interface of rtc.init(), which drops rtc.init() from the SAMD port and makes it consistent to the documentation and the WiPy port for the ports ESP32 and MIMXRT. But rtc.init() could as well be dropped for the latter ones and just kept for WiPy.

Such that it matches the implementation and the documentation of
the machine.RTC class.

Signed-off-by: robert-hh <robert@hammelrath.com>
And show the port availability of rtc.now() in the documentation.

Signed-off-by: robert-hh <robert@hammelrath.com>
- make the argument ordering of rtc.init() the same for the
  ports WiPy, ESP32 and MIMXRT. The WiPy argument ordering is used.
- drop rtc.init() from the samd port.
- Document the availability and the differing semantics for the STM32
  and renesas-ra port.

Signed-off-by: robert-hh <robert@hammelrath.com>
@projectgus
Copy link
Contributor

This is an automated heads-up that we've just merged a Pull Request
that removes the STATIC macro from MicroPython's C API.

See #13763

A search suggests this PR might apply the STATIC macro to some C code. If it
does, then next time you rebase the PR (or merge from master) then you should
please replace all the STATIC keywords with static.

Although this is an automated message, feel free to @-reply to me directly if
you have any questions about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants