File tree 4 files changed +10
-10
lines changed
examples/refrigerator-app/silabs
4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -92,12 +92,10 @@ if (wifi_soc) {
92
92
]
93
93
94
94
if (use_wf200 ) {
95
- # TODO efr32_sdk should not need a header from this location
96
95
include_dirs += [ " ${ examples_plat_dir } /wf200" ]
97
96
}
98
97
99
98
if (chip_enable_ble_rs911x ) {
100
- # TODO efr32_sdk should not need a header from this location
101
99
include_dirs += [
102
100
" ${ chip_root } /src/platform/silabs/efr32/rs911x" ,
103
101
" ${ examples_plat_dir } /rs911x" ,
@@ -130,10 +128,14 @@ if (wifi_soc) {
130
128
131
129
silabs_executable (" refrigerator_app" ) {
132
130
output_name = " matter-silabs-refrigerator-example.out"
133
- include_dirs = [ " include" ]
134
131
defines = []
132
+ include_dirs = [
133
+ " include" ,
134
+ " ${ chip_root } /examples/refrigerator-app/refrigerator-common/include" ,
135
+ ]
135
136
136
137
sources = [
138
+ " ${ chip_root } /examples/refrigerator-app/refrigerator-common/src/static-supported-temperature-levels.cpp" ,
137
139
" ${ examples_common_plat_dir } /main.cpp" ,
138
140
" src/AppTask.cpp" ,
139
141
" src/RefrigeratorManager.cpp" ,
Original file line number Diff line number Diff line change @@ -17,5 +17,5 @@ import("${chip_root}/config/standalone/args.gni")
17
17
silabs_sdk_target = get_label_info (" :sdk" , " label_no_toolchain" )
18
18
import (" ${ chip_root } /src/platform/silabs/wifi_args.gni" )
19
19
chip_enable_wifi = true
20
- chip_enable_ota_requestor = true
20
+ chip_enable_ota_requestor = false
21
21
app_data_model = " ${ chip_root } /examples/refrigerator-app/refrigerator-common"
Original file line number Diff line number Diff line change 24
24
#include < app/ConcreteAttributePath.h>
25
25
#include < app/util/attribute-storage.h>
26
26
#include < lib/support/logging/CHIPLogging.h>
27
- #include < examples/refrigerator-app/refrigerator-common/include/static-supported-temperature-levels.h>
28
27
#include < stdbool.h>
29
28
#include < stdint.h>
30
29
#include < cmsis_os2.h>
31
30
#include < lib/core/CHIPError.h>
32
31
33
- /* *********************************************************
34
- * Defines and Constants
35
- *********************************************************/
36
-
37
32
using namespace chip ;
38
33
using namespace chip ::app;
39
34
using namespace chip ::app::Clusters::RefrigeratorAlarm;
Original file line number Diff line number Diff line change 22
22
*********************************************************/
23
23
24
24
#include " RefrigeratorManager.h"
25
+ #include < static-supported-temperature-levels.h>
25
26
#include " AppConfig.h"
26
27
#include " AppEvent.h"
27
28
#include " AppTask.h"
@@ -43,8 +44,10 @@ EndpointId kRefEndpointId = 1;
43
44
EndpointId kColdCabinetEndpointId = 2 ;
44
45
EndpointId kFreezeCabinetEndpointId = 3 ;
45
46
47
+ RefrigeratorManager RefrigeratorManager::sRefrigeratorMgr ;
48
+
46
49
namespace {
47
- chip:: app::Clusters::TemperatureControl::AppSupportedTemperatureLevelsDelegate sAppSupportedTemperatureLevelsDelegate ;
50
+ app::Clusters::TemperatureControl::AppSupportedTemperatureLevelsDelegate sAppSupportedTemperatureLevelsDelegate ;
48
51
49
52
// Please refer to https://github.com/CHIP-Specifications/connectedhomeip-spec/blob/master/src/namespaces
50
53
constexpr const uint8_t kNamespaceRefrigerator = 0x41 ;
You can’t perform that action at this time.
0 commit comments