Skip to content

Commit

Permalink
[NXP] Fix pw RPC build for k32w1 lighting app (#32812)
Browse files Browse the repository at this point in the history
* [NXP] Fix pw RPC build

Signed-off-by: marius-alex-tache <[email protected]>

* Restyled by gn

---------

Signed-off-by: marius-alex-tache <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Apr 24, 2024
1 parent 4f00f5a commit 1904370
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion config/nxp/lib/pw_rpc/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ static_library("pw_rpc") {
"$dir_pw_rpc:server",
"$dir_pw_rpc/nanopb:echo_service",
"${chip_root}/examples/platform/nxp/pw_sys_io:pw_sys_io_nxp",
"${dir_pigweed}/pw_hdlc:pw_rpc",
dir_pw_assert,
dir_pw_hdlc,
dir_pw_log,
Expand Down
2 changes: 1 addition & 1 deletion examples/platform/nxp/Rpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class NxpButton final : public Button
class NxpDevice final : public Device
{
public:
pw::Status Reboot(const pw_protobuf_Empty & request, pw_protobuf_Empty & response) override
pw::Status Reboot(const chip_rpc_RebootRequest & request, pw_protobuf_Empty & response) override
{
mRebootTimer = xTimerCreate("Reboot", kRebootTimerPeriodTicks, false, nullptr, RebootHandler);
xTimerStart(mRebootTimer, pdMS_TO_TICKS(0));
Expand Down
7 changes: 2 additions & 5 deletions examples/platform/nxp/pw_sys_io/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,12 @@ config("default_config") {
}

pw_source_set("pw_sys_io_nxp") {
sources = [
"${chip_root}/src/lib/shell/streamer_nxp.cpp",
"sys_io_nxp.cc",
]
sources = [ "sys_io_nxp.cc" ]

deps = [
"$dir_pw_sys_io:default_putget_bytes",
"$dir_pw_sys_io:facade",
"${nxp_sdk_build_root}/${nxp_sdk_name}:nxp_sdk",
"${chip_root}/src/lib/shell:shell",
]

public_configs = [ ":default_config" ]
Expand Down

0 comments on commit 1904370

Please sign in to comment.