File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,8 @@ void init_efrPlatform(void)
68
68
#endif
69
69
70
70
#if CHIP_ENABLE_OPENTHREAD
71
- sl_ot_sys_init ();
71
+ efr32RadioInit ();
72
+ efr32AlarmInit ();
72
73
#endif // CHIP_ENABLE_OPENTHREAD
73
74
}
74
75
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ CHIP_ERROR ConfigurationManagerImpl::IncreaseBootCount(void)
97
97
return EFR32Config::WriteConfigValue (EFR32Config::kConfigKey_BootCount , bootCount + 1 );
98
98
}
99
99
100
- uint32_t ConfigurationManagerImpl::GetBootReason (void )
100
+ CHIP_ERROR ConfigurationManagerImpl::GetBootReason (uint32_t & bootReason )
101
101
{
102
102
// rebootCause is obtained at bootup.
103
103
BootReasonType matterBootCause;
@@ -150,7 +150,8 @@ uint32_t ConfigurationManagerImpl::GetBootReason(void)
150
150
matterBootCause = BootReasonType::kUnspecified ;
151
151
#endif
152
152
153
- return to_underlying (matterBootCause);
153
+ bootReason = to_underlying (matterBootCause);
154
+ return CHIP_NO_ERROR;
154
155
}
155
156
156
157
CHIP_ERROR ConfigurationManagerImpl::GetTotalOperationalHours (uint32_t & totalOperationalHours)
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ class ConfigurationManagerImpl : public Internal::GenericConfigurationManagerImp
40
40
// This returns an instance of this class.
41
41
static ConfigurationManagerImpl & GetDefaultInstance ();
42
42
43
- uint32_t GetBootReason (void );
43
+ CHIP_ERROR GetBootReason (uint32_t & bootReason );
44
44
CHIP_ERROR GetRebootCount (uint32_t & rebootCount);
45
45
CHIP_ERROR IncreaseBootCount (void );
46
46
CHIP_ERROR GetTotalOperationalHours (uint32_t & totalOperationalHours);
You can’t perform that action at this time.
0 commit comments