Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8a0bbaa

Browse files
authored
Merge pull request #437 from pennam/rtc-missing-initializers
RTC: add structs missing initializers
2 parents 3e4b0d4 + b594eff commit 8a0bbaa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎libraries/RTC/src/RTC.cpp‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,11 @@ void __attribute__((weak)) rtc_callback(rtc_callback_args_t *p_args) {
435435

436436
rtc_instance_ctrl_t rtc_ctrl = {
437437
.open = 0,
438+
.p_cfg = nullptr,
439+
.carry_isr_triggered = false,
440+
.p_callback = nullptr,
441+
.p_callback_memory = nullptr,
442+
.p_context = nullptr,
438443
};
439444

440445
#ifndef RTC_CLOCK_SOURCE
@@ -458,6 +463,7 @@ rtc_cfg_t rtc_cfg = {
458463
.carry_irq = FSP_INVALID_VECTOR,
459464
.p_callback = rtc_callback,
460465
.p_context = NULL,
466+
.p_extend = NULL,
461467
};
462468

463469
#ifdef __cplusplus

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /