Skip to content

Commit c6025f8

Browse files
Add contact-sensor-app (#22966)
* [K32W0] Add contact-sensor-app * Add K32W0 contact-sensor-app * Add contact-sensor-app-common files * Generate zap-files Signed-off-by: Ethan Tan <[email protected]> Signed-off-by: Andrei Menzopol <[email protected]> * Restyled by whitespace * Restyled by clang-format * Restyled by gn * Restyled by prettier-markdown * Fix zap file & misspell Signed-off-by: Andrei Menzopol <[email protected]> * Update matter, zap files and regenerate contact-sensor-app/zap-generated Signed-off-by: Andrei Menzopol <[email protected]> * Add contact-sensor build changes Signed-off-by: Andrei Menzopol <[email protected]> * Update contact-sensor-app matter file Signed-off-by: Andrei Menzopol <[email protected]> Signed-off-by: Ethan Tan <[email protected]> Signed-off-by: Andrei Menzopol <[email protected]> Co-authored-by: Restyled.io <[email protected]>
1 parent 9945f23 commit c6025f8

36 files changed

+15861
-0
lines changed

.github/workflows/examples-k32w.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ jobs:
7474
--target k32w-light-ota-se \
7575
--target k32w-light-release-no-ota \
7676
--target k32w-lock-low-power-release \
77+
--target k32w-contact-low-power-release \
7778
--target k32w-shell-release \
7879
build \
7980
--copy-artifacts-to out/artifacts \
@@ -92,6 +93,13 @@ jobs:
9293
k32w k32w0+release lock \
9394
out/artifacts/k32w-lock-low-power-release/chip-k32w0x-lock-example \
9495
/tmp/bloat_reports/
96+
- name: Get contact size stats
97+
timeout-minutes: 5
98+
run: |
99+
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
100+
k32w k32w0+release contact \
101+
out/artifacts/k32w-contact-low-power-release/chip-k32w0x-contact-example \
102+
/tmp/bloat_reports/
95103
- name: Uploading Size Reports
96104
uses: actions/upload-artifact@v2
97105
if: ${{ !env.ACT }}

config/k32w/toolchain/BUILD.gn

+7
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ arm_toolchain("k32w_lock_app") {
3131
}
3232
}
3333

34+
arm_toolchain("k32w_contact_sensor_app") {
35+
toolchain_args = {
36+
current_os = "freertos"
37+
import("${chip_root}/examples/contact-sensor-app/nxp/k32w/k32w0/args.gni")
38+
}
39+
}
40+
3441
arm_toolchain("k32w_shell_app") {
3542
toolchain_args = {
3643
current_os = "freertos"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright (c) 2020 Project CHIP Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
import("//build_overrides/chip.gni")
16+
import("${chip_root}/examples/common/pigweed/pigweed_rpcs.gni")
17+
import("${chip_root}/src/app/chip_data_model.gni")
18+
19+
chip_data_model("contact-sensor-common") {
20+
zap_file = "contact-sensor-app.zap"
21+
22+
zap_pregenerated_dir =
23+
"${chip_root}/zzz_generated/contact-sensor-app/zap-generated"
24+
is_server = true
25+
}

0 commit comments

Comments
 (0)