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 binary only mode subseconds param. expressed in milliseconds #101

Closed
wants to merge 17 commits into from

Commits on Sep 15, 2023

  1. fix: code syntax for better readability

    Signed-off-by: Frederic Pillon <[email protected]>
    fpistm committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    2d11284 View commit details
    Browse the repository at this point in the history
  2. fix: init RtcHandle.instance

    else this prevent isConfigured(void) to return correct value.
    
    Signed-off-by: Frederic Pillon <[email protected]>
    fpistm committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    9acf6f7 View commit details
    Browse the repository at this point in the history
  3. fix: harden prediv management vs clock config

    prediv was not properly computed and some misalignment's
    could occur depending of the RTC state at init.
    
    Signed-off-by: Frederic Pillon <[email protected]>
    FRASTM authored and fpistm committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    9d07ee5 View commit details
    Browse the repository at this point in the history
  4. chore: set clock source and (a)synchronous prescalers together

    (a)synchronous prescalers values depend on the RTC clock source.
    
    Signed-off-by: Frederic Pillon <[email protected]>
    fpistm committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    fb5b8ab View commit details
    Browse the repository at this point in the history
  5. 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]>
    Co-authored-by: Frederic Pillon <[email protected]>
    fpistm committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    64e23a8 View commit details
    Browse the repository at this point in the history
  6. fix(example): enable alarm(s) if neeed

    Formatted with Arduino astyle.
    
    Signed-off-by: Frederic Pillon <[email protected]>
    fpistm committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    fc318f1 View commit details
    Browse the repository at this point in the history
  7. feat: support binary mode

    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)
    
    The Subsecond parameter is expressed in millisecond in
    RTC_SetTime/GetTime RTC_StartAlarm/GetAlarm
    
    Signed-off-by: Francois Ramu <[email protected]>
    FRASTM authored and fpistm committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    dac2069 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2023

  1. chore: export the RTC Handle as a global

    Signed-off-by: Francois Ramu <[email protected]>
    FRASTM committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    785a492 View commit details
    Browse the repository at this point in the history
  2. feat: add the HAL_MSP_Init/DeInit functions

    Signed-off-by: Frederic Pillon <[email protected]>
    FRASTM committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    6d14e5e View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2023

  1. RTC Time and Alarm configuration in BCD mode (BINARY_NONE)

    Signed-off-by: Francois Ramu <[email protected]>
    FRASTM committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    6b94d3c View commit details
    Browse the repository at this point in the history
  2. add new sketch for RTC running in MIX or BCD mode with Alarm

    This examples is configuring the RTC in MIX (binary + calendar) or BCD
    and sets Alarm A & B (if exists) few ms after the current time.
    
    Signed-off-by: Francois Ramu <[email protected]>
    FRASTM committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    0e17344 View commit details
    Browse the repository at this point in the history
  3. RTC Time and Alarm configuration in BIN mode (BINARY_ONLY)

    In BIN ONLY mode, the Time and Date registers are 0.
    The Subsecond param in expressed in a nb of milliseconds
    on a 32-bit value.
    
    Signed-off-by: Francois Ramu <[email protected]>
    FRASTM committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    3b9a253 View commit details
    Browse the repository at this point in the history
  4. add new sketch for RTC running in BINary mode with Alarm

    This examples is configuring the RTC in BIN mode (binary only)
    and sets Alarm A & B (if exists) a few ms after the current time.
    
    Signed-off-by: Francois Ramu <[email protected]>
    FRASTM committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    50ffe71 View commit details
    Browse the repository at this point in the history
  5. fix: build issue

    fpistm committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    8ac4c91 View commit details
    Browse the repository at this point in the history
  6. feat: add new API to setAlarmTime with subsecond

    Signed-off-by: Frederic Pillon <[email protected]>
    fpistm committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    f605209 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f695168 View commit details
    Browse the repository at this point in the history
  8. fix: add missing else

    Signed-off-by: Frederic Pillon <[email protected]>
    fpistm committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    0a94a5b View commit details
    Browse the repository at this point in the history