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 mix sketch #94

Closed
wants to merge 7 commits into from
Closed

Rtc mix sketch #94

wants to merge 7 commits into from

Commits on Jul 10, 2023

  1. feat: add a parameter to set binary mode

    This is valid when the RTC_BINARY_MIX mode exists in the RTC
    (bitfield in the RTC ICSR register)
    Set the RTC mode through a setBinaryMode function to be called
    before begin.
    
    Signed-off-by: Francois Ramu <[email protected]>
    FRASTM committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    c8069d6 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2023

  1. stm32duino RTC add a subsecond mask to configure the alarm

    configure the Alarm with Second mask --> trigs IRQHandler
    The Autoclear bit field depends on the RTC ALARM  SSR register.
    
    Signed-off-by: Francois Ramu <[email protected]>
    FRASTM committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    5885b25 View commit details
    Browse the repository at this point in the history
  2. rtc with getTime and getAlarm depends on MIX mode

    When the RTC is running in MIX mode (bianry and calendar),
    the ssub-second register is a 32-bit value which must not be converted
    in ms
    
    Signed-off-by: Francois Ramu <[email protected]>
    FRASTM committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    cbb926a View commit details
    Browse the repository at this point in the history
  3. STM32RTC library configure the alarm depending on the MIX mode

    In case the RTC is running in MIX mode (BINary and calendar),
    the subsecond register is a 32-bit value (and not msec)
    
    Signed-off-by: Francois Ramu <[email protected]>
    FRASTM committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    2ea1ffc View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2023

  1. export the RTC Handle as a global

    Set the subsecond for the alarm value.
    Add the HAL_MSP_Init/DeInit function from the rtc library.
    
    Signed-off-by: Francois Ramu <[email protected]>
    FRASTM committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    35da749 View commit details
    Browse the repository at this point in the history
  2. stm32RTC with subsecond to milliseconds conversion

    The binaryMode_t is retrieved directly from the RTC mode,
    not as a parameter.
    The Subsecond parameter is expressed in millisecond in
    RTC_SetTime/GetTime RTC_StartAlarm/GetAlarm
    
    Signed-off-by: Francois Ramu <[email protected]>
    FRASTM committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    afa27ae View commit details
    Browse the repository at this point in the history
  3. add new sketch for RTC running in MIX mode with Alarm

    This examples is configuring the RTC in MIX mode
    (binary + calendar BCD) and set Alarm B (if exists)
    few ms after the current time, whenAlarm A is set
    in calendar mode.
    Mainly used on stm32wl55 devices.
    FRASTM committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    8832c54 View commit details
    Browse the repository at this point in the history