Skip to content

Commit

Permalink
add ethernet.zap & ethernet.matter for bl706 ethernet device
Browse files Browse the repository at this point in the history
  • Loading branch information
wy-hh committed Aug 30, 2023
1 parent 5ca5359 commit 78679ef
Show file tree
Hide file tree
Showing 7 changed files with 10,476 additions and 8 deletions.
1 change: 1 addition & 0 deletions examples/lighting-app/bouffalolab/bl602/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ bl_iot_sdk("sdk") {
"OTA_AUTO_REBOOT_DELAY=${ota_auto_reboot_delay_seconds}",
"CHIP_UART_BAUDRATE=${baudrate}",
"SYS_AOS_LOOP_ENABLE",
"CHIP_SYSTEM_CRYPTO_HEADER_RESERVE_SIZE=48"
]

if (chip_enable_pw_rpc) {
Expand Down
17 changes: 16 additions & 1 deletion examples/lighting-app/bouffalolab/bl702/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ bl_iot_sdk("sdk") {
"CHIP_DEVICE_CONFIG_ENABLE_ETHERNET=${chip_enable_ethernet}",
]

if (chip_enable_ethernet) {
defines += [
"CHIP_SYSTEM_CRYPTO_HEADER_RESERVE_SIZE=48",
]
}

if (enable_psram) {
defines += [ "CFG_USE_PSRAM=1" ]
}
Expand All @@ -108,7 +114,16 @@ bl_iot_sdk("sdk") {
}

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

if (chip_enable_openthread) {
zap_file = "${example_dir}/data_model/lighting-app-thread.zap"
}
else if (chip_enable_wifi) {
zap_file = "${example_dir}/data_model/lighting-app-wifi.zap"
}
else {
zap_file = "${example_dir}/data_model/lighting-app-ethernet.zap"
}

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

0 comments on commit 78679ef

Please sign in to comment.