Skip to content

Commit a65f78c

Browse files
committed
RTC: add structs missing initializers
1 parent 7e83b8b commit a65f78c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: libraries/RTC/src/RTC.cpp

+6
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)