Skip to content

Conversation

@Aymane-ST
Copy link

  • use uint32_t for userPredA, userPredS and local prediv variables (a, s),
  • call rtc.getPrediv() and rtc.setPrediv() with uint32_t arguments,
  • use PREDIVA_MAX + 1 and PREDIVS_MAX + 1 to reset prescalers to computed values

REF: stm32duino/STM32RTC@9d07ee5

- use uint32_t for userPredA, userPredS and local prediv variables (a, s),
- call rtc.getPrediv() and rtc.setPrediv() with uint32_t arguments,
- use PREDIVA_MAX + 1 and PREDIVS_MAX + 1 to reset prescalers to computed values

REF: stm32duino/STM32RTC@9d07ee5

Signed-off-by: Aymane Bahssain <aymane.bahssain@st.com>
@Aymane-ST Aymane-ST self-assigned this Feb 2, 2026
@fpistm fpistm self-requested a review February 2, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant