Skip to content

Commit

Permalink
remove rpc function
Browse files Browse the repository at this point in the history
  • Loading branch information
shchen-Lab committed Nov 22, 2023
1 parent f1daed0 commit b8e9ce3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 121 deletions.
55 changes: 0 additions & 55 deletions examples/window-app/bouffalolab/bl602/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -163,61 +163,6 @@ bouffalolab_executable("window-app") {

defines += [ "CONFIG_ENABLE_CHIP_SHELL=${chip_build_libshell}" ]
defines += [ "PW_RPC_ENABLED=${chip_enable_pw_rpc}" ]
if (chip_enable_pw_rpc) {
defines += [
"PW_RPC_ATTRIBUTE_SERVICE=1",
"PW_RPC_BUTTON_SERVICE=1",
"PW_RPC_DESCRIPTOR_SERVICE=1",
"PW_RPC_DEVICE_SERVICE=1",
"PW_RPC_LIGHTING_SERVICE=1",

#"PW_RPC_TRACING_SERVICE=1",
]

sources += [
"${chip_root}/examples/common/pigweed/RpcService.cpp",
"${chip_root}/examples/common/pigweed/bouffalolab/PigweedLoggerMutex.cpp",
"${examples_plat_dir}/common/rpc/PigweedLogger.cpp",
"${examples_plat_dir}/common/rpc/Rpc.cpp",
]

deps += [
"$dir_pw_hdlc:rpc_channel_output",
"$dir_pw_kvs:crc16",
"$dir_pw_log",
"$dir_pw_stream:sys_io_stream",

#"$dir_pw_trace",
#"$dir_pw_trace_tokenized",
#"$dir_pw_trace_tokenized:trace_rpc_service",
"${chip_root}/config/bouffalolab/common/lib/pw_rpc:pw_rpc",
"${chip_root}/examples/common/pigweed:attributes_service.nanopb_rpc",
"${chip_root}/examples/common/pigweed:button_service.nanopb_rpc",
"${chip_root}/examples/common/pigweed:descriptor_service.nanopb_rpc",
"${chip_root}/examples/common/pigweed:device_service.nanopb_rpc",
"${chip_root}/examples/common/pigweed:lighting_service.nanopb_rpc",
"${examples_plat_dir}/common/rpc/pw_sys_io:pw_sys_io",
]

public_deps = [
"$dir_pw_checksum",
"$dir_pw_kvs",
]

deps += pw_build_LINK_DEPS

include_dirs += [
"${chip_root}/examples/common",
"${chip_root}/examples/common/pigweed/bouffalolab",
]
} else if (chip_build_libshell) {
deps += [ "${chip_root}/examples/shell/shell_common:shell_common" ]

include_dirs += [
"${chip_root}/src/lib/shell",
"${chip_root}/examples/shell/shell_common/include",
]
}

defines += [ "HEAP_MONITORING=${enable_heap_monitoring}" ]
if (enable_heap_monitoring) {
Expand Down
60 changes: 0 additions & 60 deletions examples/window-app/bouffalolab/bl702/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -224,66 +224,6 @@ bouffalolab_executable("window-app") {

defines += [ "CONFIG_ENABLE_CHIP_SHELL=${chip_build_libshell}" ]
defines += [ "PW_RPC_ENABLED=${chip_enable_pw_rpc}" ]
if (chip_enable_pw_rpc) {
defines += [
"PW_RPC_ATTRIBUTE_SERVICE=1",
"PW_RPC_BUTTON_SERVICE=1",
"PW_RPC_DESCRIPTOR_SERVICE=1",
"PW_RPC_DEVICE_SERVICE=1",
"PW_RPC_LIGHTING_SERVICE=1",

"PW_RPC_OTCLI_SERVICE=1",
"PW_RPC_THREAD_SERVICE=1",

#"PW_RPC_TRACING_SERVICE=1",
]

sources += [
"${chip_root}/examples/common/pigweed/RpcService.cpp",
"${chip_root}/examples/common/pigweed/bouffalolab/PigweedLoggerMutex.cpp",
"${examples_plat_dir}/common/rpc/PigweedLogger.cpp",
"${examples_plat_dir}/common/rpc/Rpc.cpp",
]

deps += [
"$dir_pw_hdlc:rpc_channel_output",
"$dir_pw_stream:sys_io_stream",

#"$dir_pw_trace",
#"$dir_pw_trace_tokenized",
#"$dir_pw_trace_tokenized:trace_rpc_service",
"${chip_root}/config/bouffalolab/common/lib/pw_rpc:pw_rpc",
"${chip_root}/examples/common/pigweed:attributes_service.nanopb_rpc",
"${chip_root}/examples/common/pigweed:button_service.nanopb_rpc",
"${chip_root}/examples/common/pigweed:descriptor_service.nanopb_rpc",
"${chip_root}/examples/common/pigweed:device_service.nanopb_rpc",
"${chip_root}/examples/common/pigweed:lighting_service.nanopb_rpc",
"${examples_plat_dir}/common/rpc/pw_sys_io:pw_sys_io",
]

if (chip_enable_openthread) {
deps += [
"${chip_root}/examples/common/pigweed:ot_cli_service.nanopb_rpc",
"${chip_root}/examples/common/pigweed:thread_service.nanopb_rpc",
]
}

deps += pw_build_LINK_DEPS

include_dirs += [
"${chip_root}/examples/common",
"${chip_root}/examples/common/pigweed/bouffalolab",
]
} else {
if (chip_build_libshell) {
include_dirs += [
"${chip_root}/src/lib/shell",
"${chip_root}/examples/shell/shell_common/include",
]

deps += [ "${chip_root}/examples/shell/shell_common:shell_common" ]
}
}

defines += [ "HEAP_MONITORING=${enable_heap_monitoring}" ]
if (enable_heap_monitoring) {
Expand Down
6 changes: 0 additions & 6 deletions examples/window-app/bouffalolab/bl702l/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,6 @@ bl_iot_sdk("sdk") {
]

defines += [ "PW_RPC_ENABLED=${chip_enable_pw_rpc}" ]
if (chip_enable_pw_rpc) {
include_dirs += [ "${examples_plat_dir}/common/rpc" ]
defines += [ "DISABLE_PRINT=1" ]
} else if (chip_build_libshell) {
include_dirs += [ "${examples_plat_dir}/common/plat" ]
}

if (chip_enable_openthread) {
defines += [ "OPENTHREAD_CONFIG_PLATFORM_XTAL_ACCURACY=40" ]
Expand Down

0 comments on commit b8e9ce3

Please sign in to comment.