Skip to content

Commit

Permalink
Cherry-pick Add contact-sensor-app (#22966) (#23047)
Browse files Browse the repository at this point in the history
* 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]>

* Undo 'Update contact-sensor-app matter file' from master PR

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]>
  • Loading branch information
andrei-menzopol and restyled-commits authored Oct 19, 2022
1 parent 87bee4d commit a0595f4
Show file tree
Hide file tree
Showing 36 changed files with 15,861 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/examples-k32w.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
--target k32w-light-ota-se \
--target k32w-light-release-no-ota \
--target k32w-lock-low-power-release \
--target k32w-contact-low-power-release \
--target k32w-shell-release \
build \
--copy-artifacts-to out/artifacts \
Expand All @@ -92,6 +93,13 @@ jobs:
k32w k32w0+release lock \
out/artifacts/k32w-lock-low-power-release/chip-k32w0x-lock-example \
/tmp/bloat_reports/
- name: Get contact size stats
timeout-minutes: 5
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
k32w k32w0+release contact \
out/artifacts/k32w-contact-low-power-release/chip-k32w0x-contact-example \
/tmp/bloat_reports/
- name: Uploading Size Reports
uses: actions/upload-artifact@v2
if: ${{ !env.ACT }}
Expand Down
7 changes: 7 additions & 0 deletions config/k32w/toolchain/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ arm_toolchain("k32w_lock_app") {
}
}

arm_toolchain("k32w_contact_sensor_app") {
toolchain_args = {
current_os = "freertos"
import("${chip_root}/examples/contact-sensor-app/nxp/k32w/k32w0/args.gni")
}
}

arm_toolchain("k32w_shell_app") {
toolchain_args = {
current_os = "freertos"
Expand Down
25 changes: 25 additions & 0 deletions examples/contact-sensor-app/contact-sensor-common/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright (c) 2020 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import("//build_overrides/chip.gni")
import("${chip_root}/examples/common/pigweed/pigweed_rpcs.gni")
import("${chip_root}/src/app/chip_data_model.gni")

chip_data_model("contact-sensor-common") {
zap_file = "contact-sensor-app.zap"

zap_pregenerated_dir =
"${chip_root}/zzz_generated/contact-sensor-app/zap-generated"
is_server = true
}
Loading

0 comments on commit a0595f4

Please sign in to comment.