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

RTC update the BIN mode and BDCU if the RTC is already initialized #106

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

FRASTM
Copy link
Contributor

@FRASTM FRASTM commented Feb 26, 2024

When the RTC is already initialized, but RTC BIN mode must be changed
this is done by writing the RTC ICSR register on BIN[] and BCDU[] bit-field
with a new RTC_SetBinaryConf() function,
just after setting the BIN mode and BDCU values (RTC_BinaryConf)

@FRASTM FRASTM changed the title RTC update the BIN mode and BDCU if the RTC is already initialized initialized, but RTC BIN mode is changed : + * force the update of the BIN register and BCDu in the RTC_ICSR + * by the RTC_SetBinaryConf function RTC update the BIN mode and BDCU if the RTC is already initialized Feb 26, 2024
@fpistm fpistm self-requested a review February 26, 2024 15:35
@fpistm fpistm added the enhancement New feature or request label Feb 26, 2024
@fpistm fpistm added this to the 1.5.0 milestone Feb 26, 2024
@FRASTM FRASTM force-pushed the lorawan_issue36 branch 3 times, most recently from 27babd6 to 4ca2ba5 Compare February 26, 2024 15:49
@FRASTM FRASTM marked this pull request as ready for review February 26, 2024 17:00
src/rtc.c Outdated Show resolved Hide resolved
When the RTC is already initialized, but RTC BIN mode must be changed
this is done by writing the RTC ICSR register on BIN[] and BCDU[]
bit-field with a new `RTC_SetBinaryConf()` function.

Signed-off-by: Francois Ramu <[email protected]>
@fpistm fpistm merged commit 1c66643 into stm32duino:main Feb 28, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

2 participants