Skip to content

Commit

Permalink
[Bouffalolab] Add data model/zap for Wi-Fi and Thread separately in l…
Browse files Browse the repository at this point in the history
…ighting-app (#25839)

* update lighting app data model

* correct feature value of network commissioning for wifi

* fix restyle

* update matter files
  • Loading branch information
wy-hh authored and pull[bot] committed Nov 28, 2023
1 parent 252e3ea commit 1250491
Show file tree
Hide file tree
Showing 7 changed files with 20,768 additions and 4 deletions.
11 changes: 10 additions & 1 deletion examples/lighting-app/bouffalolab/bl602/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import("${build_root}/config/defaults.gni")
import("${chip_root}/examples/common/pigweed/pigweed_rpcs.gni")
import("${chip_root}/src/platform/device.gni")

import("${chip_root}/src/app/chip_data_model.gni")

if (chip_enable_pw_rpc) {
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
Expand Down Expand Up @@ -78,6 +80,13 @@ bl_iot_sdk("sdk") {
}
}

chip_data_model("bouffalolab-lighting") {
zap_file = "${example_dir}/../data_model/lighting-app-wifi.zap"

zap_pregenerated_dir = "${chip_root}/zzz_generated/lighting-app/zap-generated"
is_server = true
}

bouffalolab_executable("lighting_app") {
output_name = "chip-bl602-lighting-example.out"

Expand Down Expand Up @@ -116,9 +125,9 @@ bouffalolab_executable("lighting_app") {
]

deps = [
":bouffalolab-lighting",
":sdk",
"${chip_root}/examples/common/QRCode",
"${chip_root}/examples/lighting-app/lighting-common",
"${chip_root}/examples/providers:device_info_provider",
"${chip_root}/src/lib",
"${chip_root}/src/setup_payload",
Expand Down
11 changes: 10 additions & 1 deletion examples/lighting-app/bouffalolab/bl702/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import("${build_root}/config/defaults.gni")
import("${chip_root}/examples/common/pigweed/pigweed_rpcs.gni")
import("${chip_root}/src/platform/device.gni")

import("${chip_root}/src/app/chip_data_model.gni")

if (chip_enable_pw_rpc) {
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
Expand Down Expand Up @@ -93,6 +95,13 @@ bl_iot_sdk("sdk") {
}
}

chip_data_model("bouffalolab-lighting") {
zap_file = "${example_dir}/../data_model/lighting-app-thread.zap"

zap_pregenerated_dir = "${chip_root}/zzz_generated/lighting-app/zap-generated"
is_server = true
}

bouffalolab_executable("lighting_app") {
output_name = "chip-bl702-lighting-example.out"
bl_plat_name = "bl702"
Expand Down Expand Up @@ -135,8 +144,8 @@ bouffalolab_executable("lighting_app") {
]

deps = [
":bouffalolab-lighting",
":sdk",
"${chip_root}/examples/lighting-app/lighting-common",
"${chip_root}/examples/providers:device_info_provider",
"${chip_root}/src/lib",
"${chip_root}/src/setup_payload",
Expand Down
2 changes: 0 additions & 2 deletions examples/lighting-app/bouffalolab/common/AppTask.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
#include <stdbool.h>
#include <stdint.h>

// #include "AppEvent.h"

#include "FreeRTOS.h"
#include "timers.h"
#include <platform/CHIPDeviceLayer.h>
Expand Down
Loading

0 comments on commit 1250491

Please sign in to comment.