File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 35
35
#include "lp_ticker_api.h"
36
36
#include "rtc.h"
37
37
#include "lp.h"
38
+ #include <string.h>
38
39
39
40
// LOG2 for 32-bit powers of 2
40
41
#define LOG2_1 (n ) (((n) >= (1 << 1)) ? 1 : 0)
@@ -65,7 +66,8 @@ static void init_rtc(void)
65
66
* if it is already running.
66
67
*/
67
68
if (!RTC_IsActive ()) {
68
- rtc_cfg_t cfg = { 0 };
69
+ rtc_cfg_t cfg ;
70
+ memset (& cfg , 0 , sizeof (rtc_cfg_t ));
69
71
cfg .prescaler = LP_TIMER_PRESCALE ;
70
72
cfg .snoozeMode = RTC_SNOOZE_DISABLE ;
71
73
Original file line number Diff line number Diff line change 35
35
#include "lp_ticker_api.h"
36
36
#include "rtc.h"
37
37
#include "lp.h"
38
+ #include <string.h>
38
39
39
40
// LOG2 for 32-bit powers of 2
40
41
#define LOG2_1 (n ) (((n) >= (1 << 1)) ? 1 : 0)
@@ -65,7 +66,8 @@ static void init_rtc(void)
65
66
* if it is already running.
66
67
*/
67
68
if (!RTC_IsActive ()) {
68
- rtc_cfg_t cfg = { 0 };
69
+ rtc_cfg_t cfg ;
70
+ memset (& cfg , 0 , sizeof (rtc_cfg_t ));
69
71
cfg .prescaler = LP_TIMER_PRESCALE ;
70
72
cfg .snoozeMode = RTC_SNOOZE_DISABLE ;
71
73
Original file line number Diff line number Diff line change 35
35
#include "lp_ticker_api.h"
36
36
#include "rtc.h"
37
37
#include "lp.h"
38
+ #include <string.h>
38
39
39
40
// LOG2 for 32-bit powers of 2
40
41
#define LOG2_1 (n ) (((n) >= (1 << 1)) ? 1 : 0)
@@ -65,7 +66,8 @@ static void init_rtc(void)
65
66
* if it is already running.
66
67
*/
67
68
if (!RTC_IsActive ()) {
68
- rtc_cfg_t cfg = {0 };
69
+ rtc_cfg_t cfg ;
70
+ memset (& cfg , 0 , sizeof (rtc_cfg_t ));
69
71
cfg .prescaler = LP_TIMER_PRESCALE ;
70
72
cfg .snoozeMode = RTC_SNOOZE_DISABLE ;
71
73
You can’t perform that action at this time.
0 commit comments