-
Notifications
You must be signed in to change notification settings - Fork 51
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
Closed
Rtc mix sketch #94
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Running on the nucleo_wl55jc:
|
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
force-pushed
the
rtc_mix_sketch
branch
4 times, most recently
from
July 11, 2023 11:12
b96c037
to
8f3732b
Compare
FRASTM
force-pushed
the
rtc_mix_sketch
branch
2 times, most recently
from
September 7, 2023 09:03
a6c929f
to
be6a565
Compare
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]>
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]>
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
force-pushed
the
rtc_mix_sketch
branch
from
September 7, 2023 09:11
be6a565
to
4f528ae
Compare
FRASTM
force-pushed
the
rtc_mix_sketch
branch
4 times, most recently
from
September 8, 2023 14:45
58ace9d
to
7653a11
Compare
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]>
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]>
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
force-pushed
the
rtc_mix_sketch
branch
from
September 8, 2023 15:02
7653a11
to
8832c54
Compare
Now sketch is in the #93 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This examples is configuring the RTC in MIX mode
(binary + calendar BCD) and set Alarm B (if exists)
few ticks after the current time, whenAlarm A is set
in calendar mode.
Mainly used on stm32wl55 devices.
Requires #93