Commit 1701841 1 parent f606158 commit 1701841 Copy full SHA for 1701841
File tree 7 files changed +20768
-4
lines changed
examples/lighting-app/bouffalolab
7 files changed +20768
-4
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ import("${build_root}/config/defaults.gni")
22
22
import (" ${ chip_root } /examples/common/pigweed/pigweed_rpcs.gni" )
23
23
import (" ${ chip_root } /src/platform/device.gni" )
24
24
25
+ import (" ${ chip_root } /src/app/chip_data_model.gni" )
26
+
25
27
if (chip_enable_pw_rpc ) {
26
28
import (" //build_overrides/pigweed.gni" )
27
29
import (" $dir_pw_build /target_types.gni" )
@@ -78,6 +80,13 @@ bl_iot_sdk("sdk") {
78
80
}
79
81
}
80
82
83
+ chip_data_model (" bouffalolab-lighting" ) {
84
+ zap_file = " ${ example_dir } /../data_model/lighting-app-wifi.zap"
85
+
86
+ zap_pregenerated_dir = " ${ chip_root } /zzz_generated/lighting-app/zap-generated"
87
+ is_server = true
88
+ }
89
+
81
90
bouffalolab_executable (" lighting_app" ) {
82
91
output_name = " chip-bl602-lighting-example.out"
83
92
@@ -116,9 +125,9 @@ bouffalolab_executable("lighting_app") {
116
125
]
117
126
118
127
deps = [
128
+ " :bouffalolab-lighting" ,
119
129
" :sdk" ,
120
130
" ${ chip_root } /examples/common/QRCode" ,
121
- " ${ chip_root } /examples/lighting-app/lighting-common" ,
122
131
" ${ chip_root } /examples/providers:device_info_provider" ,
123
132
" ${ chip_root } /src/lib" ,
124
133
" ${ chip_root } /src/setup_payload" ,
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ import("${build_root}/config/defaults.gni")
22
22
import (" ${ chip_root } /examples/common/pigweed/pigweed_rpcs.gni" )
23
23
import (" ${ chip_root } /src/platform/device.gni" )
24
24
25
+ import (" ${ chip_root } /src/app/chip_data_model.gni" )
26
+
25
27
if (chip_enable_pw_rpc ) {
26
28
import (" //build_overrides/pigweed.gni" )
27
29
import (" $dir_pw_build /target_types.gni" )
@@ -93,6 +95,13 @@ bl_iot_sdk("sdk") {
93
95
}
94
96
}
95
97
98
+ chip_data_model (" bouffalolab-lighting" ) {
99
+ zap_file = " ${ example_dir } /../data_model/lighting-app-thread.zap"
100
+
101
+ zap_pregenerated_dir = " ${ chip_root } /zzz_generated/lighting-app/zap-generated"
102
+ is_server = true
103
+ }
104
+
96
105
bouffalolab_executable (" lighting_app" ) {
97
106
output_name = " chip-bl702-lighting-example.out"
98
107
bl_plat_name = " bl702"
@@ -135,8 +144,8 @@ bouffalolab_executable("lighting_app") {
135
144
]
136
145
137
146
deps = [
147
+ " :bouffalolab-lighting" ,
138
148
" :sdk" ,
139
- " ${ chip_root } /examples/lighting-app/lighting-common" ,
140
149
" ${ chip_root } /examples/providers:device_info_provider" ,
141
150
" ${ chip_root } /src/lib" ,
142
151
" ${ chip_root } /src/setup_payload" ,
Original file line number Diff line number Diff line change 21
21
#include < stdbool.h>
22
22
#include < stdint.h>
23
23
24
- // #include "AppEvent.h"
25
-
26
24
#include " FreeRTOS.h"
27
25
#include " timers.h"
28
26
#include < platform/CHIPDeviceLayer.h>
You can’t perform that action at this time.
0 commit comments