[Infineon] Restructure p6 and cyw30739 devices to single folder (#21926)
* [Infineon] Restructure p6 folders under infineon
* [Infineon] Support CYW30739 platform inside infineon folder
* [Infineon] Rebase code rebase to avoid conflicts and fix github timeout change
Co-authored-by: Andrei Litvin <andy314@gmail.com>
diff --git a/.github/workflows/examples-cyw30739.yaml b/.github/workflows/examples-cyw30739.yaml
deleted file mode 100644
index a3126db..0000000
--- a/.github/workflows/examples-cyw30739.yaml
+++ /dev/null
@@ -1,102 +0,0 @@
-# Copyright (c) 2021 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.
-
-name: Build example - Infineon CYW30739
-
-on:
- push:
- pull_request:
-
-concurrency:
- group: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
- cancel-in-progress: true
-
-jobs:
- cyw30739:
- name: CYW30739
- timeout-minutes: 60
-
- runs-on: ubuntu-latest
- if: github.actor != 'restyled-io[bot]'
-
- container:
- image: connectedhomeip/chip-build:latest
- volumes:
- - "/tmp/bloat_reports:/tmp/bloat_reports"
- steps:
- - uses: Wandalen/wretry.action@v1.0.15
- name: Checkout
- with:
- action: actions/checkout@v3
- with: |
- token: ${{ github.token }}
- attempt_limit: 3
- attempt_delay: 2000
- - name: Checkout submodules
- run: scripts/checkout_submodules.py --shallow --platform cyw30739
-
- - name: Set up environment for size reports
- if: ${{ !env.ACT }}
- env:
- GH_CONTEXT: ${{ toJson(github) }}
- run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}"
-
- - name: Bootstrap
- timeout-minutes: 25
- run: scripts/build/gn_bootstrap.sh
- - name: Uploading bootstrap logs
- uses: actions/upload-artifact@v2
- if: ${{ always() && !env.ACT }}
- with:
- name: bootstrap-logs
- path: |
- .environment/gn_out/.ninja_log
- .environment/pigweed-venv/*.log
- - name: Build example CYW30739 Apps
- timeout-minutes: 30
- run: |
- ./scripts/run_in_build_env.sh \
- "./scripts/build/build_examples.py \
- --target-glob 'cyw30739-cyw930739m2evb_01-{light,lock,ota-requestor-no-progress-logging}' \
- build \
- --copy-artifacts-to out/artifacts \
- "
- - name: Get light size stats
- timeout-minutes: 5
- run: |
- .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
- cyw30739 cyw930739m2evb_01 light \
- out/artifacts/cyw30739-cyw930739m2evb_01-light/chip-cyw30739-lighting-example.elf \
- /tmp/bloat_reports/
- - name: Get lock size stats
- timeout-minutes: 5
- run: |
- .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
- cyw30739 cyw930739m2evb_01 lock \
- out/artifacts/cyw30739-cyw930739m2evb_01-lock/chip-cyw30739-lock-example.elf \
- /tmp/bloat_reports/
- - name: Get ota-requestor size stats
- timeout-minutes: 5
- run: |
- .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
- cyw30739 cyw930739m2evb_01 ota-requestor-no-progress-logging \
- out/artifacts/cyw30739-cyw930739m2evb_01-ota-requestor-no-progress-logging/chip-cyw30739-ota-requestor-example.elf \
- /tmp/bloat_reports/
- - name: Uploading Size Reports
- uses: actions/upload-artifact@v2
- if: ${{ !env.ACT }}
- with:
- name: Size,CYW30739-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }}
- path: |
- /tmp/bloat_reports/
diff --git a/.github/workflows/examples-infineon.yaml b/.github/workflows/examples-infineon.yaml
index 7fc9cdd..cc5a8f5 100644
--- a/.github/workflows/examples-infineon.yaml
+++ b/.github/workflows/examples-infineon.yaml
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-name: Build example - Infineon P6
+name: Build example - Infineon
on:
push:
@@ -33,7 +33,8 @@
container:
image: connectedhomeip/chip-build-infineon:0.5.91
-
+ volumes:
+ - "/tmp/bloat_reports:/tmp/bloat_reports"
steps:
- uses: Wandalen/wretry.action@v1.0.15
name: Checkout
@@ -44,7 +45,7 @@
attempt_limit: 3
attempt_delay: 2000
- name: Checkout submodules
- run: scripts/checkout_submodules.py --shallow --platform p6
+ run: scripts/checkout_submodules.py --shallow --platform infineon
- name: Set up environment for size reports
if: ${{ !env.ACT }}
@@ -63,65 +64,97 @@
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- - name: Build lock-app example
+ - name: Build PSoC6 lock-app example
timeout-minutes: 15
run: |
scripts/run_in_build_env.sh \
"scripts/build/build_examples.py \
--enable-flashbundle --no-log-timestamps \
- --target infineon-p6-lock \
+ --target infineon-psoc6-lock \
build \
--copy-artifacts-to out/artifacts \
"
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
- p6 default lock-app \
- out/infineon-p6-lock/chip-p6-lock-example.out
- - name: Build all-clusters-app example
+ psoc6 cy8ckit_062s2_43012 lock \
+ out/artifacts/infineon-psoc6-lock/chip-psoc6-lock-example.out \
+ /tmp/bloat_reports/
+ - name: Build PSoC6 all-clusters-app example
timeout-minutes: 20
run: |
scripts/run_in_build_env.sh \
"scripts/build/build_examples.py \
--enable-flashbundle --no-log-timestamps \
- --target infineon-p6-all-clusters \
+ --target infineon-psoc6-all-clusters \
build \
--copy-artifacts-to out/artifacts \
"
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
- p6 default all-clusters-app \
- out/infineon-p6-all-clusters/chip-p6-clusters-example.out
- - name: Build all-clusters-minimal-app example
+ psoc6 cy8ckit_062s2_43012 all-clusters \
+ out/artifacts/infineon-psoc6-all-clusters/chip-psoc6-clusters-example.out \
+ /tmp/bloat_reports/
+ - name: Build PSoC6 all-clusters-minimal-app example
timeout-minutes: 20
run: |
scripts/run_in_build_env.sh \
"scripts/build/build_examples.py \
--enable-flashbundle --no-log-timestamps \
- --target infineon-p6-all-clusters-minimal \
+ --target infineon-psoc6-all-clusters-minimal \
build \
--copy-artifacts-to out/artifacts \
"
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
- p6 default all-clusters-minimal-app \
- out/infineon-p6-all-clusters-minimal/chip-p6-clusters-minimal-example.out
- - name: Build lighting-app example
+ psoc6 cy8ckit_062s2_43012 all-clusters-minimal \
+ out/artifacts/infineon-psoc6-all-clusters-minimal/chip-psoc6-clusters-minimal-example.out \
+ /tmp/bloat_reports/
+ - name: Build PSoC6 lighting-app example
timeout-minutes: 15
run: |
scripts/run_in_build_env.sh \
"scripts/build/build_examples.py \
--enable-flashbundle --no-log-timestamps \
- --target infineon-p6-light \
+ --target infineon-psoc6-light \
build \
--copy-artifacts-to out/artifacts \
"
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
- p6 default light-app \
- out/infineon-p6-light/chip-p6-lighting-example.out
+ psoc6 cy8ckit_062s2_43012 light \
+ out/artifacts/infineon-psoc6-light/chip-psoc6-lighting-example.out \
+ /tmp/bloat_reports/
+
+ - name: Build example CYW30739 Apps
+ timeout-minutes: 30
+ run: |
+ ./scripts/run_in_build_env.sh \
+ "./scripts/build/build_examples.py \
+ --target-glob 'cyw30739-cyw930739m2evb_01-{light,lock,ota-requestor-no-progress-logging}' \
+ build \
+ --copy-artifacts-to out/artifacts \
+ "
+ - name: Get light size stats
+ timeout-minutes: 5
+ run: |
+ .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
+ cyw30739 cyw930739m2evb_01 light \
+ out/artifacts/cyw30739-cyw930739m2evb_01-light/chip-cyw30739-lighting-example.elf \
+ /tmp/bloat_reports/
+ - name: Get lock size stats
+ timeout-minutes: 5
+ run: |
+ .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
+ cyw30739 cyw930739m2evb_01 lock \
+ out/artifacts/cyw30739-cyw930739m2evb_01-lock/chip-cyw30739-lock-example.elf \
+ /tmp/bloat_reports/
+ - name: Get ota-requestor size stats
+ timeout-minutes: 5
+ run: |
+ .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
+ cyw30739 cyw930739m2evb_01 ota-requestor-no-progress-logging \
+ out/artifacts/cyw30739-cyw930739m2evb_01-ota-requestor-no-progress-logging/chip-cyw30739-ota-requestor-example.elf \
+ /tmp/bloat_reports/
- name: Uploading Size Reports
uses: actions/upload-artifact@v2
if: ${{ !env.ACT }}
with:
- name: Size,P6-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }}
+ name: Size,Infineon-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }}
path: |
- out/infineon-p6-lock/p6-default-lock-app-sizes.json
- out/infineon-p6-all-clusters/p6-default-all-clusters-app-sizes.json
- out/infineon-p6-all-clusters-minimal/p6-default-all-clusters-minimal-app-sizes.json
- out/infineon-p6-light/p6-default-light-app-sizes.json
+ /tmp/bloat_reports/
diff --git a/.gitmodules b/.gitmodules
index abde0e5..2f40b45 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -62,7 +62,7 @@
path = third_party/freertos/repo
url = https://github.com/FreeRTOS/FreeRTOS-Kernel.git
branch = V10.3.1-kernel-only
- platforms = ameba,cc13x2_26x2,bl602,efr32,esp32,k32w0,p6,qpg
+ platforms = ameba,cc13x2_26x2,bl602,efr32,esp32,k32w0,infineon,qpg
[submodule "simw-top-mini"]
path = third_party/simw-top-mini/repo
url = https://github.com/NXP/plug-and-trust.git
@@ -84,7 +84,7 @@
[submodule "third_party/openthread/ot-ifx"]
path = third_party/openthread/ot-ifx
url = https://github.com/Infineon/ot-ifx-release.git
- platforms = cyw30739
+ platforms = infineon
[submodule "third_party/mbed-os/repo"]
path = third_party/mbed-os/repo
url = https://github.com/ARMmbed/mbed-os.git
@@ -101,129 +101,129 @@
branch = main
platforms = mbed
[submodule "p6/abstraction-rtos"]
- path = third_party/p6/p6_sdk/libs/abstraction-rtos
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/abstraction-rtos
url = https://github.com/Infineon/abstraction-rtos
- platforms = p6
+ platforms = infineon
[submodule "p6/bluetooth-freertos"]
- path = third_party/p6/p6_sdk/libs/bluetooth-freertos
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/bluetooth-freertos
url = https://github.com/Infineon/bluetooth-freertos
branch = v2.X
- platforms = p6
+ platforms = infineon
[submodule "p6/btstack"]
- path = third_party/p6/p6_sdk/libs/btstack
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/btstack
url = https://github.com/Infineon/btstack
- platforms = p6
+ platforms = infineon
[submodule "p6/clib-support"]
- path = third_party/p6/p6_sdk/libs/clib-support
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/clib-support
url = https://github.com/Infineon/clib-support
- platforms = p6
+ platforms = infineon
[submodule "p6/connectivity-utilities"]
- path = third_party/p6/p6_sdk/libs/connectivity-utilities
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/connectivity-utilities
url = https://github.com/Infineon/connectivity-utilities
- platforms = p6
+ platforms = infineon
[submodule "p6/core-lib"]
- path = third_party/p6/p6_sdk/libs/core-lib
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/core-lib
url = https://github.com/Infineon/core-lib
- platforms = p6
+ platforms = infineon
[submodule "p6/core-make"]
- path = third_party/p6/p6_sdk/libs/core-make
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/core-make
url = https://github.com/Infineon/core-make
- platforms = p6
+ platforms = infineon
[submodule "p6/kv-store"]
- path = third_party/p6/p6_sdk/libs/kv-store
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/kv-store
url = https://github.com/Infineon/kv-store
- platforms = p6
+ platforms = infineon
[submodule "p6/mtb-hal-cat1"]
- path = third_party/p6/p6_sdk/libs/mtb-hal-cat1
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/mtb-hal-cat1
url = https://github.com/Infineon/mtb-hal-cat1
- platforms = p6
+ platforms = infineon
[submodule "p6/mtb-pdl-cat1"]
- path = third_party/p6/p6_sdk/libs/mtb-pdl-cat1
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/mtb-pdl-cat1
url = https://github.com/Infineon/mtb-pdl-cat1
- platforms = p6
+ platforms = infineon
[submodule "p6/psoc6cm0p"]
- path = third_party/p6/p6_sdk/libs/psoc6cm0p
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/psoc6cm0p
url = https://github.com/Infineon/psoc6cm0p
- platforms = p6
+ platforms = infineon
[submodule "p6/whd-bsp-integration"]
- path = third_party/p6/p6_sdk/libs/whd-bsp-integration
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/whd-bsp-integration
url = https://github.com/Infineon/whd-bsp-integration
- platforms = p6
+ platforms = infineon
[submodule "p6/wifi-connection-manager"]
- path = third_party/p6/p6_sdk/libs/wifi-connection-manager
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/wifi-connection-manager
url = https://github.com/Infineon/wifi-connection-manager
- platforms = p6
+ platforms = infineon
[submodule "p6/wifi-host-driver"]
- path = third_party/p6/p6_sdk/libs/wifi-host-driver
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/wifi-host-driver
url = https://github.com/Infineon/wifi-host-driver
- platforms = p6
+ platforms = infineon
[submodule "p6/wifi-mw-core"]
- path = third_party/p6/p6_sdk/libs/wifi-mw-core
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/wifi-mw-core
url = https://github.com/Infineon/wifi-mw-core
- platforms = p6
+ platforms = infineon
[submodule "p6/TARGET_CY8CKIT-062S2-43012"]
- path = third_party/p6/p6_sdk/libs/TARGET_CY8CKIT-062S2-43012
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/TARGET_CY8CKIT-062S2-43012
url = https://github.com/Infineon/TARGET_CY8CKIT-062S2-43012
- platforms = p6
+ platforms = infineon
[submodule "p6/freertos"]
- path = third_party/p6/p6_sdk/libs/freertos
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/freertos
url = https://github.com/Infineon/freertos
- platforms = p6
+ platforms = infineon
[submodule "p6/retarget-io"]
- path = third_party/p6/p6_sdk/libs/retarget-io
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/retarget-io
url = https://github.com/Infineon/retarget-io
- platforms = p6
+ platforms = infineon
[submodule "p6/mbedtls"]
- path = third_party/p6/p6_sdk/libs/mbedtls
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/mbedtls
url = https://github.com/ARMmbed/mbedtls
- platforms = p6
+ platforms = infineon
[submodule "p6/secure-sockets"]
- path = third_party/p6/p6_sdk/libs/secure-sockets
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/secure-sockets
url = https://github.com/Infineon/secure-sockets
- platforms = p6
+ platforms = infineon
[submodule "p6/recipe-make-cat1a"]
- path = third_party/p6/p6_sdk/libs/recipe-make-cat1a
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/recipe-make-cat1a
url = https://github.com/Infineon/recipe-make-cat1a
- platforms = p6
+ platforms = infineon
[submodule "third_party/pybind11/repo"]
path = third_party/pybind11/repo
url = https://github.com/pybind/pybind11
branch = stable
[submodule "p6/lwip"]
- path = third_party/p6/p6_sdk/libs/lwip
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/lwip
url = https://github.com/lwip-tcpip/lwip.git
- platforms = p6
+ platforms = infineon
[submodule "third_party/jsoncpp/repo"]
path = third_party/jsoncpp/repo
url = https://github.com/open-source-parsers/jsoncpp.git
[submodule "cyw30739_sdk/30739A0"]
- path = third_party/cyw30739_sdk/repos/30739A0
+ path = third_party/infineon/cyw30739_sdk/repos/30739A0
url = https://github.com/Infineon/OT-Matter-30739A0.git
- platforms = cyw30739
+ platforms = infineon
[submodule "cyw30739_sdk/include"]
- path = third_party/cyw30739_sdk/repos/btsdk-include
+ path = third_party/infineon/cyw30739_sdk/repos/btsdk-include
url = https://github.com/Infineon/btsdk-include.git
- platforms = cyw30739
+ platforms = infineon
[submodule "cyw30739_sdk/target"]
- path = third_party/cyw30739_sdk/repos/CYW930739M2EVB-01
+ path = third_party/infineon/cyw30739_sdk/repos/CYW930739M2EVB-01
url = https://github.com/Infineon/OT-Matter-TARGET_CYW930739M2EVB-01.git
- platforms = cyw30739
+ platforms = infineon
[submodule "cyw30739_sdk/tools"]
- path = third_party/cyw30739_sdk/repos/btsdk-tools
+ path = third_party/infineon/cyw30739_sdk/repos/btsdk-tools
url = https://github.com/Infineon/btsdk-tools.git
- platforms = cyw30739
+ platforms = infineon
[submodule "third_party/p6/p6_sdk/libs/anycloud-ota"]
- path = third_party/p6/p6_sdk/libs/anycloud-ota
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/anycloud-ota
url = https://github.com/Infineon/anycloud-ota
- platforms = p6
+ platforms = infineon
[submodule "third_party/mbed-mcu-boot/repo"]
path = third_party/mbed-mcu-boot/repo
url = https://github.com/ATmobica/mcuboot.git
platforms = mbed
[submodule "p6/serial-flash"]
- path = third_party/p6/p6_sdk/libs/serial-flash
+ path = third_party/infineon/psoc6/psoc6_sdk/libs/serial-flash
url = https://github.com/Infineon/serial-flash
- platforms = p6
+ platforms = infineon
[submodule "third_party/telink_sdk/repo"]
path = third_party/telink_sdk/repo
url = https://github.com/telink-semi/telink_b91_ble_single_connection_sdk_matter
diff --git a/BUILD.gn b/BUILD.gn
index a233ab2..7dbbb83 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -271,8 +271,8 @@
# Set this to true to enable efr32 builds by default.
enable_efr32_builds = false
- # Set this to true to enable p6 builds by default.
- enable_p6_builds = false
+ # Set this to true to enable psoc6 builds by default.
+ enable_psoc6_builds = false
# Set this to true to enable Qorvo qpg builds by default.
enable_qpg_builds = false
@@ -364,8 +364,8 @@
# Build the efr32 lock app example.
enable_efr32_lock_app_build = enable_efr32_builds
- # Build the p6 lock app example.
- enable_p6_lock_app_build = enable_p6_builds
+ # Build the psoc6 lock app example.
+ enable_psoc6_lock_app_build = enable_psoc6_builds
# Build the qpgxxxx lock app example.
enable_qpg_lock_app_build = enable_qpg_builds && !is_debug
@@ -610,12 +610,12 @@
extra_build_deps += [ ":efr32_lock_app" ]
}
- if (enable_p6_lock_app_build) {
- group("p6_lock_app") {
- deps = [ "${chip_root}/examples/lock-app/p6(${chip_root}/config/p6/toolchain:p6_lock_app)" ]
+ if (enable_psoc6_lock_app_build) {
+ group("psoc6_lock_app") {
+ deps = [ "${chip_root}/examples/lock-app/infineon/psoc6(${chip_root}/config/psoc6/toolchain:psoc6_lock_app)" ]
}
- extra_build_deps += [ ":p6_lock_app" ]
+ extra_build_deps += [ ":psoc6_lock_app" ]
}
if (enable_qpg_lock_app_build) {
diff --git a/build_overrides/p6.gni b/build_overrides/psoc6.gni
similarity index 75%
rename from build_overrides/p6.gni
rename to build_overrides/psoc6.gni
index 0ae9c54..a4fc95b 100644
--- a/build_overrides/p6.gni
+++ b/build_overrides/psoc6.gni
@@ -13,11 +13,11 @@
# limitations under the License.
declare_args() {
- # Root directory for p6 SDK build files.
- p6_sdk_build_root = "//third_party/p6"
+ # Root directory for psoc6 SDK build files.
+ psoc6_sdk_build_root = "//third_party/infineon/psoc6"
}
declare_args() {
- # Root directory for p6 SDK sources.
- p6_sdk_root = "${p6_sdk_build_root}/p6_sdk"
+ # Root directory for psoc6 SDK sources.
+ psoc6_sdk_root = "${psoc6_sdk_build_root}/psoc6_sdk"
}
diff --git a/config/p6/toolchain/BUILD.gn b/config/psoc6/toolchain/BUILD.gn
similarity index 88%
rename from config/p6/toolchain/BUILD.gn
rename to config/psoc6/toolchain/BUILD.gn
index 219ae1b..5420125 100644
--- a/config/p6/toolchain/BUILD.gn
+++ b/config/psoc6/toolchain/BUILD.gn
@@ -17,9 +17,9 @@
import("${build_root}/toolchain/arm_gcc/arm_toolchain.gni")
-arm_toolchain("p6_lock_app") {
+arm_toolchain("psoc6_lock_app") {
toolchain_args = {
current_os = "freertos"
- import("${chip_root}/examples/lock-app/p6/args.gni")
+ import("${chip_root}/examples/lock-app/infineon/psoc6/args.gni")
}
}
diff --git a/docs/guides/README.md b/docs/guides/README.md
index 09f3f9c..44d0a8d 100644
--- a/docs/guides/README.md
+++ b/docs/guides/README.md
@@ -5,7 +5,7 @@
- [Android - Building](./android_building.md)
- [Apple - Testing with iPhone, iPad, macOS, Apple TV, HomePod, Watch, etc](./darwin.md)
- [Espressif (ESP32) - Getting Started Guide](./esp32/README.md)
-- [Infineon - Software Update](./infineon_p6_software_update.md)
+- [Infineon PSoC6 - Software Update](./infineon_psoc6_software_update.md)
- [Linux - Simulated Devices](./simulated_device_linux.md)
- [mbedOS - Adding a new target](./mbedos_add_new_target.md)
- [mbedOS - Commissioning](./mbedos_commissioning.md)
diff --git a/docs/guides/darwin.md b/docs/guides/darwin.md
index 2d9443d..b28a992 100644
--- a/docs/guides/darwin.md
+++ b/docs/guides/darwin.md
@@ -205,7 +205,6 @@
##### Guides
- [Bouffalo Lab](/examples/lighting-app/bouffalolab/bl602/README.md)
-- [CYW30739 Lighting](/examples/lighting-app/cyw30739/README.md)
- [EFR32 Window Covering](/examples/window-app/efr32/README.md)
- [ESP32 All Clusters](/examples/all-clusters-app/esp32/README.md)
- [ESP32 Lighting](/examples/lighting-app/esp32/README.md)
@@ -215,7 +214,8 @@
- [nRF Connect Pump](/examples/pump-app/nrfconnect/README.md)
- [NXP Examples](./nxp_imx8m_linux_examples.md)
- [NXP](/examples/all-clusters-app/nxp/mw320/README.md)
-- [P6](/examples/all-clusters-app/p6/README.md)
+- [Infineon CYW30739 Lighting](/examples/lighting-app/infineon/cyw30739/README.md)
+- [Infineon PSoC6](/examples/all-clusters-app/infineon/psoc6/README.md)
- [Qorvo](/examples/lighting-app/qpg/README.md)
- [SiliconLabs](./silabs_efr32_building.md)
- [Simulated Linux](./simulated_device_linux.md)
diff --git a/docs/guides/infineon_p6_software_update.md b/docs/guides/infineon_psoc6_software_update.md
similarity index 75%
rename from docs/guides/infineon_p6_software_update.md
rename to docs/guides/infineon_psoc6_software_update.md
index 136f577..7cddc02 100644
--- a/docs/guides/infineon_p6_software_update.md
+++ b/docs/guides/infineon_psoc6_software_update.md
@@ -1,8 +1,8 @@
-# Matter Software Update with Infineon P6 example applications
+# Matter Software Update with Infineon PSoC6 example applications
The Over The Air (OTA) Software Update functionality can be added to any of the
-Infineon P6 example applications by passing the `chip_enable_ota_requestor=true`
-option to the build script.
+Infineon PSoC6 example applications by passing the
+`chip_enable_ota_requestor=true` option to the build script.
## Running the OTA Download scenario
@@ -11,7 +11,7 @@
OTA Requestor is any node that needs to be updated and can communicate with
the OTA Provider to fetch applicable software updates. In the procedure
described below, the OTA Provider will be a Linux application and the
- example running on the Infineon P6 board will work as the OTA Requestor.
+ example running on the Infineon PSoC6 board will work as the OTA Requestor.
- On a Linux or Darwin platform build the chip-tool and the ota-provider-app
as follows:
@@ -21,33 +21,33 @@
scripts/examples/gn_build_example.sh examples/ota-provider-app/linux out/debug chip_config_network_layer_ble=false
```
-- Build the P6 OTA Requestor application from the chip root dir:
+- Build the PSoC6 OTA Requestor application from the chip root dir:
```
- $ scripts/build/build_examples.py --enable-flashbundle --target infineon-p6-lock-ota build
- $ third_party/p6/p6_sdk/ota/ota_base_build.sh out/infineon-p6-lock-ota chip-p6-lock-example
+ $ scripts/build/build_examples.py --enable-flashbundle --target infineon-psoc6-lock-ota build
+ $ third_party/psoc6/psoc6_sdk/ota/ota_base_build.sh out/infineon-psoc6-lock-ota chip-psoc6-lock-example
```
-- Build the P6 OTA Update application from the chip root dir and create OTA
+- Build the PSoC6 OTA Update application from the chip root dir and create OTA
file
```
- $ scripts/build/build_examples.py --enable-flashbundle --no-log-timestamps --target infineon-p6-lock-ota-updateimage build
- $ third_party/p6/p6_sdk/ota/ota_update_build.sh out/infineon-p6-lock-ota-updateimage chip-p6-lock-example
+ $ scripts/build/build_examples.py --enable-flashbundle --no-log-timestamps --target infineon-psoc6-lock-ota-updateimage build
+ $ third_party/psoc6/psoc6_sdk/ota/ota_update_build.sh out/infineon-psoc6-lock-ota-updateimage chip-psoc6-lock-example
```
* Additionally a pre-compiled bootloader must be flashed to the board using
[Cypress Programmer](https://softwaretools.infineon.com/tools/com.ifx.tb.tool.cypressprogrammer).
This image can be found at:
- $ ./third_party/p6/p6_sdk/ota/matter-psoc6-mcuboot-bootloader.hex
+ $ ./third_party/psoc6/psoc6_sdk/ota/matter-psoc6-mcuboot-bootloader.hex
* In a terminal start the Provider app passing to it the path to the Matter
OTA file created in the previous step:(output of ota_update_build step)
```
rm -r /tmp/chip_*
- ./out/debug/chip-ota-provider-app -f chip-p6-lock-example.ota
+ ./out/debug/chip-ota-provider-app -f chip-psoc6-lock-example.ota
```
* In a separate terminal run the chip-tool commands to provision the Provider:
diff --git a/examples/all-clusters-app/p6/.gn b/examples/all-clusters-app/infineon/psoc6/.gn
similarity index 100%
rename from examples/all-clusters-app/p6/.gn
rename to examples/all-clusters-app/infineon/psoc6/.gn
diff --git a/examples/all-clusters-app/p6/BUILD.gn b/examples/all-clusters-app/infineon/psoc6/BUILD.gn
similarity index 78%
rename from examples/all-clusters-app/p6/BUILD.gn
rename to examples/all-clusters-app/infineon/psoc6/BUILD.gn
index 1fa8739..a92d8fb 100644
--- a/examples/all-clusters-app/p6/BUILD.gn
+++ b/examples/all-clusters-app/infineon/psoc6/BUILD.gn
@@ -14,17 +14,17 @@
import("//build_overrides/build.gni")
import("//build_overrides/chip.gni")
-import("//build_overrides/p6.gni")
+import("//build_overrides/psoc6.gni")
import("${build_root}/config/defaults.gni")
import("${chip_root}/src/platform/device.gni")
-import("${p6_sdk_build_root}/p6_executable.gni")
-import("${p6_sdk_build_root}/p6_sdk.gni")
+import("${psoc6_sdk_build_root}/psoc6_executable.gni")
+import("${psoc6_sdk_build_root}/psoc6_sdk.gni")
assert(current_os == "freertos")
-p6_project_dir = "${chip_root}/examples/all-clusters-app/p6"
-examples_plat_dir = "${chip_root}/examples/platform/p6"
+psoc6_project_dir = "${chip_root}/examples/all-clusters-app/infineon/psoc6"
+examples_plat_dir = "${chip_root}/examples/platform/infineon/psoc6"
declare_args() {
# Dump memory usage at link time.
@@ -40,8 +40,8 @@
build_update_image = false
}
-config("p6_ota_config") {
- linker_script = "${p6_sdk_root}/ota/cy8c6xxa_cm4_dual_ota_int.ld"
+config("psoc6_ota_config") {
+ linker_script = "${psoc6_sdk_root}/ota/cy8c6xxa_cm4_dual_ota_int.ld"
ldflags = [ "-T" + rebase_path(linker_script, root_build_dir) ]
@@ -78,38 +78,39 @@
}
}
-p6_sdk_sources("all_clusters_app_sdk_sources") {
+psoc6_sdk_sources("all_clusters_app_sdk_sources") {
include_dirs = [
- "${chip_root}/src/platform/P6",
- "${p6_project_dir}/include",
+ "${chip_root}/src/platform/PSOC6",
+ "${psoc6_project_dir}/include",
"${examples_plat_dir}",
]
defines = [
- "BOARD_ID=${p6_board}",
+ "BOARD_ID=${psoc6_board}",
"P6_LOG_ENABLED=1",
"CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE=${setup_pin_code}",
]
- sources = [ "${p6_project_dir}/include/CHIPProjectConfig.h" ]
+ sources = [ "${psoc6_project_dir}/include/CHIPProjectConfig.h" ]
- public_configs = [ "${chip_root}/third_party/p6:p6_sdk_config" ]
+ public_configs =
+ [ "${chip_root}/third_party/infineon/psoc6:psoc6_sdk_config" ]
if (chip_enable_ota_requestor) {
- public_configs += [ ":p6_ota_config" ]
+ public_configs += [ ":psoc6_ota_config" ]
}
}
-p6_executable("clusters_app") {
+psoc6_executable("clusters_app") {
include_dirs = []
defines = []
- output_name = "chip-p6-clusters-example.out"
+ output_name = "chip-psoc6-clusters-example.out"
sources = [
"${chip_root}/examples/all-clusters-app/all-clusters-common/src/bridged-actions-stub.cpp",
"${chip_root}/examples/all-clusters-app/all-clusters-common/src/static-supported-modes-manager.cpp",
"${examples_plat_dir}/LEDWidget.cpp",
- "${examples_plat_dir}/init_p6Platform.cpp",
+ "${examples_plat_dir}/init_psoc6Platform.cpp",
"src/AppTask.cpp",
"src/ButtonHandler.cpp",
"src/ClusterManager.cpp",
@@ -129,7 +130,7 @@
include_dirs += [
"include",
"${examples_plat_dir}",
- "${p6_project_dir}/include",
+ "${psoc6_project_dir}/include",
"${chip_root}/examples/all-clusters-app/all-clusters-common/include",
]
@@ -150,10 +151,10 @@
output_dir = root_out_dir
}
-group("p6") {
+group("psoc6") {
deps = [ ":clusters_app" ]
}
group("default") {
- deps = [ ":p6" ]
+ deps = [ ":psoc6" ]
}
diff --git a/examples/all-clusters-app/p6/README.md b/examples/all-clusters-app/infineon/psoc6/README.md
similarity index 75%
rename from examples/all-clusters-app/p6/README.md
rename to examples/all-clusters-app/infineon/psoc6/README.md
index d218c24..c28c43d 100644
--- a/examples/all-clusters-app/p6/README.md
+++ b/examples/all-clusters-app/infineon/psoc6/README.md
@@ -1,10 +1,10 @@
-#CHIP P6 All Clusters Example
+#CHIP PSoC6 All Clusters Example
An example showing the use of Matter on the Infineon CY8CKIT-062S2-43012 board.
<hr>
-- [Matter P6 All Clusters Example](#chip-p6-clusters-example)
+- [Matter PSoC6 All Clusters Example](#chip-psoc6-clusters-example)
- [Introduction](#introduction)
- [Building](#building)
- [Flashing the Application](#flashing-the-application)
@@ -20,13 +20,13 @@
## Introduction
-The P6 clusters example provides a baseline demonstration of a Cluster control
-device, built using Matter and the Infineon Modustoolbox SDK. It can be
+The PSoC6 clusters example provides a baseline demonstration of a Cluster
+control device, built using Matter and the Infineon Modustoolbox SDK. It can be
controlled by Matter controller over Wi-Fi network.
-The P6 device can be commissioned over Bluetooth Low Energy where the device and
-the Matter controller will exchange security information with the Rendezvous
-procedure. Wi-Fi Network credentials are then provided to the P6 device which
+The PSoC6 device can be commissioned over Bluetooth Low Energy where the device
+and the Matter controller will exchange security information with the Rendezvous
+procedure. Wi-Fi Network credentials are then provided to the PSoC6 device which
will then join the network.
<a name="building"></a>
@@ -36,8 +36,8 @@
- [Modustoolbox Software](https://www.cypress.com/products/modustoolbox)
Refer to `integrations/docker/images/chip-build-infineon/Dockerfile` or
- `scripts/examples/gn_p6_example.sh` for downloading the Software and related
- tools.
+ `scripts/examples/gn_psoc6_example.sh` for downloading the Software and
+ related tools.
- Install some additional tools (likely already present for Matter
developers):
@@ -54,7 +54,7 @@
* Build the example application:
$ source scripts/activate.sh
- $ scripts/build/build_examples.py --no-log-timestamps --target 'infineon-p6-all-clusters' build
+ $ scripts/build/build_examples.py --no-log-timestamps --target 'infineon-psoc6-all-clusters' build
- To delete generated executable, libraries and object files use:
@@ -72,7 +72,7 @@
- On the command line:
$ cd ~/connectedhomeip
- $ python3 out/infineon-p6-all-clusters/chip-p6-clusters-example.flash.py
+ $ python3 out/infineon-psoc6-all-clusters/chip-psoc6-clusters-example.flash.py
<a name="Commissioning and cluster control"></a>
@@ -84,7 +84,7 @@
### Setting up Chip tool
-Once P6 is up and running, we need to set up chip-tool on Raspberry Pi 4 to
+Once PSoC6 is up and running, we need to set up chip-tool on Raspberry Pi 4 to
perform commissioning and cluster control.
- Set up python controller.
@@ -125,6 +125,6 @@
## OTA Software Update
-For the description of Software Update process with infineon P6 example
+For the description of Software Update process with infineon PSoC6 example
applications see
-[Infineon P6 OTA Software Update](../../../docs/guides/infineon_p6_software_update.md)
+[Infineon PSoC6 OTA Software Update](../../../../docs/guides/infineon_psoc6_software_update.md)
diff --git a/examples/all-clusters-app/p6/args.gni b/examples/all-clusters-app/infineon/psoc6/args.gni
similarity index 89%
rename from examples/all-clusters-app/p6/args.gni
rename to examples/all-clusters-app/infineon/psoc6/args.gni
index 2a93385..ce7a2ab 100644
--- a/examples/all-clusters-app/p6/args.gni
+++ b/examples/all-clusters-app/infineon/psoc6/args.gni
@@ -14,7 +14,7 @@
import("//build_overrides/chip.gni")
import("//build_overrides/pigweed.gni")
-import("${chip_root}/src/platform/P6/args.gni")
+import("${chip_root}/src/platform/Infineon/PSOC6/args.gni")
-p6_target_project =
+psoc6_target_project =
get_label_info(":all_clusters_app_sdk_sources", "label_no_toolchain")
diff --git a/examples/all-clusters-app/infineon/psoc6/build_overrides b/examples/all-clusters-app/infineon/psoc6/build_overrides
new file mode 120000
index 0000000..ee19c06
--- /dev/null
+++ b/examples/all-clusters-app/infineon/psoc6/build_overrides
@@ -0,0 +1 @@
+../../../build_overrides/
\ No newline at end of file
diff --git a/examples/all-clusters-app/p6/include/AppConfig.h b/examples/all-clusters-app/infineon/psoc6/include/AppConfig.h
similarity index 100%
rename from examples/all-clusters-app/p6/include/AppConfig.h
rename to examples/all-clusters-app/infineon/psoc6/include/AppConfig.h
diff --git a/examples/all-clusters-app/p6/include/AppEvent.h b/examples/all-clusters-app/infineon/psoc6/include/AppEvent.h
similarity index 100%
rename from examples/all-clusters-app/p6/include/AppEvent.h
rename to examples/all-clusters-app/infineon/psoc6/include/AppEvent.h
diff --git a/examples/all-clusters-app/p6/include/AppTask.h b/examples/all-clusters-app/infineon/psoc6/include/AppTask.h
similarity index 100%
rename from examples/all-clusters-app/p6/include/AppTask.h
rename to examples/all-clusters-app/infineon/psoc6/include/AppTask.h
diff --git a/examples/all-clusters-app/p6/include/ButtonHandler.h b/examples/all-clusters-app/infineon/psoc6/include/ButtonHandler.h
similarity index 100%
rename from examples/all-clusters-app/p6/include/ButtonHandler.h
rename to examples/all-clusters-app/infineon/psoc6/include/ButtonHandler.h
diff --git a/examples/all-clusters-app/p6/include/CHIPProjectConfig.h b/examples/all-clusters-app/infineon/psoc6/include/CHIPProjectConfig.h
similarity index 100%
rename from examples/all-clusters-app/p6/include/CHIPProjectConfig.h
rename to examples/all-clusters-app/infineon/psoc6/include/CHIPProjectConfig.h
diff --git a/examples/all-clusters-app/p6/include/ClusterManager.h b/examples/all-clusters-app/infineon/psoc6/include/ClusterManager.h
similarity index 100%
rename from examples/all-clusters-app/p6/include/ClusterManager.h
rename to examples/all-clusters-app/infineon/psoc6/include/ClusterManager.h
diff --git a/examples/all-clusters-app/p6/src/AppTask.cpp b/examples/all-clusters-app/infineon/psoc6/src/AppTask.cpp
similarity index 98%
rename from examples/all-clusters-app/p6/src/AppTask.cpp
rename to examples/all-clusters-app/infineon/psoc6/src/AppTask.cpp
index 6156609..4e0d1c8 100644
--- a/examples/all-clusters-app/p6/src/AppTask.cpp
+++ b/examples/all-clusters-app/infineon/psoc6/src/AppTask.cpp
@@ -42,7 +42,7 @@
#include <DeviceInfoProviderImpl.h>
#include <app/clusters/network-commissioning/network-commissioning.h>
-#include <platform/P6/NetworkCommissioningDriver.h>
+#include <platform/Infineon/PSOC6/NetworkCommissioningDriver.h>
/* OTA related includes */
#if CHIP_DEVICE_CONFIG_ENABLE_OTA_REQUESTOR
@@ -50,7 +50,7 @@
#include <app/clusters/ota-requestor/DefaultOTARequestor.h>
#include <app/clusters/ota-requestor/DefaultOTARequestorDriver.h>
#include <app/clusters/ota-requestor/DefaultOTARequestorStorage.h>
-#include <platform/P6/OTAImageProcessorImpl.h>
+#include <platform/Infineon/PSOC6/OTAImageProcessorImpl.h>
using chip::BDXDownloader;
using chip::CharSpan;
diff --git a/examples/all-clusters-app/p6/src/ButtonHandler.cpp b/examples/all-clusters-app/infineon/psoc6/src/ButtonHandler.cpp
similarity index 100%
rename from examples/all-clusters-app/p6/src/ButtonHandler.cpp
rename to examples/all-clusters-app/infineon/psoc6/src/ButtonHandler.cpp
diff --git a/examples/all-clusters-app/p6/src/ClusterManager.cpp b/examples/all-clusters-app/infineon/psoc6/src/ClusterManager.cpp
similarity index 100%
rename from examples/all-clusters-app/p6/src/ClusterManager.cpp
rename to examples/all-clusters-app/infineon/psoc6/src/ClusterManager.cpp
diff --git a/examples/all-clusters-app/p6/src/ZclCallbacks.cpp b/examples/all-clusters-app/infineon/psoc6/src/ZclCallbacks.cpp
similarity index 100%
rename from examples/all-clusters-app/p6/src/ZclCallbacks.cpp
rename to examples/all-clusters-app/infineon/psoc6/src/ZclCallbacks.cpp
diff --git a/examples/all-clusters-app/p6/src/main.cpp b/examples/all-clusters-app/infineon/psoc6/src/main.cpp
similarity index 98%
rename from examples/all-clusters-app/p6/src/main.cpp
rename to examples/all-clusters-app/infineon/psoc6/src/main.cpp
index 7f38b51..84b1961 100644
--- a/examples/all-clusters-app/p6/src/main.cpp
+++ b/examples/all-clusters-app/infineon/psoc6/src/main.cpp
@@ -36,7 +36,7 @@
#include "AppConfig.h"
#include "cyhal_wdt.h"
-#include "init_p6Platform.h"
+#include "init_psoc6Platform.h"
#include <app/server/Server.h>
#ifdef HEAP_MONITORING
diff --git a/examples/all-clusters-app/infineon/psoc6/third_party/connectedhomeip b/examples/all-clusters-app/infineon/psoc6/third_party/connectedhomeip
new file mode 120000
index 0000000..3efed95
--- /dev/null
+++ b/examples/all-clusters-app/infineon/psoc6/third_party/connectedhomeip
@@ -0,0 +1 @@
+../../../../../
\ No newline at end of file
diff --git a/examples/all-clusters-app/p6/build_overrides b/examples/all-clusters-app/p6/build_overrides
deleted file mode 120000
index 194ee0b..0000000
--- a/examples/all-clusters-app/p6/build_overrides
+++ /dev/null
@@ -1 +0,0 @@
-../../build_overrides/
\ No newline at end of file
diff --git a/examples/all-clusters-app/p6/third_party/connectedhomeip b/examples/all-clusters-app/p6/third_party/connectedhomeip
deleted file mode 120000
index 11a54ed..0000000
--- a/examples/all-clusters-app/p6/third_party/connectedhomeip
+++ /dev/null
@@ -1 +0,0 @@
-../../../../
\ No newline at end of file
diff --git a/examples/all-clusters-minimal-app/p6/.gn b/examples/all-clusters-minimal-app/infineon/psoc6/.gn
similarity index 100%
rename from examples/all-clusters-minimal-app/p6/.gn
rename to examples/all-clusters-minimal-app/infineon/psoc6/.gn
diff --git a/examples/all-clusters-minimal-app/p6/BUILD.gn b/examples/all-clusters-minimal-app/infineon/psoc6/BUILD.gn
similarity index 78%
rename from examples/all-clusters-minimal-app/p6/BUILD.gn
rename to examples/all-clusters-minimal-app/infineon/psoc6/BUILD.gn
index 53d303c..2b90698 100644
--- a/examples/all-clusters-minimal-app/p6/BUILD.gn
+++ b/examples/all-clusters-minimal-app/infineon/psoc6/BUILD.gn
@@ -14,17 +14,18 @@
import("//build_overrides/build.gni")
import("//build_overrides/chip.gni")
-import("//build_overrides/p6.gni")
+import("//build_overrides/psoc6.gni")
import("${build_root}/config/defaults.gni")
import("${chip_root}/src/platform/device.gni")
-import("${p6_sdk_build_root}/p6_executable.gni")
-import("${p6_sdk_build_root}/p6_sdk.gni")
+import("${psoc6_sdk_build_root}/psoc6_executable.gni")
+import("${psoc6_sdk_build_root}/psoc6_sdk.gni")
assert(current_os == "freertos")
-p6_project_dir = "${chip_root}/examples/all-clusters-minimal-app/p6"
-examples_plat_dir = "${chip_root}/examples/platform/p6"
+psoc6_project_dir =
+ "${chip_root}/examples/all-clusters-minimal-app/infineon/psoc6"
+examples_plat_dir = "${chip_root}/examples/platform/infineon/psoc6"
declare_args() {
# Dump memory usage at link time.
@@ -40,8 +41,8 @@
build_update_image = false
}
-config("p6_ota_config") {
- linker_script = "${p6_sdk_root}/ota/cy8c6xxa_cm4_dual_ota_int.ld"
+config("psoc6_ota_config") {
+ linker_script = "${psoc6_sdk_root}/ota/cy8c6xxa_cm4_dual_ota_int.ld"
ldflags = [ "-T" + rebase_path(linker_script, root_build_dir) ]
@@ -78,38 +79,39 @@
}
}
-p6_sdk_sources("all_clusters_app_sdk_sources") {
+psoc6_sdk_sources("all_clusters_app_sdk_sources") {
include_dirs = [
- "${chip_root}/src/platform/P6",
- "${p6_project_dir}/include",
+ "${chip_root}/src/platform/PSOC6",
+ "${psoc6_project_dir}/include",
"${examples_plat_dir}",
]
defines = [
- "BOARD_ID=${p6_board}",
+ "BOARD_ID=${psoc6_board}",
"P6_LOG_ENABLED=1",
"CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE=${setup_pin_code}",
]
- sources = [ "${p6_project_dir}/include/CHIPProjectConfig.h" ]
+ sources = [ "${psoc6_project_dir}/include/CHIPProjectConfig.h" ]
- public_configs = [ "${chip_root}/third_party/p6:p6_sdk_config" ]
+ public_configs =
+ [ "${chip_root}/third_party/infineon/psoc6:psoc6_sdk_config" ]
if (chip_enable_ota_requestor) {
- public_configs += [ ":p6_ota_config" ]
+ public_configs += [ ":psoc6_ota_config" ]
}
}
-p6_executable("clusters_minimal_app") {
+psoc6_executable("clusters_minimal_app") {
include_dirs = []
defines = []
- output_name = "chip-p6-clusters-minimal-example.out"
+ output_name = "chip-psoc6-clusters-minimal-example.out"
sources = [
"${chip_root}/examples/all-clusters-app/all-clusters-common/src/bridged-actions-stub.cpp",
"${chip_root}/examples/all-clusters-app/all-clusters-common/src/static-supported-modes-manager.cpp",
"${examples_plat_dir}/LEDWidget.cpp",
- "${examples_plat_dir}/init_p6Platform.cpp",
+ "${examples_plat_dir}/init_psoc6Platform.cpp",
"src/AppTask.cpp",
"src/ButtonHandler.cpp",
"src/ClusterManager.cpp",
@@ -129,7 +131,7 @@
include_dirs += [
"include",
"${examples_plat_dir}",
- "${p6_project_dir}/include",
+ "${psoc6_project_dir}/include",
"${chip_root}/examples/all-clusters-app/all-clusters-common/include",
]
@@ -150,10 +152,10 @@
output_dir = root_out_dir
}
-group("p6") {
+group("psoc6") {
deps = [ ":clusters_minimal_app" ]
}
group("default") {
- deps = [ ":p6" ]
+ deps = [ ":psoc6" ]
}
diff --git a/examples/all-clusters-app/p6/README.md b/examples/all-clusters-minimal-app/infineon/psoc6/README.md
similarity index 75%
copy from examples/all-clusters-app/p6/README.md
copy to examples/all-clusters-minimal-app/infineon/psoc6/README.md
index d218c24..1f7a40e 100644
--- a/examples/all-clusters-app/p6/README.md
+++ b/examples/all-clusters-minimal-app/infineon/psoc6/README.md
@@ -1,10 +1,10 @@
-#CHIP P6 All Clusters Example
+#CHIP PSoC6 All Clusters Example
An example showing the use of Matter on the Infineon CY8CKIT-062S2-43012 board.
<hr>
-- [Matter P6 All Clusters Example](#chip-p6-clusters-example)
+- [Matter PSoC6 All Clusters Example](#chip-psoc6-clusters-example)
- [Introduction](#introduction)
- [Building](#building)
- [Flashing the Application](#flashing-the-application)
@@ -20,13 +20,13 @@
## Introduction
-The P6 clusters example provides a baseline demonstration of a Cluster control
-device, built using Matter and the Infineon Modustoolbox SDK. It can be
+The PSoC6 clusters example provides a baseline demonstration of a Cluster
+control device, built using Matter and the Infineon Modustoolbox SDK. It can be
controlled by Matter controller over Wi-Fi network.
-The P6 device can be commissioned over Bluetooth Low Energy where the device and
-the Matter controller will exchange security information with the Rendezvous
-procedure. Wi-Fi Network credentials are then provided to the P6 device which
+The PSoC6 device can be commissioned over Bluetooth Low Energy where the device
+and the Matter controller will exchange security information with the Rendezvous
+procedure. Wi-Fi Network credentials are then provided to the PSoC6 device which
will then join the network.
<a name="building"></a>
@@ -36,8 +36,8 @@
- [Modustoolbox Software](https://www.cypress.com/products/modustoolbox)
Refer to `integrations/docker/images/chip-build-infineon/Dockerfile` or
- `scripts/examples/gn_p6_example.sh` for downloading the Software and related
- tools.
+ `scripts/examples/gn_psoc6_example.sh` for downloading the Software and
+ related tools.
- Install some additional tools (likely already present for Matter
developers):
@@ -54,7 +54,7 @@
* Build the example application:
$ source scripts/activate.sh
- $ scripts/build/build_examples.py --no-log-timestamps --target 'infineon-p6-all-clusters' build
+ $ scripts/build/build_examples.py --no-log-timestamps --target 'infineon-psoc6-all-clusters-minimal' build
- To delete generated executable, libraries and object files use:
@@ -72,7 +72,7 @@
- On the command line:
$ cd ~/connectedhomeip
- $ python3 out/infineon-p6-all-clusters/chip-p6-clusters-example.flash.py
+ $ python3 out/infineon-psoc6-all-clusters-minimal/chip-psoc6-clusters-minimal-example.flash.py
<a name="Commissioning and cluster control"></a>
@@ -84,7 +84,7 @@
### Setting up Chip tool
-Once P6 is up and running, we need to set up chip-tool on Raspberry Pi 4 to
+Once PSoC6 is up and running, we need to set up chip-tool on Raspberry Pi 4 to
perform commissioning and cluster control.
- Set up python controller.
@@ -125,6 +125,6 @@
## OTA Software Update
-For the description of Software Update process with infineon P6 example
+For the description of Software Update process with infineon PSoC6 example
applications see
-[Infineon P6 OTA Software Update](../../../docs/guides/infineon_p6_software_update.md)
+[Infineon PSoC6 OTA Software Update](../../../../docs/guides/infineon_psoc6_software_update.md)
diff --git a/examples/all-clusters-app/p6/args.gni b/examples/all-clusters-minimal-app/infineon/psoc6/args.gni
similarity index 89%
copy from examples/all-clusters-app/p6/args.gni
copy to examples/all-clusters-minimal-app/infineon/psoc6/args.gni
index 2a93385..ce7a2ab 100644
--- a/examples/all-clusters-app/p6/args.gni
+++ b/examples/all-clusters-minimal-app/infineon/psoc6/args.gni
@@ -14,7 +14,7 @@
import("//build_overrides/chip.gni")
import("//build_overrides/pigweed.gni")
-import("${chip_root}/src/platform/P6/args.gni")
+import("${chip_root}/src/platform/Infineon/PSOC6/args.gni")
-p6_target_project =
+psoc6_target_project =
get_label_info(":all_clusters_app_sdk_sources", "label_no_toolchain")
diff --git a/examples/all-clusters-minimal-app/infineon/psoc6/build_overrides b/examples/all-clusters-minimal-app/infineon/psoc6/build_overrides
new file mode 120000
index 0000000..ee19c06
--- /dev/null
+++ b/examples/all-clusters-minimal-app/infineon/psoc6/build_overrides
@@ -0,0 +1 @@
+../../../build_overrides/
\ No newline at end of file
diff --git a/examples/all-clusters-minimal-app/p6/include/AppConfig.h b/examples/all-clusters-minimal-app/infineon/psoc6/include/AppConfig.h
similarity index 100%
rename from examples/all-clusters-minimal-app/p6/include/AppConfig.h
rename to examples/all-clusters-minimal-app/infineon/psoc6/include/AppConfig.h
diff --git a/examples/all-clusters-minimal-app/p6/include/AppEvent.h b/examples/all-clusters-minimal-app/infineon/psoc6/include/AppEvent.h
similarity index 100%
rename from examples/all-clusters-minimal-app/p6/include/AppEvent.h
rename to examples/all-clusters-minimal-app/infineon/psoc6/include/AppEvent.h
diff --git a/examples/all-clusters-minimal-app/p6/include/AppTask.h b/examples/all-clusters-minimal-app/infineon/psoc6/include/AppTask.h
similarity index 100%
rename from examples/all-clusters-minimal-app/p6/include/AppTask.h
rename to examples/all-clusters-minimal-app/infineon/psoc6/include/AppTask.h
diff --git a/examples/all-clusters-minimal-app/p6/include/ButtonHandler.h b/examples/all-clusters-minimal-app/infineon/psoc6/include/ButtonHandler.h
similarity index 100%
rename from examples/all-clusters-minimal-app/p6/include/ButtonHandler.h
rename to examples/all-clusters-minimal-app/infineon/psoc6/include/ButtonHandler.h
diff --git a/examples/all-clusters-minimal-app/p6/include/CHIPProjectConfig.h b/examples/all-clusters-minimal-app/infineon/psoc6/include/CHIPProjectConfig.h
similarity index 100%
rename from examples/all-clusters-minimal-app/p6/include/CHIPProjectConfig.h
rename to examples/all-clusters-minimal-app/infineon/psoc6/include/CHIPProjectConfig.h
diff --git a/examples/all-clusters-minimal-app/p6/include/ClusterManager.h b/examples/all-clusters-minimal-app/infineon/psoc6/include/ClusterManager.h
similarity index 100%
rename from examples/all-clusters-minimal-app/p6/include/ClusterManager.h
rename to examples/all-clusters-minimal-app/infineon/psoc6/include/ClusterManager.h
diff --git a/examples/all-clusters-minimal-app/p6/src/AppTask.cpp b/examples/all-clusters-minimal-app/infineon/psoc6/src/AppTask.cpp
similarity index 98%
rename from examples/all-clusters-minimal-app/p6/src/AppTask.cpp
rename to examples/all-clusters-minimal-app/infineon/psoc6/src/AppTask.cpp
index 45a3dfb..13eb9e0 100644
--- a/examples/all-clusters-minimal-app/p6/src/AppTask.cpp
+++ b/examples/all-clusters-minimal-app/infineon/psoc6/src/AppTask.cpp
@@ -42,7 +42,7 @@
#include <DeviceInfoProviderImpl.h>
#include <app/clusters/network-commissioning/network-commissioning.h>
-#include <platform/P6/NetworkCommissioningDriver.h>
+#include <platform/Infineon/PSOC6/NetworkCommissioningDriver.h>
/* OTA related includes */
#if CHIP_DEVICE_CONFIG_ENABLE_OTA_REQUESTOR
@@ -50,7 +50,7 @@
#include <app/clusters/ota-requestor/DefaultOTARequestor.h>
#include <app/clusters/ota-requestor/DefaultOTARequestorDriver.h>
#include <app/clusters/ota-requestor/DefaultOTARequestorStorage.h>
-#include <platform/P6/OTAImageProcessorImpl.h>
+#include <platform/Infineon/PSOC6/OTAImageProcessorImpl.h>
using chip::BDXDownloader;
using chip::CharSpan;
diff --git a/examples/all-clusters-minimal-app/p6/src/ButtonHandler.cpp b/examples/all-clusters-minimal-app/infineon/psoc6/src/ButtonHandler.cpp
similarity index 100%
rename from examples/all-clusters-minimal-app/p6/src/ButtonHandler.cpp
rename to examples/all-clusters-minimal-app/infineon/psoc6/src/ButtonHandler.cpp
diff --git a/examples/all-clusters-minimal-app/p6/src/ClusterManager.cpp b/examples/all-clusters-minimal-app/infineon/psoc6/src/ClusterManager.cpp
similarity index 100%
rename from examples/all-clusters-minimal-app/p6/src/ClusterManager.cpp
rename to examples/all-clusters-minimal-app/infineon/psoc6/src/ClusterManager.cpp
diff --git a/examples/all-clusters-minimal-app/p6/src/ZclCallbacks.cpp b/examples/all-clusters-minimal-app/infineon/psoc6/src/ZclCallbacks.cpp
similarity index 100%
rename from examples/all-clusters-minimal-app/p6/src/ZclCallbacks.cpp
rename to examples/all-clusters-minimal-app/infineon/psoc6/src/ZclCallbacks.cpp
diff --git a/examples/all-clusters-app/p6/src/main.cpp b/examples/all-clusters-minimal-app/infineon/psoc6/src/main.cpp
similarity index 96%
copy from examples/all-clusters-app/p6/src/main.cpp
copy to examples/all-clusters-minimal-app/infineon/psoc6/src/main.cpp
index 7f38b51..a758717 100644
--- a/examples/all-clusters-app/p6/src/main.cpp
+++ b/examples/all-clusters-minimal-app/infineon/psoc6/src/main.cpp
@@ -36,7 +36,7 @@
#include "AppConfig.h"
#include "cyhal_wdt.h"
-#include "init_p6Platform.h"
+#include "init_psoc6Platform.h"
#include <app/server/Server.h>
#ifdef HEAP_MONITORING
@@ -143,7 +143,7 @@
#endif
P6_LOG("==================================================\r\n");
- P6_LOG("chip-p6-all-clusters-example starting Version %d\r\n", CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION);
+ P6_LOG("chip-p6-all-clusters-minimal-example starting Version %d\r\n", CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION);
P6_LOG("==================================================\r\n");
/* Start the FreeRTOS scheduler */
diff --git a/examples/all-clusters-minimal-app/infineon/psoc6/third_party/connectedhomeip b/examples/all-clusters-minimal-app/infineon/psoc6/third_party/connectedhomeip
new file mode 120000
index 0000000..3efed95
--- /dev/null
+++ b/examples/all-clusters-minimal-app/infineon/psoc6/third_party/connectedhomeip
@@ -0,0 +1 @@
+../../../../../
\ No newline at end of file
diff --git a/examples/all-clusters-minimal-app/p6/README.md b/examples/all-clusters-minimal-app/p6/README.md
deleted file mode 100644
index 730891c..0000000
--- a/examples/all-clusters-minimal-app/p6/README.md
+++ /dev/null
@@ -1,130 +0,0 @@
-#CHIP P6 All Clusters Example
-
-An example showing the use of Matter on the Infineon CY8CKIT-062S2-43012 board.
-
-<hr>
-
-- [Matter P6 All Clusters Example](#chip-p6-clusters-example)
- - [Introduction](#introduction)
- - [Building](#building)
- - [Flashing the Application](#flashing-the-application)
- - [Commissioning and cluster control](#commissioning-and-cluster-control)
- - [Setting up chip-tool](#setting-up-chip-tool)
- - [Commissioning over BLE](#commissioning-over-ble)
- - [Notes](#notes)
- - [OTA Software Update](#ota-software-update)
-
-<hr>
-
-<a name="intro"></a>
-
-## Introduction
-
-The P6 clusters example provides a baseline demonstration of a Cluster control
-device, built using Matter and the Infineon Modustoolbox SDK. It can be
-controlled by Matter controller over Wi-Fi network.
-
-The P6 device can be commissioned over Bluetooth Low Energy where the device and
-the Matter controller will exchange security information with the Rendezvous
-procedure. Wi-Fi Network credentials are then provided to the P6 device which
-will then join the network.
-
-<a name="building"></a>
-
-## Building
-
-- [Modustoolbox Software](https://www.cypress.com/products/modustoolbox)
-
- Refer to `integrations/docker/images/chip-build-infineon/Dockerfile` or
- `scripts/examples/gn_p6_example.sh` for downloading the Software and related
- tools.
-
-- Install some additional tools (likely already present for Matter
- developers):
-
- ```
- sudo apt install gcc g++ clang ninja-build python \
- python3-venv libssl-dev libavahi-client-dev libglib2.0-dev git cmake \
- python3-pip
- ```
-
-- Supported hardware:
- [CY8CKIT-062S2-43012](https://www.cypress.com/CY8CKIT-062S2-43012)
-
-* Build the example application:
-
- $ source scripts/activate.sh
- $ scripts/build/build_examples.py --no-log-timestamps --target 'infineon-p6-all-clusters-minimal' build
-
-- To delete generated executable, libraries and object files use:
-
- $ cd ~/connectedhomeip
- $ rm -rf out/
-
-<a name="flashing"></a>
-
-## Flashing the Application
-
-- Put CY8CKIT-062S2-43012 board on KitProg3 CMSIS-DAP Mode by pressing the
- `MODE SELECT` button. `KITPROG3 STATUS` LED is ON confirms board is in
- proper mode.
-
-- On the command line:
-
- $ cd ~/connectedhomeip
- $ python3 out/infineon-p6-all-clusters-minimal/chip-p6-clusters-minimal-example.flash.py
-
-<a name="Commissioning and cluster control"></a>
-
-## Commissioning and cluster control
-
-Commissioning can be carried out using BLE.
-
-<a name="Setting up chip-tool"></a>
-
-### Setting up Chip tool
-
-Once P6 is up and running, we need to set up chip-tool on Raspberry Pi 4 to
-perform commissioning and cluster control.
-
-- Set up python controller.
-
- $ cd {path-to-connectedhomeip}
- $ ./scripts/examples/gn_build_example.sh examples/chip-tool out/debug
-
-- Execute the controller.
-
- $ ./out/debug/chip-tool
-
-<a name="Commissioning over BLE"></a>
-
-### Commissioning over BLE
-
-Run the built executable and pass it the discriminator and pairing code of the
-remote device, as well as the network credentials to use.
-
- $ ./out/debug/chip-tool pairing ble-wifi 1234 ${SSID} ${PASSWORD} 20202021 3840
-
- Parameters:
- 1. Discriminator: 3840
- 2. Setup-pin-code: 20202021
- 3. Node ID: 1234 (you can assign any node id)
- 4. SSID : Wi-Fi SSID
- 5. PASSWORD : Wi-Fi Password
-
-<a name="Notes"></a>
-
-#### Notes
-
-Raspberry Pi 4 BLE connection issues can be avoided by running the following
-commands. These power cycle the BlueTooth hardware and disable BR/EDR mode.
-
- $ sudo btmgmt -i hci0 power off
- $ sudo btmgmt -i hci0 bredr off
- $ sudo btmgmt -i hci0 power on
-
-## OTA Software Update
-
-For the description of Software Update process with infineon P6 example
-applications see
-[Infineon P6 OTA Software Update](../../../docs/guides/infineon_p6_software_update.md)
diff --git a/examples/all-clusters-minimal-app/p6/args.gni b/examples/all-clusters-minimal-app/p6/args.gni
deleted file mode 100644
index 2a93385..0000000
--- a/examples/all-clusters-minimal-app/p6/args.gni
+++ /dev/null
@@ -1,20 +0,0 @@
-# Copyright (c) 2021 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("//build_overrides/pigweed.gni")
-import("${chip_root}/src/platform/P6/args.gni")
-
-p6_target_project =
- get_label_info(":all_clusters_app_sdk_sources", "label_no_toolchain")
diff --git a/examples/all-clusters-minimal-app/p6/build_overrides b/examples/all-clusters-minimal-app/p6/build_overrides
deleted file mode 120000
index 194ee0b..0000000
--- a/examples/all-clusters-minimal-app/p6/build_overrides
+++ /dev/null
@@ -1 +0,0 @@
-../../build_overrides/
\ No newline at end of file
diff --git a/examples/all-clusters-minimal-app/p6/src/main.cpp b/examples/all-clusters-minimal-app/p6/src/main.cpp
deleted file mode 100644
index 7f38b51..0000000
--- a/examples/all-clusters-minimal-app/p6/src/main.cpp
+++ /dev/null
@@ -1,158 +0,0 @@
-/*
- *
- * Copyright (c) 2021 Project CHIP Authors
- * Copyright (c) 2019 Google LLC.
- * Copyright 2021, Cypress Semiconductor Corporation (an Infineon company)
- * All rights reserved.
- *
- * 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.
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-
-#include <stdarg.h>
-#include <stdbool.h>
-#include <stdint.h>
-
-#include <FreeRTOS.h>
-
-#include <lib/support/CHIPMem.h>
-#include <lib/support/CHIPPlatformMemory.h>
-#include <platform/CHIPDeviceLayer.h>
-#include <platform/KeyValueStoreManager.h>
-
-#include <AppTask.h>
-
-#include "AppConfig.h"
-#include "cyhal_wdt.h"
-#include "init_p6Platform.h"
-#include <app/server/Server.h>
-
-#ifdef HEAP_MONITORING
-#include "MemMonitoring.h"
-#endif
-#define MAIN_TASK_STACK_SIZE (4096)
-#define MAIN_TASK_PRIORITY 2
-
-using namespace ::chip;
-using namespace ::chip::Inet;
-using namespace ::chip::DeviceLayer;
-
-volatile int apperror_cnt;
-static void main_task(void * pvParameters);
-
-// ================================================================================
-// App Error
-//=================================================================================
-void appError(int err)
-{
- P6_LOG("!!!!!!!!!!!! App Critical Error: %d !!!!!!!!!!!", err);
- portDISABLE_INTERRUPTS();
- while (1)
- ;
-}
-
-void appError(CHIP_ERROR error)
-{
- appError(static_cast<int>(error.AsInteger()));
-}
-
-// ================================================================================
-// FreeRTOS Callbacks
-// ================================================================================
-extern "C" void vApplicationIdleHook(void)
-{
- // FreeRTOS Idle callback
-}
-
-extern "C" void vApplicationDaemonTaskStartupHook()
-{
- // Init Chip memory management before the stack
- chip::Platform::MemoryInit();
-
- /* Create the Main task. */
- xTaskCreate(main_task, "Main task", MAIN_TASK_STACK_SIZE, NULL, MAIN_TASK_PRIORITY, NULL);
-}
-
-static void main_task(void * pvParameters)
-{
- CHIP_ERROR ret = chip::DeviceLayer::PersistedStorage::KeyValueStoreMgrImpl().Init();
- if (ret != CHIP_NO_ERROR)
- {
- P6_LOG("PersistedStorage::KeyValueStoreMgrImpl().Init() failed");
- appError(ret);
- }
-
- ret = PlatformMgr().InitChipStack();
- if (ret != CHIP_NO_ERROR)
- {
- P6_LOG("PlatformMgr().InitChipStack() failed");
- appError(ret);
- }
-
- ret = chip::DeviceLayer::ConnectivityMgr().SetBLEDeviceName("P6_CLUSTERS");
- if (ret != CHIP_NO_ERROR)
- {
- P6_LOG("ConnectivityMgr().SetBLEDeviceName() failed");
- appError(ret);
- }
-
- P6_LOG("Starting Platform Manager Event Loop");
- ret = PlatformMgr().StartEventLoopTask();
- if (ret != CHIP_NO_ERROR)
- {
- P6_LOG("PlatformMgr().StartEventLoopTask() failed");
- appError(ret);
- }
- ret = GetAppTask().StartAppTask();
- if (ret != CHIP_NO_ERROR)
- {
- P6_LOG("GetAppTask().Init() failed");
- appError(ret);
- }
-
- /* Delete task */
- vTaskDelete(NULL);
-}
-
-// ================================================================================
-// Main Code
-// ================================================================================
-int main(void)
-{
- init_p6Platform();
-#if CHIP_DEVICE_CONFIG_ENABLE_OTA_REQUESTOR
- // Clear watchdog timer (started by bootloader) so that it doesn't trigger a reset
- cyhal_wdt_t wdt_obj;
- cyhal_wdt_init(&wdt_obj, cyhal_wdt_get_max_timeout_ms());
- cyhal_wdt_free(&wdt_obj);
-#endif
-#ifdef HEAP_MONITORING
- MemMonitoring::startHeapMonitoring();
-#endif
-
- P6_LOG("==================================================\r\n");
- P6_LOG("chip-p6-all-clusters-example starting Version %d\r\n", CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION);
- P6_LOG("==================================================\r\n");
-
- /* Start the FreeRTOS scheduler */
- vTaskStartScheduler();
-
- chip::Platform::MemoryShutdown();
- PlatformMgr().StopEventLoopTask();
- PlatformMgr().Shutdown();
-
- // Should never get here.
- P6_LOG("vTaskStartScheduler() failed");
-}
diff --git a/examples/all-clusters-minimal-app/p6/third_party/connectedhomeip b/examples/all-clusters-minimal-app/p6/third_party/connectedhomeip
deleted file mode 120000
index 11a54ed..0000000
--- a/examples/all-clusters-minimal-app/p6/third_party/connectedhomeip
+++ /dev/null
@@ -1 +0,0 @@
-../../../../
\ No newline at end of file
diff --git a/examples/build_overrides/cyw30739_sdk.gni b/examples/build_overrides/cyw30739_sdk.gni
index d2c81de..d98ac98 100644
--- a/examples/build_overrides/cyw30739_sdk.gni
+++ b/examples/build_overrides/cyw30739_sdk.gni
@@ -15,5 +15,5 @@
declare_args() {
# Root directory for CYW30739 SDK.
cyw30739_sdk_build_root =
- "//third_party/connectedhomeip/third_party/cyw30739_sdk"
+ "//third_party/connectedhomeip/third_party/infineon/cyw30739_sdk"
}
diff --git a/examples/build_overrides/p6.gni b/examples/build_overrides/p6.gni
deleted file mode 100644
index 9189063..0000000
--- a/examples/build_overrides/p6.gni
+++ /dev/null
@@ -1,23 +0,0 @@
-# Copyright (c) 2021 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.
-
-declare_args() {
- # Root directory for P6 SDK.
- p6_sdk_build_root = "//third_party/connectedhomeip/third_party/p6"
-}
-
-declare_args() {
- # Root directory for p6 SDK sources.
- p6_sdk_root = "${p6_sdk_build_root}/p6_sdk"
-}
diff --git a/build_overrides/p6.gni b/examples/build_overrides/psoc6.gni
similarity index 73%
copy from build_overrides/p6.gni
copy to examples/build_overrides/psoc6.gni
index 0ae9c54..87d5ca9 100644
--- a/build_overrides/p6.gni
+++ b/examples/build_overrides/psoc6.gni
@@ -13,11 +13,12 @@
# limitations under the License.
declare_args() {
- # Root directory for p6 SDK build files.
- p6_sdk_build_root = "//third_party/p6"
+ # Root directory for PSOC6 SDK.
+ psoc6_sdk_build_root =
+ "//third_party/connectedhomeip/third_party/infineon/psoc6"
}
declare_args() {
- # Root directory for p6 SDK sources.
- p6_sdk_root = "${p6_sdk_build_root}/p6_sdk"
+ # Root directory for psoc6 SDK sources.
+ psoc6_sdk_root = "${psoc6_sdk_build_root}/psoc6_sdk"
}
diff --git a/examples/lighting-app/cyw30739/build_overrides b/examples/lighting-app/cyw30739/build_overrides
deleted file mode 120000
index e578e73..0000000
--- a/examples/lighting-app/cyw30739/build_overrides
+++ /dev/null
@@ -1 +0,0 @@
-../../build_overrides
\ No newline at end of file
diff --git a/examples/lighting-app/cyw30739/third_party/connectedhomeip b/examples/lighting-app/cyw30739/third_party/connectedhomeip
deleted file mode 120000
index c866b86..0000000
--- a/examples/lighting-app/cyw30739/third_party/connectedhomeip
+++ /dev/null
@@ -1 +0,0 @@
-../../../..
\ No newline at end of file
diff --git a/examples/lighting-app/cyw30739/.gn b/examples/lighting-app/infineon/cyw30739/.gn
similarity index 100%
rename from examples/lighting-app/cyw30739/.gn
rename to examples/lighting-app/infineon/cyw30739/.gn
diff --git a/examples/lighting-app/cyw30739/BUILD.gn b/examples/lighting-app/infineon/cyw30739/BUILD.gn
similarity index 92%
rename from examples/lighting-app/cyw30739/BUILD.gn
rename to examples/lighting-app/infineon/cyw30739/BUILD.gn
index 86d7342..be63607 100644
--- a/examples/lighting-app/cyw30739/BUILD.gn
+++ b/examples/lighting-app/infineon/cyw30739/BUILD.gn
@@ -19,8 +19,8 @@
import("${cyw30739_sdk_build_root}/cyw30739_executable.gni")
import("${cyw30739_sdk_build_root}/cyw30739_sdk.gni")
-cyw30739_project_dir = "${chip_root}/examples/lighting-app/cyw30739"
-examples_plat_dir = "${chip_root}/examples/platform/cyw30739"
+cyw30739_project_dir = "${chip_root}/examples/lighting-app/infineon/cyw30739"
+examples_plat_dir = "${chip_root}/examples/platform/infineon/cyw30739"
declare_args() {
setupPinCode = 20202021
diff --git a/examples/lighting-app/cyw30739/README.md b/examples/lighting-app/infineon/cyw30739/README.md
similarity index 93%
rename from examples/lighting-app/cyw30739/README.md
rename to examples/lighting-app/infineon/cyw30739/README.md
index d43e663..72753e2 100644
--- a/examples/lighting-app/cyw30739/README.md
+++ b/examples/lighting-app/infineon/cyw30739/README.md
@@ -32,7 +32,7 @@
```bash
$ cd ~/connectedhomeip
$ git submodule update --init
- $ ./scripts/examples/gn_build_example.sh examples/lighting-app/cyw30739 out/lighting-app
+ $ ./scripts/examples/gn_build_example.sh examples/lighting-app/infineon/cyw30739 out/lighting-app
```
- To delete generated executable, libraries and object files use:
@@ -45,7 +45,7 @@
- OR use GN/Ninja directly
```bash
- $ cd ~/connectedhomeip/examples/lighting-app/cyw30739
+ $ cd ~/connectedhomeip/examples/lighting-app/infineon/cyw30739
$ git submodule update --init
$ source third_party/connectedhomeip/scripts/activate.sh
$ gn gen out/debug
@@ -55,7 +55,7 @@
- To delete generated executable, libraries and object files use:
```bash
- $ cd ~/connectedhomeip/examples/lighting-app/cyw30739
+ $ cd ~/connectedhomeip/examples/lighting-app/infineon/cyw30739
$ rm -rf out/
```
@@ -75,7 +75,7 @@
- On the command line:
```bash
- $ cd ~/connectedhomeip/examples/lighting-app/cyw30739
+ $ cd ~/connectedhomeip/examples/lighting-app/infineon/cyw30739
$ python3 out/debug/chip-cyw30739-lighting-example.flash.py
```
diff --git a/examples/lighting-app/cyw30739/args.gni b/examples/lighting-app/infineon/cyw30739/args.gni
similarity index 93%
rename from examples/lighting-app/cyw30739/args.gni
rename to examples/lighting-app/infineon/cyw30739/args.gni
index 267c1db..ff653ee 100644
--- a/examples/lighting-app/cyw30739/args.gni
+++ b/examples/lighting-app/infineon/cyw30739/args.gni
@@ -13,7 +13,7 @@
# limitations under the License.
import("//build_overrides/chip.gni")
-import("${chip_root}/src/platform/CYW30739/args.gni")
+import("${chip_root}/src/platform/Infineon/CYW30739/args.gni")
cyw30739_sdk_target = get_label_info(":sdk", "label_no_toolchain")
diff --git a/examples/lighting-app/infineon/cyw30739/build_overrides b/examples/lighting-app/infineon/cyw30739/build_overrides
new file mode 120000
index 0000000..ee19c06
--- /dev/null
+++ b/examples/lighting-app/infineon/cyw30739/build_overrides
@@ -0,0 +1 @@
+../../../build_overrides/
\ No newline at end of file
diff --git a/examples/lighting-app/cyw30739/include/AppShellCommands.h b/examples/lighting-app/infineon/cyw30739/include/AppShellCommands.h
similarity index 100%
rename from examples/lighting-app/cyw30739/include/AppShellCommands.h
rename to examples/lighting-app/infineon/cyw30739/include/AppShellCommands.h
diff --git a/examples/lighting-app/cyw30739/include/ButtonHandler.h b/examples/lighting-app/infineon/cyw30739/include/ButtonHandler.h
similarity index 100%
rename from examples/lighting-app/cyw30739/include/ButtonHandler.h
rename to examples/lighting-app/infineon/cyw30739/include/ButtonHandler.h
diff --git a/examples/lighting-app/cyw30739/include/CHIPProjectConfig.h b/examples/lighting-app/infineon/cyw30739/include/CHIPProjectConfig.h
similarity index 100%
rename from examples/lighting-app/cyw30739/include/CHIPProjectConfig.h
rename to examples/lighting-app/infineon/cyw30739/include/CHIPProjectConfig.h
diff --git a/examples/lighting-app/cyw30739/include/LightingManager.h b/examples/lighting-app/infineon/cyw30739/include/LightingManager.h
similarity index 100%
rename from examples/lighting-app/cyw30739/include/LightingManager.h
rename to examples/lighting-app/infineon/cyw30739/include/LightingManager.h
diff --git a/examples/lighting-app/cyw30739/src/AppShellCommands.cpp b/examples/lighting-app/infineon/cyw30739/src/AppShellCommands.cpp
similarity index 100%
rename from examples/lighting-app/cyw30739/src/AppShellCommands.cpp
rename to examples/lighting-app/infineon/cyw30739/src/AppShellCommands.cpp
diff --git a/examples/lighting-app/cyw30739/src/ButtonHandler.cpp b/examples/lighting-app/infineon/cyw30739/src/ButtonHandler.cpp
similarity index 100%
rename from examples/lighting-app/cyw30739/src/ButtonHandler.cpp
rename to examples/lighting-app/infineon/cyw30739/src/ButtonHandler.cpp
diff --git a/examples/lighting-app/cyw30739/src/LightingManager.cpp b/examples/lighting-app/infineon/cyw30739/src/LightingManager.cpp
similarity index 100%
rename from examples/lighting-app/cyw30739/src/LightingManager.cpp
rename to examples/lighting-app/infineon/cyw30739/src/LightingManager.cpp
diff --git a/examples/lighting-app/cyw30739/src/ZclCallbacks.cpp b/examples/lighting-app/infineon/cyw30739/src/ZclCallbacks.cpp
similarity index 100%
rename from examples/lighting-app/cyw30739/src/ZclCallbacks.cpp
rename to examples/lighting-app/infineon/cyw30739/src/ZclCallbacks.cpp
diff --git a/examples/lighting-app/cyw30739/src/main.cpp b/examples/lighting-app/infineon/cyw30739/src/main.cpp
similarity index 100%
rename from examples/lighting-app/cyw30739/src/main.cpp
rename to examples/lighting-app/infineon/cyw30739/src/main.cpp
diff --git a/examples/lighting-app/cyw30739/static_config.txt b/examples/lighting-app/infineon/cyw30739/static_config.txt
similarity index 100%
rename from examples/lighting-app/cyw30739/static_config.txt
rename to examples/lighting-app/infineon/cyw30739/static_config.txt
diff --git a/examples/lighting-app/infineon/cyw30739/third_party/connectedhomeip b/examples/lighting-app/infineon/cyw30739/third_party/connectedhomeip
new file mode 120000
index 0000000..3efed95
--- /dev/null
+++ b/examples/lighting-app/infineon/cyw30739/third_party/connectedhomeip
@@ -0,0 +1 @@
+../../../../../
\ No newline at end of file
diff --git a/examples/lighting-app/p6/.gn b/examples/lighting-app/infineon/psoc6/.gn
similarity index 100%
rename from examples/lighting-app/p6/.gn
rename to examples/lighting-app/infineon/psoc6/.gn
diff --git a/examples/lighting-app/p6/BUILD.gn b/examples/lighting-app/infineon/psoc6/BUILD.gn
similarity index 77%
rename from examples/lighting-app/p6/BUILD.gn
rename to examples/lighting-app/infineon/psoc6/BUILD.gn
index 7e6608f..08a91b1 100644
--- a/examples/lighting-app/p6/BUILD.gn
+++ b/examples/lighting-app/infineon/psoc6/BUILD.gn
@@ -14,17 +14,17 @@
import("//build_overrides/build.gni")
import("//build_overrides/chip.gni")
-import("//build_overrides/p6.gni")
+import("//build_overrides/psoc6.gni")
import("${build_root}/config/defaults.gni")
import("${chip_root}/src/platform/device.gni")
-import("${p6_sdk_build_root}/p6_executable.gni")
-import("${p6_sdk_build_root}/p6_sdk.gni")
+import("${psoc6_sdk_build_root}/psoc6_executable.gni")
+import("${psoc6_sdk_build_root}/psoc6_sdk.gni")
assert(current_os == "freertos")
-p6_project_dir = "${chip_root}/examples/lighting-app/p6"
-examples_plat_dir = "${chip_root}/examples/platform/p6"
+psoc6_project_dir = "${chip_root}/examples/lighting-app/infineon/psoc6"
+examples_plat_dir = "${chip_root}/examples/platform/infineon/psoc6"
declare_args() {
# Dump memory usage at link time.
@@ -40,8 +40,8 @@
build_update_image = false
}
-config("p6_ota_config") {
- linker_script = "${p6_sdk_root}/ota/cy8c6xxa_cm4_dual_ota_int.ld"
+config("psoc6_ota_config") {
+ linker_script = "${psoc6_sdk_root}/ota/cy8c6xxa_cm4_dual_ota_int.ld"
ldflags = [ "-T" + rebase_path(linker_script, root_build_dir) ]
@@ -78,35 +78,37 @@
}
}
-p6_sdk_sources("lighting_app_sdk_sources") {
+psoc6_sdk_sources("lighting_app_sdk_sources") {
include_dirs = [
- "${chip_root}/src/platform/P6",
- "${p6_project_dir}/include",
+ "${chip_root}/src/platform/PSOC6",
+ "${psoc6_project_dir}/include",
"${examples_plat_dir}",
]
defines = [
- "BOARD_ID=${p6_board}",
+ "BOARD_ID=${psoc6_board}",
"P6_LOG_ENABLED=1",
"CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE=${setup_pin_code}",
]
- sources = [ "${p6_project_dir}/include/CHIPProjectConfig.h" ]
- public_configs = [ "${chip_root}/third_party/p6:p6_sdk_config" ]
+ sources = [ "${psoc6_project_dir}/include/CHIPProjectConfig.h" ]
+
+ public_configs =
+ [ "${chip_root}/third_party/infineon/psoc6:psoc6_sdk_config" ]
if (chip_enable_ota_requestor) {
- public_configs += [ ":p6_ota_config" ]
+ public_configs += [ ":psoc6_ota_config" ]
}
}
-p6_executable("lighting_app") {
+psoc6_executable("lighting_app") {
include_dirs = []
defines = []
- output_name = "chip-p6-lighting-example.out"
+ output_name = "chip-psoc6-lighting-example.out"
sources = [
"${examples_plat_dir}/LEDWidget.cpp",
- "${examples_plat_dir}/init_p6Platform.cpp",
+ "${examples_plat_dir}/init_psoc6Platform.cpp",
"src/AppTask.cpp",
"src/ButtonHandler.cpp",
"src/LightingManager.cpp",
@@ -126,7 +128,7 @@
include_dirs += [
"include",
"${examples_plat_dir}",
- "${p6_project_dir}/include",
+ "${psoc6_project_dir}/include",
]
defines = []
@@ -146,10 +148,10 @@
output_dir = root_out_dir
}
-group("p6") {
+group("psoc6") {
deps = [ ":lighting_app" ]
}
group("default") {
- deps = [ ":p6" ]
+ deps = [ ":psoc6" ]
}
diff --git a/examples/lighting-app/p6/README.md b/examples/lighting-app/infineon/psoc6/README.md
similarity index 80%
rename from examples/lighting-app/p6/README.md
rename to examples/lighting-app/infineon/psoc6/README.md
index e37894e..ea229f0 100644
--- a/examples/lighting-app/p6/README.md
+++ b/examples/lighting-app/infineon/psoc6/README.md
@@ -1,10 +1,10 @@
-#CHIP P6 Lighting Example
+#CHIP PSoC6 Lighting Example
An example showing the use of Matter on the Infineon CY8CKIT-062S2-43012 board.
<hr>
-- [Matter P6 Lighting Example](#chip-p6-Lighting-example)
+- [Matter PSoC6 Lighting Example](#chip-psoc6-Lighting-example)
- [Introduction](#introduction)
- [Building](#building)
- [Flashing the Application](#flashing-the-application)
@@ -21,13 +21,13 @@
## Introduction
-The P6 lighting example provides a baseline demonstration of a Light control
+The PSoC6 lighting example provides a baseline demonstration of a Light control
device, built using Matter and the Infineon Modustoolbox SDK. It can be
controlled by Matter controller over Wi-Fi network.
-The P6 device can be commissioned over Bluetooth Low Energy where the device and
-the Matter controller will exchange security information with the Rendezvous
-procedure. Wi-Fi Network credentials are then provided to the P6 device which
+The PSoC6 device can be commissioned over Bluetooth Low Energy where the device
+and the Matter controller will exchange security information with the Rendezvous
+procedure. Wi-Fi Network credentials are then provided to the PSoC6 device which
will then join the network.
<a name="building"></a>
@@ -37,8 +37,8 @@
- [Modustoolbox Software](https://www.cypress.com/products/modustoolbox)
Refer to `integrations/docker/images/chip-build-infineon/Dockerfile` or
- `scripts/examples/gn_p6_example.sh` for downloading the Software and related
- tools.
+ `scripts/examples/gn_psoc6_example.sh` for downloading the Software and
+ related tools.
- Install some additional tools (likely already present for Matter
developers): \$ sudo apt install gcc g++ clang ninja-build python
@@ -51,7 +51,7 @@
* Build the example application:
$ source scripts/activate.sh
- $ scripts/build/build_examples.py --no-log-timestamps --target 'infineon-p6-light' build
+ $ scripts/build/build_examples.py --no-log-timestamps --target 'infineon-psoc6-light' build
- To delete generated executable, libraries and object files use:
@@ -69,7 +69,7 @@
- On the command line:
$ cd ~/connectedhomeip
- $ python3 out/infineon-p6-light/chip-p6-lighting-example.flash.py
+ $ python3 out/infineon-psoc6-light/chip-psoc6-lighting-example.flash.py
<a name="Commissioning and cluster control"></a>
@@ -81,7 +81,7 @@
### Setting up Chip tool
-Once P6 is up and running, we need to set up chip-tool on Raspberry Pi 4 to
+Once PSoC6 is up and running, we need to set up chip-tool on Raspberry Pi 4 to
perform commissioning and cluster control.
- Set up python controller.
@@ -139,6 +139,6 @@
## OTA Software Update
-For the description of Software Update process with infineon P6 example
+For the description of Software Update process with infineon PSoC6 example
applications see
-[Infineon P6 OTA Software Update](../../../docs/guides/infineon_p6_software_update.md)
+[Infineon PSoC6 OTA Software Update](../../../../docs/guides/infineon_psoc6_software_update.md)
diff --git a/examples/lighting-app/p6/args.gni b/examples/lighting-app/infineon/psoc6/args.gni
similarity index 89%
rename from examples/lighting-app/p6/args.gni
rename to examples/lighting-app/infineon/psoc6/args.gni
index f239efe..9ca701a 100644
--- a/examples/lighting-app/p6/args.gni
+++ b/examples/lighting-app/infineon/psoc6/args.gni
@@ -14,7 +14,7 @@
import("//build_overrides/chip.gni")
import("//build_overrides/pigweed.gni")
-import("${chip_root}/src/platform/P6/args.gni")
+import("${chip_root}/src/platform/Infineon/PSOC6/args.gni")
-p6_target_project =
+psoc6_target_project =
get_label_info(":lighting_app_sdk_sources", "label_no_toolchain")
diff --git a/examples/lighting-app/infineon/psoc6/build_overrides b/examples/lighting-app/infineon/psoc6/build_overrides
new file mode 120000
index 0000000..ee19c06
--- /dev/null
+++ b/examples/lighting-app/infineon/psoc6/build_overrides
@@ -0,0 +1 @@
+../../../build_overrides/
\ No newline at end of file
diff --git a/examples/lighting-app/p6/include/AppConfig.h b/examples/lighting-app/infineon/psoc6/include/AppConfig.h
similarity index 100%
rename from examples/lighting-app/p6/include/AppConfig.h
rename to examples/lighting-app/infineon/psoc6/include/AppConfig.h
diff --git a/examples/lighting-app/p6/include/AppEvent.h b/examples/lighting-app/infineon/psoc6/include/AppEvent.h
similarity index 100%
rename from examples/lighting-app/p6/include/AppEvent.h
rename to examples/lighting-app/infineon/psoc6/include/AppEvent.h
diff --git a/examples/lighting-app/p6/include/AppTask.h b/examples/lighting-app/infineon/psoc6/include/AppTask.h
similarity index 100%
rename from examples/lighting-app/p6/include/AppTask.h
rename to examples/lighting-app/infineon/psoc6/include/AppTask.h
diff --git a/examples/lighting-app/p6/include/ButtonHandler.h b/examples/lighting-app/infineon/psoc6/include/ButtonHandler.h
similarity index 100%
rename from examples/lighting-app/p6/include/ButtonHandler.h
rename to examples/lighting-app/infineon/psoc6/include/ButtonHandler.h
diff --git a/examples/lighting-app/p6/include/CHIPProjectConfig.h b/examples/lighting-app/infineon/psoc6/include/CHIPProjectConfig.h
similarity index 100%
rename from examples/lighting-app/p6/include/CHIPProjectConfig.h
rename to examples/lighting-app/infineon/psoc6/include/CHIPProjectConfig.h
diff --git a/examples/lighting-app/p6/include/LightingManager.h b/examples/lighting-app/infineon/psoc6/include/LightingManager.h
similarity index 100%
rename from examples/lighting-app/p6/include/LightingManager.h
rename to examples/lighting-app/infineon/psoc6/include/LightingManager.h
diff --git a/examples/lighting-app/p6/src/AppTask.cpp b/examples/lighting-app/infineon/psoc6/src/AppTask.cpp
similarity index 98%
rename from examples/lighting-app/p6/src/AppTask.cpp
rename to examples/lighting-app/infineon/psoc6/src/AppTask.cpp
index 08f9b76..2ee2baf 100644
--- a/examples/lighting-app/p6/src/AppTask.cpp
+++ b/examples/lighting-app/infineon/psoc6/src/AppTask.cpp
@@ -40,7 +40,7 @@
#include <DeviceInfoProviderImpl.h>
#include <app/clusters/network-commissioning/network-commissioning.h>
-#include <platform/P6/NetworkCommissioningDriver.h>
+#include <platform/Infineon/PSOC6/NetworkCommissioningDriver.h>
/* OTA related includes */
#if CHIP_DEVICE_CONFIG_ENABLE_OTA_REQUESTOR
@@ -48,7 +48,7 @@
#include <app/clusters/ota-requestor/DefaultOTARequestor.h>
#include <app/clusters/ota-requestor/DefaultOTARequestorDriver.h>
#include <app/clusters/ota-requestor/DefaultOTARequestorStorage.h>
-#include <platform/P6/OTAImageProcessorImpl.h>
+#include <platform/Infineon/PSOC6/OTAImageProcessorImpl.h>
using chip::BDXDownloader;
using chip::CharSpan;
diff --git a/examples/lighting-app/p6/src/ButtonHandler.cpp b/examples/lighting-app/infineon/psoc6/src/ButtonHandler.cpp
similarity index 100%
rename from examples/lighting-app/p6/src/ButtonHandler.cpp
rename to examples/lighting-app/infineon/psoc6/src/ButtonHandler.cpp
diff --git a/examples/lighting-app/p6/src/LightingManager.cpp b/examples/lighting-app/infineon/psoc6/src/LightingManager.cpp
similarity index 100%
rename from examples/lighting-app/p6/src/LightingManager.cpp
rename to examples/lighting-app/infineon/psoc6/src/LightingManager.cpp
diff --git a/examples/lighting-app/p6/src/ZclCallbacks.cpp b/examples/lighting-app/infineon/psoc6/src/ZclCallbacks.cpp
similarity index 100%
rename from examples/lighting-app/p6/src/ZclCallbacks.cpp
rename to examples/lighting-app/infineon/psoc6/src/ZclCallbacks.cpp
diff --git a/examples/lighting-app/p6/src/main.cpp b/examples/lighting-app/infineon/psoc6/src/main.cpp
similarity index 98%
rename from examples/lighting-app/p6/src/main.cpp
rename to examples/lighting-app/infineon/psoc6/src/main.cpp
index 9c5daa7..a2dcdae 100644
--- a/examples/lighting-app/p6/src/main.cpp
+++ b/examples/lighting-app/infineon/psoc6/src/main.cpp
@@ -35,7 +35,7 @@
#include "AppConfig.h"
#include "cyhal_wdt.h"
-#include "init_p6Platform.h"
+#include "init_psoc6Platform.h"
#include <app/server/Server.h>
#ifdef HEAP_MONITORING
diff --git a/examples/lighting-app/infineon/psoc6/third_party/connectedhomeip b/examples/lighting-app/infineon/psoc6/third_party/connectedhomeip
new file mode 120000
index 0000000..3efed95
--- /dev/null
+++ b/examples/lighting-app/infineon/psoc6/third_party/connectedhomeip
@@ -0,0 +1 @@
+../../../../../
\ No newline at end of file
diff --git a/examples/lighting-app/p6/build_overrides b/examples/lighting-app/p6/build_overrides
deleted file mode 120000
index e578e73..0000000
--- a/examples/lighting-app/p6/build_overrides
+++ /dev/null
@@ -1 +0,0 @@
-../../build_overrides
\ No newline at end of file
diff --git a/examples/lighting-app/p6/third_party/connectedhomeip b/examples/lighting-app/p6/third_party/connectedhomeip
deleted file mode 120000
index c866b86..0000000
--- a/examples/lighting-app/p6/third_party/connectedhomeip
+++ /dev/null
@@ -1 +0,0 @@
-../../../..
\ No newline at end of file
diff --git a/examples/lock-app/cyw30739/args.gni b/examples/lock-app/cyw30739/args.gni
deleted file mode 100644
index 267c1db..0000000
--- a/examples/lock-app/cyw30739/args.gni
+++ /dev/null
@@ -1,27 +0,0 @@
-# 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}/src/platform/CYW30739/args.gni")
-
-cyw30739_sdk_target = get_label_info(":sdk", "label_no_toolchain")
-
-chip_openthread_ftd = true
-
-chip_enable_ota_requestor = true
-
-chip_error_logging = false
-chip_progress_logging = false
-chip_detail_logging = false
-chip_automation_logging = false
diff --git a/examples/lock-app/cyw30739/build_overrides b/examples/lock-app/cyw30739/build_overrides
deleted file mode 120000
index e578e73..0000000
--- a/examples/lock-app/cyw30739/build_overrides
+++ /dev/null
@@ -1 +0,0 @@
-../../build_overrides
\ No newline at end of file
diff --git a/examples/lock-app/cyw30739/third_party/connectedhomeip b/examples/lock-app/cyw30739/third_party/connectedhomeip
deleted file mode 120000
index c866b86..0000000
--- a/examples/lock-app/cyw30739/third_party/connectedhomeip
+++ /dev/null
@@ -1 +0,0 @@
-../../../..
\ No newline at end of file
diff --git a/examples/lock-app/cyw30739/.gn b/examples/lock-app/infineon/cyw30739/.gn
similarity index 100%
rename from examples/lock-app/cyw30739/.gn
rename to examples/lock-app/infineon/cyw30739/.gn
diff --git a/examples/lock-app/cyw30739/BUILD.gn b/examples/lock-app/infineon/cyw30739/BUILD.gn
similarity index 92%
rename from examples/lock-app/cyw30739/BUILD.gn
rename to examples/lock-app/infineon/cyw30739/BUILD.gn
index 87f0e15..8d0cc63 100644
--- a/examples/lock-app/cyw30739/BUILD.gn
+++ b/examples/lock-app/infineon/cyw30739/BUILD.gn
@@ -19,8 +19,8 @@
import("${cyw30739_sdk_build_root}/cyw30739_executable.gni")
import("${cyw30739_sdk_build_root}/cyw30739_sdk.gni")
-cyw30739_project_dir = "${chip_root}/examples/lock-app/cyw30739"
-examples_plat_dir = "${chip_root}/examples/platform/cyw30739"
+cyw30739_project_dir = "${chip_root}/examples/lock-app/infineon/cyw30739"
+examples_plat_dir = "${chip_root}/examples/platform/infineon/cyw30739"
declare_args() {
setupPinCode = 20202021
diff --git a/examples/lock-app/cyw30739/README.md b/examples/lock-app/infineon/cyw30739/README.md
similarity index 91%
rename from examples/lock-app/cyw30739/README.md
rename to examples/lock-app/infineon/cyw30739/README.md
index 41a6a23..12ac917 100644
--- a/examples/lock-app/cyw30739/README.md
+++ b/examples/lock-app/infineon/cyw30739/README.md
@@ -32,7 +32,7 @@
```bash
$ cd ~/connectedhomeip
$ git submodule update --init
- $ ./scripts/examples/gn_build_example.sh examples/lock-app/cyw30739 out/lock-app
+ $ ./scripts/examples/gn_build_example.sh examples/lock-app/infineon/cyw30739 out/lock-app
```
- To delete generated executable, libraries and object files use:
@@ -45,7 +45,7 @@
- OR use GN/Ninja directly
```bash
- $ cd ~/connectedhomeip/examples/lock-app/cyw30739
+ $ cd ~/connectedhomeip/examples/lock-app/infineon/cyw30739
$ git submodule update --init
$ source third_party/connectedhomeip/scripts/activate.sh
$ gn gen out/debug
@@ -55,7 +55,7 @@
- To delete generated executable, libraries and object files use:
```bash
- $ cd ~/connectedhomeip/examples/lock-app/cyw30739
+ $ cd ~/connectedhomeip/examples/lock-app/infineon/cyw30739
$ rm -rf out/
```
@@ -75,7 +75,7 @@
- On the command line:
```bash
- $ cd ~/connectedhomeip/examples/lock-app/cyw30739
+ $ cd ~/connectedhomeip/examples/lock-app/infineon/cyw30739
$ python3 out/debug/chip-cyw30739-lock-example.flash.py
```
diff --git a/examples/lighting-app/cyw30739/args.gni b/examples/lock-app/infineon/cyw30739/args.gni
similarity index 92%
copy from examples/lighting-app/cyw30739/args.gni
copy to examples/lock-app/infineon/cyw30739/args.gni
index 267c1db..ff653ee 100644
--- a/examples/lighting-app/cyw30739/args.gni
+++ b/examples/lock-app/infineon/cyw30739/args.gni
@@ -13,7 +13,7 @@
# limitations under the License.
import("//build_overrides/chip.gni")
-import("${chip_root}/src/platform/CYW30739/args.gni")
+import("${chip_root}/src/platform/Infineon/CYW30739/args.gni")
cyw30739_sdk_target = get_label_info(":sdk", "label_no_toolchain")
diff --git a/examples/lock-app/infineon/cyw30739/build_overrides b/examples/lock-app/infineon/cyw30739/build_overrides
new file mode 120000
index 0000000..ee19c06
--- /dev/null
+++ b/examples/lock-app/infineon/cyw30739/build_overrides
@@ -0,0 +1 @@
+../../../build_overrides/
\ No newline at end of file
diff --git a/examples/lock-app/cyw30739/include/AppEvent.h b/examples/lock-app/infineon/cyw30739/include/AppEvent.h
similarity index 100%
rename from examples/lock-app/cyw30739/include/AppEvent.h
rename to examples/lock-app/infineon/cyw30739/include/AppEvent.h
diff --git a/examples/lock-app/cyw30739/include/AppShellCommands.h b/examples/lock-app/infineon/cyw30739/include/AppShellCommands.h
similarity index 100%
rename from examples/lock-app/cyw30739/include/AppShellCommands.h
rename to examples/lock-app/infineon/cyw30739/include/AppShellCommands.h
diff --git a/examples/lock-app/cyw30739/include/ButtonHandler.h b/examples/lock-app/infineon/cyw30739/include/ButtonHandler.h
similarity index 100%
rename from examples/lock-app/cyw30739/include/ButtonHandler.h
rename to examples/lock-app/infineon/cyw30739/include/ButtonHandler.h
diff --git a/examples/lock-app/cyw30739/include/CHIPProjectConfig.h b/examples/lock-app/infineon/cyw30739/include/CHIPProjectConfig.h
similarity index 100%
rename from examples/lock-app/cyw30739/include/CHIPProjectConfig.h
rename to examples/lock-app/infineon/cyw30739/include/CHIPProjectConfig.h
diff --git a/examples/lock-app/cyw30739/include/LockManager.h b/examples/lock-app/infineon/cyw30739/include/LockManager.h
similarity index 100%
rename from examples/lock-app/cyw30739/include/LockManager.h
rename to examples/lock-app/infineon/cyw30739/include/LockManager.h
diff --git a/examples/lock-app/cyw30739/include/chip_lock.h b/examples/lock-app/infineon/cyw30739/include/chip_lock.h
similarity index 100%
rename from examples/lock-app/cyw30739/include/chip_lock.h
rename to examples/lock-app/infineon/cyw30739/include/chip_lock.h
diff --git a/examples/lock-app/cyw30739/src/AppShellCommands.cpp b/examples/lock-app/infineon/cyw30739/src/AppShellCommands.cpp
similarity index 100%
rename from examples/lock-app/cyw30739/src/AppShellCommands.cpp
rename to examples/lock-app/infineon/cyw30739/src/AppShellCommands.cpp
diff --git a/examples/lock-app/cyw30739/src/ButtonHandler.cpp b/examples/lock-app/infineon/cyw30739/src/ButtonHandler.cpp
similarity index 100%
rename from examples/lock-app/cyw30739/src/ButtonHandler.cpp
rename to examples/lock-app/infineon/cyw30739/src/ButtonHandler.cpp
diff --git a/examples/lock-app/cyw30739/src/LockManager.cpp b/examples/lock-app/infineon/cyw30739/src/LockManager.cpp
similarity index 100%
rename from examples/lock-app/cyw30739/src/LockManager.cpp
rename to examples/lock-app/infineon/cyw30739/src/LockManager.cpp
diff --git a/examples/lock-app/cyw30739/src/ZclCallbacks.cpp b/examples/lock-app/infineon/cyw30739/src/ZclCallbacks.cpp
similarity index 100%
rename from examples/lock-app/cyw30739/src/ZclCallbacks.cpp
rename to examples/lock-app/infineon/cyw30739/src/ZclCallbacks.cpp
diff --git a/examples/lock-app/cyw30739/src/main.cpp b/examples/lock-app/infineon/cyw30739/src/main.cpp
similarity index 100%
rename from examples/lock-app/cyw30739/src/main.cpp
rename to examples/lock-app/infineon/cyw30739/src/main.cpp
diff --git a/examples/lock-app/cyw30739/static_config.txt b/examples/lock-app/infineon/cyw30739/static_config.txt
similarity index 100%
rename from examples/lock-app/cyw30739/static_config.txt
rename to examples/lock-app/infineon/cyw30739/static_config.txt
diff --git a/examples/lock-app/infineon/cyw30739/third_party/connectedhomeip b/examples/lock-app/infineon/cyw30739/third_party/connectedhomeip
new file mode 120000
index 0000000..3efed95
--- /dev/null
+++ b/examples/lock-app/infineon/cyw30739/third_party/connectedhomeip
@@ -0,0 +1 @@
+../../../../../
\ No newline at end of file
diff --git a/examples/lock-app/p6/.gn b/examples/lock-app/infineon/psoc6/.gn
similarity index 100%
rename from examples/lock-app/p6/.gn
rename to examples/lock-app/infineon/psoc6/.gn
diff --git a/examples/lock-app/p6/BUILD.gn b/examples/lock-app/infineon/psoc6/BUILD.gn
similarity index 75%
rename from examples/lock-app/p6/BUILD.gn
rename to examples/lock-app/infineon/psoc6/BUILD.gn
index b0db807..83823b1 100644
--- a/examples/lock-app/p6/BUILD.gn
+++ b/examples/lock-app/infineon/psoc6/BUILD.gn
@@ -14,17 +14,17 @@
import("//build_overrides/build.gni")
import("//build_overrides/chip.gni")
-import("//build_overrides/p6.gni")
+import("//build_overrides/psoc6.gni")
import("${build_root}/config/defaults.gni")
import("${chip_root}/src/platform/device.gni")
-import("${p6_sdk_build_root}/p6_executable.gni")
-import("${p6_sdk_build_root}/p6_sdk.gni")
+import("${psoc6_sdk_build_root}/psoc6_executable.gni")
+import("${psoc6_sdk_build_root}/psoc6_sdk.gni")
assert(current_os == "freertos")
-p6_project_dir = "${chip_root}/examples/lock-app/p6"
-examples_plat_dir = "${chip_root}/examples/platform/p6"
+psoc6_project_dir = "${chip_root}/examples/lock-app/infineon/psoc6"
+examples_plat_dir = "${chip_root}/examples/platform/infineon/psoc6"
declare_args() {
# Dump memory usage at link time.
@@ -37,8 +37,8 @@
build_update_image = false
}
-config("p6_ota_config") {
- linker_script = "${p6_sdk_root}/ota/cy8c6xxa_cm4_dual_ota_int.ld"
+config("psoc6_ota_config") {
+ linker_script = "${psoc6_sdk_root}/ota/cy8c6xxa_cm4_dual_ota_int.ld"
ldflags = [ "-T" + rebase_path(linker_script, root_build_dir) ]
@@ -74,32 +74,33 @@
defines += [ "CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION=2" ]
}
}
-p6_sdk_sources("lock_app_sdk_sources") {
+psoc6_sdk_sources("lock_app_sdk_sources") {
include_dirs = [
- "${chip_root}/src/platform/P6",
- "${p6_project_dir}/include",
+ "${chip_root}/src/platform/PSOC6",
+ "${psoc6_project_dir}/include",
"${examples_plat_dir}",
]
defines = [
- "BOARD_ID=${p6_board}",
+ "BOARD_ID=${psoc6_board}",
"P6_LOG_ENABLED=1",
"CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE=${setup_pin_code}",
]
- sources = [ "${p6_project_dir}/include/CHIPProjectConfig.h" ]
+ sources = [ "${psoc6_project_dir}/include/CHIPProjectConfig.h" ]
- public_configs = [ "${chip_root}/third_party/p6:p6_sdk_config" ]
+ public_configs =
+ [ "${chip_root}/third_party/infineon/psoc6:psoc6_sdk_config" ]
if (chip_enable_ota_requestor) {
- public_configs += [ ":p6_ota_config" ]
+ public_configs += [ ":psoc6_ota_config" ]
}
}
-p6_executable("lock_app") {
+psoc6_executable("lock_app") {
include_dirs = []
defines = []
- output_name = "chip-p6-lock-example.out"
+ output_name = "chip-psoc6-lock-example.out"
public_deps = [
":lock_app_sdk_sources",
@@ -113,13 +114,13 @@
include_dirs += [
"include",
"${examples_plat_dir}",
- "${p6_project_dir}/include",
+ "${psoc6_project_dir}/include",
]
sources = [
"${examples_plat_dir}/LEDWidget.cpp",
- "${examples_plat_dir}/init_p6Platform.cpp",
- "${p6_project_dir}/include/CHIPProjectConfig.h",
+ "${examples_plat_dir}/init_psoc6Platform.cpp",
+ "${psoc6_project_dir}/include/CHIPProjectConfig.h",
"src/AppTask.cpp",
"src/ButtonHandler.cpp",
"src/LockManager.cpp",
@@ -137,10 +138,10 @@
}
}
-group("p6") {
+group("psoc6") {
deps = [ ":lock_app" ]
}
group("default") {
- deps = [ ":p6" ]
+ deps = [ ":psoc6" ]
}
diff --git a/examples/lock-app/p6/README.md b/examples/lock-app/infineon/psoc6/README.md
similarity index 81%
rename from examples/lock-app/p6/README.md
rename to examples/lock-app/infineon/psoc6/README.md
index 3457822..5046ce5 100644
--- a/examples/lock-app/p6/README.md
+++ b/examples/lock-app/infineon/psoc6/README.md
@@ -1,10 +1,10 @@
-# Matter P6 Lock Example
+# Matter PSoC6 Lock Example
An example showing the use of Matter on the Infineon CY8CKIT-062S2-43012 board.
<hr>
-- [Matter P6 Lock Example](#chip-p6-lock-example)
+- [Matter PSoC6 Lock Example](#chip-psoc6-lock-example)
- [Introduction](#introduction)
- [Building](#building)
- [Flashing the Application](#flashing-the-application)
@@ -21,13 +21,13 @@
## Introduction
-The P6 lock example provides a demonstration of a door lock control device,
+The PSoC6 lock example provides a demonstration of a door lock control device,
built using Matter and the Infineon Modustoolbox SDK. It can be controlled by a
Matter controller over Wi-Fi network.
-The P6 device can be commissioned over Bluetooth Low Energy where the device and
-the Matter controller will exchange security information with the Rendezvous
-procedure. Wi-Fi Network credentials are then provided to the P6 device which
+The PSoC6 device can be commissioned over Bluetooth Low Energy where the device
+and the Matter controller will exchange security information with the Rendezvous
+procedure. Wi-Fi Network credentials are then provided to the PSoC6 device which
will then join the network.
<a name="building"></a>
@@ -37,8 +37,8 @@
- [Modustoolbox Software](https://www.cypress.com/products/modustoolbox)
Refer to `integrations/docker/images/chip-build-infineon/Dockerfile` or
- `scripts/examples/gn_p6_example.sh` for downloading the Software and related
- tools.
+ `scripts/examples/gn_psoc6_example.sh` for downloading the Software and
+ related tools.
- Install some additional tools (likely already present for Matter
developers): \$ sudo apt install gcc g++ clang ninja-build python
@@ -51,7 +51,7 @@
* Build the example application:
$ source scripts/activate.sh
- $ scripts/build/build_examples.py --no-log-timestamps --target 'infineon-p6-lock' build
+ $ scripts/build/build_examples.py --no-log-timestamps --target 'infineon-psoc6-lock' build
- To delete generated executable, libraries and object files use:
@@ -69,7 +69,7 @@
- On the command line:
$ cd ~/connectedhomeip
- $ python3 out/infineon-p6-lock/chip-p6-lock-example.flash.py
+ $ python3 out/infineon-psoc6-lock/chip-psoc6-lock-example.flash.py
<a name="Commissioning and cluster control"></a>
@@ -81,7 +81,7 @@
### Setting up Chip tool
-Once P6 is up and running, we need to set up chip-tool on Raspberry Pi 4 to
+Once PSoC6 is up and running, we need to set up chip-tool on Raspberry Pi 4 to
perform commissioning and cluster control.
- Set up python controller.
@@ -139,6 +139,6 @@
## OTA Software Update
-For the description of Software Update process with infineon P6 example
+For the description of Software Update process with infineon PSoC6 example
applications see
-[Infineon P6 OTA Software Update](../../../docs/guides/infineon_p6_software_update.md)
+[Infineon PSoC6 OTA Software Update](../../../docs/guides/infineon_psoc6_software_update.md)
diff --git a/examples/lock-app/p6/args.gni b/examples/lock-app/infineon/psoc6/args.gni
similarity index 89%
rename from examples/lock-app/p6/args.gni
rename to examples/lock-app/infineon/psoc6/args.gni
index a83cf1a..62bdc6d 100644
--- a/examples/lock-app/p6/args.gni
+++ b/examples/lock-app/infineon/psoc6/args.gni
@@ -14,7 +14,7 @@
import("//build_overrides/chip.gni")
import("//build_overrides/pigweed.gni")
-import("${chip_root}/src/platform/P6/args.gni")
+import("${chip_root}/src/platform/Infineon/PSOC6/args.gni")
-p6_target_project =
+psoc6_target_project =
get_label_info(":lock_app_sdk_sources", "label_no_toolchain")
diff --git a/examples/lock-app/infineon/psoc6/build_overrides b/examples/lock-app/infineon/psoc6/build_overrides
new file mode 120000
index 0000000..ee19c06
--- /dev/null
+++ b/examples/lock-app/infineon/psoc6/build_overrides
@@ -0,0 +1 @@
+../../../build_overrides/
\ No newline at end of file
diff --git a/examples/lock-app/p6/include/AppConfig.h b/examples/lock-app/infineon/psoc6/include/AppConfig.h
similarity index 100%
rename from examples/lock-app/p6/include/AppConfig.h
rename to examples/lock-app/infineon/psoc6/include/AppConfig.h
diff --git a/examples/lock-app/p6/include/AppEvent.h b/examples/lock-app/infineon/psoc6/include/AppEvent.h
similarity index 100%
rename from examples/lock-app/p6/include/AppEvent.h
rename to examples/lock-app/infineon/psoc6/include/AppEvent.h
diff --git a/examples/lock-app/p6/include/AppTask.h b/examples/lock-app/infineon/psoc6/include/AppTask.h
similarity index 100%
rename from examples/lock-app/p6/include/AppTask.h
rename to examples/lock-app/infineon/psoc6/include/AppTask.h
diff --git a/examples/lock-app/p6/include/ButtonHandler.h b/examples/lock-app/infineon/psoc6/include/ButtonHandler.h
similarity index 100%
rename from examples/lock-app/p6/include/ButtonHandler.h
rename to examples/lock-app/infineon/psoc6/include/ButtonHandler.h
diff --git a/examples/lock-app/p6/include/CHIPProjectConfig.h b/examples/lock-app/infineon/psoc6/include/CHIPProjectConfig.h
similarity index 100%
rename from examples/lock-app/p6/include/CHIPProjectConfig.h
rename to examples/lock-app/infineon/psoc6/include/CHIPProjectConfig.h
diff --git a/examples/lock-app/p6/include/LockManager.h b/examples/lock-app/infineon/psoc6/include/LockManager.h
similarity index 100%
rename from examples/lock-app/p6/include/LockManager.h
rename to examples/lock-app/infineon/psoc6/include/LockManager.h
diff --git a/examples/lock-app/p6/src/AppTask.cpp b/examples/lock-app/infineon/psoc6/src/AppTask.cpp
similarity index 99%
rename from examples/lock-app/p6/src/AppTask.cpp
rename to examples/lock-app/infineon/psoc6/src/AppTask.cpp
index f93438d..fe4baf6 100644
--- a/examples/lock-app/p6/src/AppTask.cpp
+++ b/examples/lock-app/infineon/psoc6/src/AppTask.cpp
@@ -44,7 +44,7 @@
#include <setup_payload/SetupPayload.h>
#include <app/clusters/network-commissioning/network-commissioning.h>
-#include <platform/P6/NetworkCommissioningDriver.h>
+#include <platform/Infineon/PSOC6/NetworkCommissioningDriver.h>
#include <DeviceInfoProviderImpl.h>
#include <app/clusters/door-lock-server/door-lock-server.h>
@@ -56,7 +56,7 @@
#include <app/clusters/ota-requestor/DefaultOTARequestor.h>
#include <app/clusters/ota-requestor/DefaultOTARequestorDriver.h>
#include <app/clusters/ota-requestor/DefaultOTARequestorStorage.h>
-#include <platform/P6/OTAImageProcessorImpl.h>
+#include <platform/Infineon/PSOC6/OTAImageProcessorImpl.h>
using chip::BDXDownloader;
using chip::CharSpan;
diff --git a/examples/lock-app/p6/src/ButtonHandler.cpp b/examples/lock-app/infineon/psoc6/src/ButtonHandler.cpp
similarity index 100%
rename from examples/lock-app/p6/src/ButtonHandler.cpp
rename to examples/lock-app/infineon/psoc6/src/ButtonHandler.cpp
diff --git a/examples/lock-app/p6/src/LockManager.cpp b/examples/lock-app/infineon/psoc6/src/LockManager.cpp
similarity index 99%
rename from examples/lock-app/p6/src/LockManager.cpp
rename to examples/lock-app/infineon/psoc6/src/LockManager.cpp
index d83b984..059f059 100644
--- a/examples/lock-app/p6/src/LockManager.cpp
+++ b/examples/lock-app/infineon/psoc6/src/LockManager.cpp
@@ -25,7 +25,7 @@
#include <app-common/zap-generated/attributes/Accessors.h>
#include <cstring>
#include <lib/support/logging/CHIPLogging.h>
-#include <platform/P6/P6Config.h>
+#include <platform/Infineon/PSOC6/P6Config.h>
LockManager LockManager::sLock;
diff --git a/examples/lock-app/p6/src/ZclCallbacks.cpp b/examples/lock-app/infineon/psoc6/src/ZclCallbacks.cpp
similarity index 100%
rename from examples/lock-app/p6/src/ZclCallbacks.cpp
rename to examples/lock-app/infineon/psoc6/src/ZclCallbacks.cpp
diff --git a/examples/lock-app/p6/src/main.cpp b/examples/lock-app/infineon/psoc6/src/main.cpp
similarity index 98%
rename from examples/lock-app/p6/src/main.cpp
rename to examples/lock-app/infineon/psoc6/src/main.cpp
index f998b3c..8dc525d 100644
--- a/examples/lock-app/p6/src/main.cpp
+++ b/examples/lock-app/infineon/psoc6/src/main.cpp
@@ -35,7 +35,7 @@
#include "AppConfig.h"
#include "cyhal_wdt.h"
-#include "init_p6Platform.h"
+#include "init_psoc6Platform.h"
#include <app/server/Server.h>
#define MAIN_TASK_STACK_SIZE (4096)
diff --git a/examples/lock-app/infineon/psoc6/third_party/connectedhomeip b/examples/lock-app/infineon/psoc6/third_party/connectedhomeip
new file mode 120000
index 0000000..3efed95
--- /dev/null
+++ b/examples/lock-app/infineon/psoc6/third_party/connectedhomeip
@@ -0,0 +1 @@
+../../../../../
\ No newline at end of file
diff --git a/examples/lock-app/p6/build_overrides b/examples/lock-app/p6/build_overrides
deleted file mode 120000
index 194ee0b..0000000
--- a/examples/lock-app/p6/build_overrides
+++ /dev/null
@@ -1 +0,0 @@
-../../build_overrides/
\ No newline at end of file
diff --git a/examples/lock-app/p6/third_party/connectedhomeip b/examples/lock-app/p6/third_party/connectedhomeip
deleted file mode 120000
index 11a54ed..0000000
--- a/examples/lock-app/p6/third_party/connectedhomeip
+++ /dev/null
@@ -1 +0,0 @@
-../../../../
\ No newline at end of file
diff --git a/examples/ota-requestor-app/cyw30739/build_overrides b/examples/ota-requestor-app/cyw30739/build_overrides
deleted file mode 120000
index e578e73..0000000
--- a/examples/ota-requestor-app/cyw30739/build_overrides
+++ /dev/null
@@ -1 +0,0 @@
-../../build_overrides
\ No newline at end of file
diff --git a/examples/ota-requestor-app/cyw30739/third_party/connectedhomeip b/examples/ota-requestor-app/cyw30739/third_party/connectedhomeip
deleted file mode 120000
index c866b86..0000000
--- a/examples/ota-requestor-app/cyw30739/third_party/connectedhomeip
+++ /dev/null
@@ -1 +0,0 @@
-../../../..
\ No newline at end of file
diff --git a/examples/ota-requestor-app/cyw30739/.gn b/examples/ota-requestor-app/infineon/cyw30739/.gn
similarity index 100%
rename from examples/ota-requestor-app/cyw30739/.gn
rename to examples/ota-requestor-app/infineon/cyw30739/.gn
diff --git a/examples/ota-requestor-app/cyw30739/BUILD.gn b/examples/ota-requestor-app/infineon/cyw30739/BUILD.gn
similarity index 91%
rename from examples/ota-requestor-app/cyw30739/BUILD.gn
rename to examples/ota-requestor-app/infineon/cyw30739/BUILD.gn
index b1ea6fd..3701330 100644
--- a/examples/ota-requestor-app/cyw30739/BUILD.gn
+++ b/examples/ota-requestor-app/infineon/cyw30739/BUILD.gn
@@ -19,8 +19,9 @@
import("${cyw30739_sdk_build_root}/cyw30739_executable.gni")
import("${cyw30739_sdk_build_root}/cyw30739_sdk.gni")
-cyw30739_project_dir = "${chip_root}/examples/ota-requestor-app/cyw30739"
-examples_plat_dir = "${chip_root}/examples/platform/cyw30739"
+cyw30739_project_dir =
+ "${chip_root}/examples/ota-requestor-app/infineon/cyw30739"
+examples_plat_dir = "${chip_root}/examples/platform/infineon/cyw30739"
declare_args() {
setupPinCode = 20202021
diff --git a/examples/ota-requestor-app/cyw30739/README.md b/examples/ota-requestor-app/infineon/cyw30739/README.md
similarity index 93%
rename from examples/ota-requestor-app/cyw30739/README.md
rename to examples/ota-requestor-app/infineon/cyw30739/README.md
index 49737cd..7ac0990 100644
--- a/examples/ota-requestor-app/cyw30739/README.md
+++ b/examples/ota-requestor-app/infineon/cyw30739/README.md
@@ -33,7 +33,7 @@
```bash
$ cd ~/connectedhomeip
$ git submodule update --init
- $ ./scripts/examples/gn_build_example.sh examples/ota-requestor-app/cyw30739 out/ota-requestor-app
+ $ ./scripts/examples/gn_build_example.sh examples/ota-requestor-app/infineon/cyw30739 out/ota-requestor-app
```
- To delete generated executable, libraries and object files use:
@@ -46,7 +46,7 @@
- OR use GN/Ninja directly
```bash
- $ cd ~/connectedhomeip/examples/ota-requestor-app/cyw30739
+ $ cd ~/connectedhomeip/examples/ota-requestor-app/infineon/cyw30739
$ git submodule update --init
$ source third_party/connectedhomeip/scripts/activate.sh
$ gn gen out/debug
@@ -56,7 +56,7 @@
- To delete generated executable, libraries and object files use:
```bash
- $ cd ~/connectedhomeip/examples/ota-requestor-app/cyw30739
+ $ cd ~/connectedhomeip/examples/ota-requestor-app/infineon/cyw30739
$ rm -rf out/
```
@@ -76,7 +76,7 @@
- On the command line:
```bash
- $ cd ~/connectedhomeip/examples/ota-requestor-app/cyw30739
+ $ cd ~/connectedhomeip/examples/ota-requestor-app/infineon/cyw30739
$ python3 out/debug/chip-cyw30739-ota-requestor-example.flash.py
```
diff --git a/examples/ota-requestor-app/cyw30739/args.gni b/examples/ota-requestor-app/infineon/cyw30739/args.gni
similarity index 92%
rename from examples/ota-requestor-app/cyw30739/args.gni
rename to examples/ota-requestor-app/infineon/cyw30739/args.gni
index 8eda8fb..37d8fa8 100644
--- a/examples/ota-requestor-app/cyw30739/args.gni
+++ b/examples/ota-requestor-app/infineon/cyw30739/args.gni
@@ -13,7 +13,7 @@
# limitations under the License.
import("//build_overrides/chip.gni")
-import("${chip_root}/src/platform/CYW30739/args.gni")
+import("${chip_root}/src/platform/Infineon/CYW30739/args.gni")
cyw30739_sdk_target = get_label_info(":sdk", "label_no_toolchain")
diff --git a/examples/ota-requestor-app/infineon/cyw30739/build_overrides b/examples/ota-requestor-app/infineon/cyw30739/build_overrides
new file mode 120000
index 0000000..ee19c06
--- /dev/null
+++ b/examples/ota-requestor-app/infineon/cyw30739/build_overrides
@@ -0,0 +1 @@
+../../../build_overrides/
\ No newline at end of file
diff --git a/examples/ota-requestor-app/cyw30739/include/CHIPProjectConfig.h b/examples/ota-requestor-app/infineon/cyw30739/include/CHIPProjectConfig.h
similarity index 100%
rename from examples/ota-requestor-app/cyw30739/include/CHIPProjectConfig.h
rename to examples/ota-requestor-app/infineon/cyw30739/include/CHIPProjectConfig.h
diff --git a/examples/ota-requestor-app/cyw30739/src/main.cpp b/examples/ota-requestor-app/infineon/cyw30739/src/main.cpp
similarity index 100%
rename from examples/ota-requestor-app/cyw30739/src/main.cpp
rename to examples/ota-requestor-app/infineon/cyw30739/src/main.cpp
diff --git a/examples/ota-requestor-app/cyw30739/static_config.txt b/examples/ota-requestor-app/infineon/cyw30739/static_config.txt
similarity index 100%
rename from examples/ota-requestor-app/cyw30739/static_config.txt
rename to examples/ota-requestor-app/infineon/cyw30739/static_config.txt
diff --git a/examples/ota-requestor-app/infineon/cyw30739/third_party/connectedhomeip b/examples/ota-requestor-app/infineon/cyw30739/third_party/connectedhomeip
new file mode 120000
index 0000000..3efed95
--- /dev/null
+++ b/examples/ota-requestor-app/infineon/cyw30739/third_party/connectedhomeip
@@ -0,0 +1 @@
+../../../../../
\ No newline at end of file
diff --git a/examples/persistent-storage/p6/.gn b/examples/persistent-storage/infineon/psoc6/.gn
similarity index 100%
rename from examples/persistent-storage/p6/.gn
rename to examples/persistent-storage/infineon/psoc6/.gn
diff --git a/examples/persistent-storage/p6/BUILD.gn b/examples/persistent-storage/infineon/psoc6/BUILD.gn
similarity index 63%
rename from examples/persistent-storage/p6/BUILD.gn
rename to examples/persistent-storage/infineon/psoc6/BUILD.gn
index 944a2e0..d359f83 100644
--- a/examples/persistent-storage/p6/BUILD.gn
+++ b/examples/persistent-storage/infineon/psoc6/BUILD.gn
@@ -14,43 +14,44 @@
import("//build_overrides/build.gni")
import("//build_overrides/chip.gni")
-import("//build_overrides/p6.gni")
+import("//build_overrides/psoc6.gni")
import("${build_root}/config/defaults.gni")
-import("${p6_sdk_build_root}/p6_executable.gni")
-import("${p6_sdk_build_root}/p6_sdk.gni")
+import("${psoc6_sdk_build_root}/psoc6_executable.gni")
+import("${psoc6_sdk_build_root}/psoc6_sdk.gni")
assert(current_os == "freertos")
-p6_project_dir = "${chip_root}/examples/persistent-storage/p6"
-examples_plat_dir = "${chip_root}/examples/platform/p6"
+psoc6_project_dir = "${chip_root}/examples/persistent-storage/infineon/psoc6"
+examples_plat_dir = "${chip_root}/examples/platform/infineon/psoc6"
declare_args() {
# Dump memory usage at link time.
chip_print_memory_usage = false
}
-p6_sdk_sources("persistent_storage_app_sdk_sources") {
+psoc6_sdk_sources("persistent_storage_app_sdk_sources") {
include_dirs = [
- "${chip_root}/src/platform/P6",
- "${p6_project_dir}/include",
+ "${chip_root}/src/platform/Infineon/PSOC6",
+ "${psoc6_project_dir}/include",
"${examples_plat_dir}",
]
defines = [
- "BOARD_ID=${p6_board}",
+ "BOARD_ID=${psoc6_board}",
"P6_LOG_ENABLED=1",
]
- sources = [ "${p6_project_dir}/include/CHIPProjectConfig.h" ]
+ sources = [ "${psoc6_project_dir}/include/CHIPProjectConfig.h" ]
- public_configs = [ "${chip_root}/third_party/p6:p6_sdk_config" ]
+ public_configs =
+ [ "${chip_root}/third_party/infineon/psoc6:psoc6_sdk_config" ]
}
-p6_executable("persistent_storage_app") {
+psoc6_executable("persistent_storage_app") {
include_dirs = []
defines = []
- output_name = "chip-p6-persistent-storage-example.out"
+ output_name = "chip-psoc6-persistent-storage-example.out"
public_deps = [
":persistent_storage_app_sdk_sources",
@@ -61,14 +62,14 @@
include_dirs += [
"include",
"${examples_plat_dir}",
- "${p6_project_dir}/include",
+ "${psoc6_project_dir}/include",
"${chip_root}/examples/persistent-storage",
]
sources = [
"${chip_root}/examples/persistent-storage/KeyValueStorageTest.cpp",
- "${examples_plat_dir}/init_p6Platform.cpp",
- "${p6_project_dir}/include/CHIPProjectConfig.h",
+ "${examples_plat_dir}/init_psoc6Platform.cpp",
+ "${psoc6_project_dir}/include/CHIPProjectConfig.h",
"main.cpp",
]
@@ -82,10 +83,10 @@
}
}
-group("p6") {
+group("psoc6") {
deps = [ ":persistent_storage_app" ]
}
group("default") {
- deps = [ ":p6" ]
+ deps = [ ":psoc6" ]
}
diff --git a/examples/persistent-storage/p6/README.md b/examples/persistent-storage/infineon/psoc6/README.md
similarity index 65%
rename from examples/persistent-storage/p6/README.md
rename to examples/persistent-storage/infineon/psoc6/README.md
index 8f30eca..19a32c6 100644
--- a/examples/persistent-storage/p6/README.md
+++ b/examples/persistent-storage/infineon/psoc6/README.md
@@ -1,12 +1,12 @@
-# CHIP P6 Persistent Storage Example
+# CHIP PSoC6 Persistent Storage Example
An example testing and demonstrating the key value storage API.
<hr>
-- [CHIP P6 Persistent Storage Example](#chip-P6-persistent-storage-example)
+- [CHIP PSoC6 Persistent Storage Example](#chip-PSoC6-persistent-storage-example)
- [Introduction](#introduction)
- - [P6](#P6)
+ - [PSoC6](#PSoC6)
- [Building](#building)
- [Flashing the Application](#flashing-the-application)
@@ -23,12 +23,12 @@
In the future this example can be moved into a unit test when available on all
platforms.
-<a name="P6"></a>
+<a name="PSoC6"></a>
-## P6
+## PSoC6
-The P6 platform KVS is fully implemented, the KVS is enabled and configured by
-providing a file during the init call.
+The Infineon PSoC6 platform KVS is fully implemented, the KVS is enabled and
+configured by providing a file during the init call.
<a name="building"></a>
@@ -38,7 +38,7 @@
$ git submodule update --init
$ source third_party/connectedhomeip/scripts/activate.sh
- $ ./scripts/examples/gn_p6_example.sh examples/persistent-storage/p6 out/persistent_storage_app_p6
+ $ ./scripts/examples/gn_psoc6_example.sh examples/persistent-storage/infineon/psoc6 out/persistent_storage_app_psoc6
<a name="flashing"></a>
@@ -51,4 +51,4 @@
- On the command line:
$ cd ~/connectedhomeip
- $ python3 out/persistent_storage_app_p6/chip-p6-persistent-storage-example.flash.py
+ $ python3 out/persistent_storage_app_psoc6/chip-psoc6-persistent-storage-example.flash.py
diff --git a/examples/persistent-storage/p6/args.gni b/examples/persistent-storage/infineon/psoc6/args.gni
similarity index 89%
rename from examples/persistent-storage/p6/args.gni
rename to examples/persistent-storage/infineon/psoc6/args.gni
index 1c30d81..0b4443e 100644
--- a/examples/persistent-storage/p6/args.gni
+++ b/examples/persistent-storage/infineon/psoc6/args.gni
@@ -14,7 +14,7 @@
import("//build_overrides/chip.gni")
import("//build_overrides/pigweed.gni")
-import("${chip_root}/src/platform/P6/args.gni")
+import("${chip_root}/src/platform/Infineon/PSOC6/args.gni")
-p6_target_project =
+psoc6_target_project =
get_label_info(":persistent_storage_app_sdk_sources", "label_no_toolchain")
diff --git a/examples/persistent-storage/infineon/psoc6/build_overrides b/examples/persistent-storage/infineon/psoc6/build_overrides
new file mode 120000
index 0000000..ee19c06
--- /dev/null
+++ b/examples/persistent-storage/infineon/psoc6/build_overrides
@@ -0,0 +1 @@
+../../../build_overrides/
\ No newline at end of file
diff --git a/examples/persistent-storage/p6/include/AppConfig.h b/examples/persistent-storage/infineon/psoc6/include/AppConfig.h
similarity index 100%
rename from examples/persistent-storage/p6/include/AppConfig.h
rename to examples/persistent-storage/infineon/psoc6/include/AppConfig.h
diff --git a/examples/persistent-storage/p6/include/CHIPProjectConfig.h b/examples/persistent-storage/infineon/psoc6/include/CHIPProjectConfig.h
similarity index 100%
rename from examples/persistent-storage/p6/include/CHIPProjectConfig.h
rename to examples/persistent-storage/infineon/psoc6/include/CHIPProjectConfig.h
diff --git a/examples/persistent-storage/p6/main.cpp b/examples/persistent-storage/infineon/psoc6/main.cpp
similarity index 98%
rename from examples/persistent-storage/p6/main.cpp
rename to examples/persistent-storage/infineon/psoc6/main.cpp
index 03a5132..104d63f 100644
--- a/examples/persistent-storage/p6/main.cpp
+++ b/examples/persistent-storage/infineon/psoc6/main.cpp
@@ -18,7 +18,7 @@
#include "AppConfig.h"
#include "KeyValueStorageTest.h"
-#include "init_p6Platform.h"
+#include "init_psoc6Platform.h"
#include <FreeRTOS.h>
#include <platform/CHIPDeviceLayer.h>
#include <platform/KeyValueStoreManager.h>
diff --git a/examples/persistent-storage/infineon/psoc6/third_party/connectedhomeip b/examples/persistent-storage/infineon/psoc6/third_party/connectedhomeip
new file mode 120000
index 0000000..3efed95
--- /dev/null
+++ b/examples/persistent-storage/infineon/psoc6/third_party/connectedhomeip
@@ -0,0 +1 @@
+../../../../../
\ No newline at end of file
diff --git a/examples/persistent-storage/p6/build_overrides b/examples/persistent-storage/p6/build_overrides
deleted file mode 120000
index 194ee0b..0000000
--- a/examples/persistent-storage/p6/build_overrides
+++ /dev/null
@@ -1 +0,0 @@
-../../build_overrides/
\ No newline at end of file
diff --git a/examples/persistent-storage/p6/third_party/connectedhomeip b/examples/persistent-storage/p6/third_party/connectedhomeip
deleted file mode 120000
index c866b86..0000000
--- a/examples/persistent-storage/p6/third_party/connectedhomeip
+++ /dev/null
@@ -1 +0,0 @@
-../../../..
\ No newline at end of file
diff --git a/examples/platform/cyw30739/BUILD.gn b/examples/platform/infineon/cyw30739/BUILD.gn
similarity index 100%
rename from examples/platform/cyw30739/BUILD.gn
rename to examples/platform/infineon/cyw30739/BUILD.gn
diff --git a/examples/platform/cyw30739/OTAConfig.cpp b/examples/platform/infineon/cyw30739/OTAConfig.cpp
similarity index 97%
rename from examples/platform/cyw30739/OTAConfig.cpp
rename to examples/platform/infineon/cyw30739/OTAConfig.cpp
index 05902c1..206db24 100644
--- a/examples/platform/cyw30739/OTAConfig.cpp
+++ b/examples/platform/infineon/cyw30739/OTAConfig.cpp
@@ -23,7 +23,7 @@
#include <app/clusters/ota-requestor/DefaultOTARequestorDriver.h>
#include <app/clusters/ota-requestor/DefaultOTARequestorStorage.h>
#include <app/server/Server.h>
-#include <platform/CYW30739/OTAImageProcessorImpl.h>
+#include <platform/Infineon/CYW30739/OTAImageProcessorImpl.h>
using namespace ::chip;
using namespace ::chip::DeviceLayer;
diff --git a/examples/platform/cyw30739/OTAConfig.h b/examples/platform/infineon/cyw30739/OTAConfig.h
similarity index 100%
rename from examples/platform/cyw30739/OTAConfig.h
rename to examples/platform/infineon/cyw30739/OTAConfig.h
diff --git a/examples/platform/cyw30739/args.gni b/examples/platform/infineon/cyw30739/args.gni
similarity index 100%
rename from examples/platform/cyw30739/args.gni
rename to examples/platform/infineon/cyw30739/args.gni
diff --git a/examples/platform/cyw30739/project_include/OpenThreadConfig.h b/examples/platform/infineon/cyw30739/project_include/OpenThreadConfig.h
similarity index 100%
rename from examples/platform/cyw30739/project_include/OpenThreadConfig.h
rename to examples/platform/infineon/cyw30739/project_include/OpenThreadConfig.h
diff --git a/examples/platform/p6/BUILD.gn b/examples/platform/infineon/psoc6/BUILD.gn
similarity index 88%
rename from examples/platform/p6/BUILD.gn
rename to examples/platform/infineon/psoc6/BUILD.gn
index 6d4842a..d574f63 100644
--- a/examples/platform/p6/BUILD.gn
+++ b/examples/platform/infineon/psoc6/BUILD.gn
@@ -13,9 +13,9 @@
# limitations under the License.
import("//build_overrides/chip.gni")
-import("//build_overrides/p6.gni")
+import("//build_overrides/psoc6.gni")
-import("${p6_sdk_build_root}/p6_sdk.gni")
+import("${psoc6_sdk_build_root}/psoc6_sdk.gni")
config("chip_examples_project_config") {
include_dirs = [ "project_include" ]
diff --git a/examples/platform/p6/LEDWidget.cpp b/examples/platform/infineon/psoc6/LEDWidget.cpp
similarity index 100%
rename from examples/platform/p6/LEDWidget.cpp
rename to examples/platform/infineon/psoc6/LEDWidget.cpp
diff --git a/examples/platform/p6/LEDWidget.h b/examples/platform/infineon/psoc6/LEDWidget.h
similarity index 100%
rename from examples/platform/p6/LEDWidget.h
rename to examples/platform/infineon/psoc6/LEDWidget.h
diff --git a/examples/platform/p6/args.gni b/examples/platform/infineon/psoc6/args.gni
similarity index 100%
rename from examples/platform/p6/args.gni
rename to examples/platform/infineon/psoc6/args.gni
diff --git a/examples/platform/p6/init_p6Platform.cpp b/examples/platform/infineon/psoc6/init_psoc6Platform.cpp
similarity index 100%
rename from examples/platform/p6/init_p6Platform.cpp
rename to examples/platform/infineon/psoc6/init_psoc6Platform.cpp
diff --git a/examples/platform/p6/init_p6Platform.h b/examples/platform/infineon/psoc6/init_psoc6Platform.h
similarity index 100%
rename from examples/platform/p6/init_p6Platform.h
rename to examples/platform/infineon/psoc6/init_psoc6Platform.h
diff --git a/gn_build.sh b/gn_build.sh
index 0615a18..18473f3 100755
--- a/gn_build.sh
+++ b/gn_build.sh
@@ -106,7 +106,7 @@
enable_p6_builds=true)
p6_builds_enabled=1
;;
- p6_board=*)
+ psoc6_board=*)
p6_board_selected=1
;;
esac
@@ -141,13 +141,13 @@
echo
-# P6 Build setup
+# PSoC6 Build setup
if [[ -z "$p6_builds_enabled" ]]; then
echo "Hint: Pass enable_p6_builds=true to this script to enable building for PSoC6-43012"
else
- p6_sdk_args=""
+ psoc6_sdk_args=""
if [[ -z "$p6_board_selected" ]]; then
- p6_sdk_args="p6_board=\"CY8CKIT-062S2-43012\""
+ psoc6_sdk_args="psoc6_board=\"CY8CKIT-062S2-43012\""
fi
fi
diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py
index cb457e6..c9edb01 100755
--- a/scripts/build/build/targets.py
+++ b/scripts/build/build/targets.py
@@ -520,7 +520,7 @@
builder.AppendVariant(name="ota", enable_ota_requestor=True)
builder.AppendVariant(name="updateimage", update_image=True)
- target = Target('infineon-p6', InfineonBuilder, board=InfineonBoard.P6BOARD)
+ target = Target('infineon-psoc6', InfineonBuilder, board=InfineonBoard.PSOC6BOARD)
builder.targets.append(target.Extend('lock', app=InfineonApp.LOCK))
builder.targets.append(target.Extend('light', app=InfineonApp.LIGHT))
diff --git a/scripts/build/builders/cyw30739.py b/scripts/build/builders/cyw30739.py
index 5d4470f..b034775 100644
--- a/scripts/build/builders/cyw30739.py
+++ b/scripts/build/builders/cyw30739.py
@@ -44,7 +44,7 @@
raise Exception("Unknown app type: %r" % self)
def BuildRoot(self, root):
- return os.path.join(root, "examples", self.ExampleName(), "cyw30739")
+ return os.path.join(root, "examples", self.ExampleName(), "infineon/cyw30739")
class Cyw30739Board(Enum):
diff --git a/scripts/build/builders/infineon.py b/scripts/build/builders/infineon.py
index d0b7361..1783fae 100644
--- a/scripts/build/builders/infineon.py
+++ b/scripts/build/builders/infineon.py
@@ -38,13 +38,13 @@
def AppNamePrefix(self):
if self == InfineonApp.LOCK:
- return 'chip-p6-lock-example'
+ return 'chip-psoc6-lock-example'
elif self == InfineonApp.LIGHT:
- return 'chip-p6-lighting-example'
+ return 'chip-psoc6-lighting-example'
elif self == InfineonApp.ALL_CLUSTERS:
- return 'chip-p6-clusters-example'
+ return 'chip-psoc6-clusters-example'
elif self == InfineonApp.ALL_CLUSTERS_MINIMAL:
- return 'chip-p6-clusters-minimal-example'
+ return 'chip-psoc6-clusters-minimal-example'
else:
raise Exception('Unknown app type: %r' % self)
@@ -61,14 +61,14 @@
raise Exception('Unknown app type: %r' % self)
def BuildRoot(self, root):
- return os.path.join(root, 'examples', self.ExampleName(), 'p6')
+ return os.path.join(root, 'examples', self.ExampleName(), 'infineon/psoc6')
class InfineonBoard(Enum):
- P6BOARD = 1
+ PSOC6BOARD = 1
def GnArgName(self):
- if self == InfineonBoard.P6BOARD:
+ if self == InfineonBoard.PSOC6BOARD:
return 'CY8CKIT-062S2-43012'
@@ -78,7 +78,7 @@
root,
runner,
app: InfineonApp = InfineonApp.LOCK,
- board: InfineonBoard = InfineonBoard.P6BOARD,
+ board: InfineonBoard = InfineonBoard.PSOC6BOARD,
enable_ota_requestor: bool = False,
update_image: bool = False):
super(InfineonBuilder, self).__init__(
@@ -86,7 +86,7 @@
runner=runner)
self.app = app
- self.extra_gn_options = ['p6_board="%s"' % board.GnArgName()]
+ self.extra_gn_options = ['psoc6_board="%s"' % board.GnArgName()]
if enable_ota_requestor:
self.extra_gn_options.append('chip_enable_ota_requestor=true')
diff --git a/scripts/build/testdata/all_targets_except_host.txt b/scripts/build/testdata/all_targets_except_host.txt
index fe98801..ffbe1be 100644
--- a/scripts/build/testdata/all_targets_except_host.txt
+++ b/scripts/build/testdata/all_targets_except_host.txt
@@ -178,22 +178,22 @@
imx-ota-provider-app-release
imx-thermostat
imx-thermostat-release
-infineon-p6-all-clusters
-infineon-p6-all-clusters-minimal
-infineon-p6-all-clusters-minimal-ota (NOGLOB: Reduce default build variants)
-infineon-p6-all-clusters-minimal-ota-updateimage (NOGLOB: Reduce default build variants)
-infineon-p6-all-clusters-minimal-updateimage (NOGLOB: Reduce default build variants)
-infineon-p6-all-clusters-ota (NOGLOB: Reduce default build variants)
-infineon-p6-all-clusters-ota-updateimage (NOGLOB: Reduce default build variants)
-infineon-p6-all-clusters-updateimage (NOGLOB: Reduce default build variants)
-infineon-p6-light
-infineon-p6-light-ota (NOGLOB: Reduce default build variants)
-infineon-p6-light-ota-updateimage (NOGLOB: Reduce default build variants)
-infineon-p6-light-updateimage (NOGLOB: Reduce default build variants)
-infineon-p6-lock
-infineon-p6-lock-ota (NOGLOB: Reduce default build variants)
-infineon-p6-lock-ota-updateimage (NOGLOB: Reduce default build variants)
-infineon-p6-lock-updateimage (NOGLOB: Reduce default build variants)
+infineon-psoc6-all-clusters
+infineon-psoc6-all-clusters-minimal
+infineon-psoc6-all-clusters-minimal-ota (NOGLOB: Reduce default build variants)
+infineon-psoc6-all-clusters-minimal-ota-updateimage (NOGLOB: Reduce default build variants)
+infineon-psoc6-all-clusters-minimal-updateimage (NOGLOB: Reduce default build variants)
+infineon-psoc6-all-clusters-ota (NOGLOB: Reduce default build variants)
+infineon-psoc6-all-clusters-ota-updateimage (NOGLOB: Reduce default build variants)
+infineon-psoc6-all-clusters-updateimage (NOGLOB: Reduce default build variants)
+infineon-psoc6-light
+infineon-psoc6-light-ota (NOGLOB: Reduce default build variants)
+infineon-psoc6-light-ota-updateimage (NOGLOB: Reduce default build variants)
+infineon-psoc6-light-updateimage (NOGLOB: Reduce default build variants)
+infineon-psoc6-lock
+infineon-psoc6-lock-ota (NOGLOB: Reduce default build variants)
+infineon-psoc6-lock-ota-updateimage (NOGLOB: Reduce default build variants)
+infineon-psoc6-lock-updateimage (NOGLOB: Reduce default build variants)
k32w-light-ota-se (NOGLOB: Only on demand build)
k32w-light-release-no-ota
k32w-lock-low-power-release (NOGLOB: Only on demand build)
diff --git a/scripts/build/testdata/build_all_except_host.txt b/scripts/build/testdata/build_all_except_host.txt
index 6cb3d25..7c255c2 100644
--- a/scripts/build/testdata/build_all_except_host.txt
+++ b/scripts/build/testdata/build_all_except_host.txt
@@ -173,16 +173,16 @@
gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/shell/cc13x2x7_26x2x7 '--args=ti_sysconfig_root="TEST_TI_SYSCONFIG_ROOT"' {out}/cc13x2x7_26x2x7-shell
# Generating cyw30739-cyw930739m2evb_01-light
-gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/cyw30739 {out}/cyw30739-cyw930739m2evb_01-light
+gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/infineon/cyw30739 {out}/cyw30739-cyw930739m2evb_01-light
# Generating cyw30739-cyw930739m2evb_01-lock
-gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/cyw30739 {out}/cyw30739-cyw930739m2evb_01-lock
+gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/infineon/cyw30739 {out}/cyw30739-cyw930739m2evb_01-lock
# Generating cyw30739-cyw930739m2evb_01-ota-requestor
-gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-requestor-app/cyw30739 {out}/cyw30739-cyw930739m2evb_01-ota-requestor
+gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-requestor-app/infineon/cyw30739 {out}/cyw30739-cyw930739m2evb_01-ota-requestor
# Generating cyw30739-cyw930739m2evb_01-ota-requestor-no-progress-logging
-gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-requestor-app/cyw30739 --args=chip_progress_logging=false {out}/cyw30739-cyw930739m2evb_01-ota-requestor-no-progress-logging
+gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-requestor-app/infineon/cyw30739 --args=chip_progress_logging=false {out}/cyw30739-cyw930739m2evb_01-ota-requestor-no-progress-logging
# Generating efr32-brd4161a-light
gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=efr32_board="BRD4161A"' {out}/efr32-brd4161a-light
@@ -843,53 +843,53 @@
# Generating imx-thermostat-release
gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/thermostat/linux '--args=treat_warnings_as_errors=false target_os="linux" target_cpu="arm64" arm_arch="armv8-a" import("//build_overrides/build.gni") custom_toolchain="${build_root}/toolchain/custom" sysroot="IMX_SDK_ROOT/sysroots/cortexa53-crypto-poky-linux" target_cflags=[ "-DCHIP_DEVICE_CONFIG_WIFI_STATION_IF_NAME=\"mlan0\"", "-DCHIP_DEVICE_CONFIG_LINUX_DHCPC_CMD=\"udhcpc -b -i %s \"" ] target_cc="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc" target_cxx="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++" target_ar="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-ar" is_debug=false' {out}/imx-thermostat-release
-# Generating infineon-p6-all-clusters
-gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/p6 '--args=p6_board="CY8CKIT-062S2-43012"' {out}/infineon-p6-all-clusters
+# Generating infineon-psoc6-all-clusters
+gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012"' {out}/infineon-psoc6-all-clusters
-# Generating infineon-p6-all-clusters-minimal
-gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/p6 '--args=p6_board="CY8CKIT-062S2-43012"' {out}/infineon-p6-all-clusters-minimal
+# Generating infineon-psoc6-all-clusters-minimal
+gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012"' {out}/infineon-psoc6-all-clusters-minimal
-# Generating infineon-p6-all-clusters-minimal-ota
-gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/p6 '--args=p6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true' {out}/infineon-p6-all-clusters-minimal-ota
+# Generating infineon-psoc6-all-clusters-minimal-ota
+gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true' {out}/infineon-psoc6-all-clusters-minimal-ota
-# Generating infineon-p6-all-clusters-minimal-ota-updateimage
-gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/p6 '--args=p6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true build_update_image=true' {out}/infineon-p6-all-clusters-minimal-ota-updateimage
+# Generating infineon-psoc6-all-clusters-minimal-ota-updateimage
+gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true build_update_image=true' {out}/infineon-psoc6-all-clusters-minimal-ota-updateimage
-# Generating infineon-p6-all-clusters-minimal-updateimage
-gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/p6 '--args=p6_board="CY8CKIT-062S2-43012" build_update_image=true' {out}/infineon-p6-all-clusters-minimal-updateimage
+# Generating infineon-psoc6-all-clusters-minimal-updateimage
+gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" build_update_image=true' {out}/infineon-psoc6-all-clusters-minimal-updateimage
-# Generating infineon-p6-all-clusters-ota
-gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/p6 '--args=p6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true' {out}/infineon-p6-all-clusters-ota
+# Generating infineon-psoc6-all-clusters-ota
+gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true' {out}/infineon-psoc6-all-clusters-ota
-# Generating infineon-p6-all-clusters-ota-updateimage
-gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/p6 '--args=p6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true build_update_image=true' {out}/infineon-p6-all-clusters-ota-updateimage
+# Generating infineon-psoc6-all-clusters-ota-updateimage
+gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true build_update_image=true' {out}/infineon-psoc6-all-clusters-ota-updateimage
-# Generating infineon-p6-all-clusters-updateimage
-gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/p6 '--args=p6_board="CY8CKIT-062S2-43012" build_update_image=true' {out}/infineon-p6-all-clusters-updateimage
+# Generating infineon-psoc6-all-clusters-updateimage
+gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" build_update_image=true' {out}/infineon-psoc6-all-clusters-updateimage
-# Generating infineon-p6-light
-gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/p6 '--args=p6_board="CY8CKIT-062S2-43012"' {out}/infineon-p6-light
+# Generating infineon-psoc6-light
+gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012"' {out}/infineon-psoc6-light
-# Generating infineon-p6-light-ota
-gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/p6 '--args=p6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true' {out}/infineon-p6-light-ota
+# Generating infineon-psoc6-light-ota
+gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true' {out}/infineon-psoc6-light-ota
-# Generating infineon-p6-light-ota-updateimage
-gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/p6 '--args=p6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true build_update_image=true' {out}/infineon-p6-light-ota-updateimage
+# Generating infineon-psoc6-light-ota-updateimage
+gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true build_update_image=true' {out}/infineon-psoc6-light-ota-updateimage
-# Generating infineon-p6-light-updateimage
-gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/p6 '--args=p6_board="CY8CKIT-062S2-43012" build_update_image=true' {out}/infineon-p6-light-updateimage
+# Generating infineon-psoc6-light-updateimage
+gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" build_update_image=true' {out}/infineon-psoc6-light-updateimage
-# Generating infineon-p6-lock
-gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/p6 '--args=p6_board="CY8CKIT-062S2-43012"' {out}/infineon-p6-lock
+# Generating infineon-psoc6-lock
+gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012"' {out}/infineon-psoc6-lock
-# Generating infineon-p6-lock-ota
-gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/p6 '--args=p6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true' {out}/infineon-p6-lock-ota
+# Generating infineon-psoc6-lock-ota
+gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true' {out}/infineon-psoc6-lock-ota
-# Generating infineon-p6-lock-ota-updateimage
-gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/p6 '--args=p6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true build_update_image=true' {out}/infineon-p6-lock-ota-updateimage
+# Generating infineon-psoc6-lock-ota-updateimage
+gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true build_update_image=true' {out}/infineon-psoc6-lock-ota-updateimage
-# Generating infineon-p6-lock-updateimage
-gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/p6 '--args=p6_board="CY8CKIT-062S2-43012" build_update_image=true' {out}/infineon-p6-lock-updateimage
+# Generating infineon-psoc6-lock-updateimage
+gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" build_update_image=true' {out}/infineon-psoc6-lock-updateimage
{root}/third_party/nxp/k32w0_sdk/sdk_fixes/patch_k32w_sdk.sh
@@ -2103,53 +2103,53 @@
# Building imx-thermostat-release
ninja -C {out}/imx-thermostat-release
-# Building infineon-p6-all-clusters
-ninja -C {out}/infineon-p6-all-clusters
+# Building infineon-psoc6-all-clusters
+ninja -C {out}/infineon-psoc6-all-clusters
-# Building infineon-p6-all-clusters-minimal
-ninja -C {out}/infineon-p6-all-clusters-minimal
+# Building infineon-psoc6-all-clusters-minimal
+ninja -C {out}/infineon-psoc6-all-clusters-minimal
-# Building infineon-p6-all-clusters-minimal-ota
-ninja -C {out}/infineon-p6-all-clusters-minimal-ota
+# Building infineon-psoc6-all-clusters-minimal-ota
+ninja -C {out}/infineon-psoc6-all-clusters-minimal-ota
-# Building infineon-p6-all-clusters-minimal-ota-updateimage
-ninja -C {out}/infineon-p6-all-clusters-minimal-ota-updateimage
+# Building infineon-psoc6-all-clusters-minimal-ota-updateimage
+ninja -C {out}/infineon-psoc6-all-clusters-minimal-ota-updateimage
-# Building infineon-p6-all-clusters-minimal-updateimage
-ninja -C {out}/infineon-p6-all-clusters-minimal-updateimage
+# Building infineon-psoc6-all-clusters-minimal-updateimage
+ninja -C {out}/infineon-psoc6-all-clusters-minimal-updateimage
-# Building infineon-p6-all-clusters-ota
-ninja -C {out}/infineon-p6-all-clusters-ota
+# Building infineon-psoc6-all-clusters-ota
+ninja -C {out}/infineon-psoc6-all-clusters-ota
-# Building infineon-p6-all-clusters-ota-updateimage
-ninja -C {out}/infineon-p6-all-clusters-ota-updateimage
+# Building infineon-psoc6-all-clusters-ota-updateimage
+ninja -C {out}/infineon-psoc6-all-clusters-ota-updateimage
-# Building infineon-p6-all-clusters-updateimage
-ninja -C {out}/infineon-p6-all-clusters-updateimage
+# Building infineon-psoc6-all-clusters-updateimage
+ninja -C {out}/infineon-psoc6-all-clusters-updateimage
-# Building infineon-p6-light
-ninja -C {out}/infineon-p6-light
+# Building infineon-psoc6-light
+ninja -C {out}/infineon-psoc6-light
-# Building infineon-p6-light-ota
-ninja -C {out}/infineon-p6-light-ota
+# Building infineon-psoc6-light-ota
+ninja -C {out}/infineon-psoc6-light-ota
-# Building infineon-p6-light-ota-updateimage
-ninja -C {out}/infineon-p6-light-ota-updateimage
+# Building infineon-psoc6-light-ota-updateimage
+ninja -C {out}/infineon-psoc6-light-ota-updateimage
-# Building infineon-p6-light-updateimage
-ninja -C {out}/infineon-p6-light-updateimage
+# Building infineon-psoc6-light-updateimage
+ninja -C {out}/infineon-psoc6-light-updateimage
-# Building infineon-p6-lock
-ninja -C {out}/infineon-p6-lock
+# Building infineon-psoc6-lock
+ninja -C {out}/infineon-psoc6-lock
-# Building infineon-p6-lock-ota
-ninja -C {out}/infineon-p6-lock-ota
+# Building infineon-psoc6-lock-ota
+ninja -C {out}/infineon-psoc6-lock-ota
-# Building infineon-p6-lock-ota-updateimage
-ninja -C {out}/infineon-p6-lock-ota-updateimage
+# Building infineon-psoc6-lock-ota-updateimage
+ninja -C {out}/infineon-psoc6-lock-ota-updateimage
-# Building infineon-p6-lock-updateimage
-ninja -C {out}/infineon-p6-lock-updateimage
+# Building infineon-psoc6-lock-updateimage
+ninja -C {out}/infineon-psoc6-lock-updateimage
# Building k32w-light-ota-se
ninja -C {out}/k32w-light-ota-se
diff --git a/scripts/build/testdata/glob_star_targets_except_host.txt b/scripts/build/testdata/glob_star_targets_except_host.txt
index d7090c2..9d7a22b 100644
--- a/scripts/build/testdata/glob_star_targets_except_host.txt
+++ b/scripts/build/testdata/glob_star_targets_except_host.txt
@@ -72,10 +72,10 @@
imx-ota-provider-app-release
imx-thermostat
imx-thermostat-release
-infineon-p6-all-clusters
-infineon-p6-all-clusters-minimal
-infineon-p6-light
-infineon-p6-lock
+infineon-psoc6-all-clusters
+infineon-psoc6-all-clusters-minimal
+infineon-psoc6-light
+infineon-psoc6-lock
k32w-light-release-no-ota
k32w-lock-release
k32w-shell-release
diff --git a/scripts/checkout_submodules.py b/scripts/checkout_submodules.py
index b150b8d..c98f54c 100755
--- a/scripts/checkout_submodules.py
+++ b/scripts/checkout_submodules.py
@@ -30,15 +30,14 @@
'bl602',
'cc13x2_26x2',
'cc32xx',
- 'cyw30739',
'darwin',
'efr32',
'esp32',
+ 'infineon',
'k32w0',
'linux',
'mbed',
'nrfconnect',
- 'p6',
'qpg',
'telink',
'tizen',
diff --git a/scripts/examples/gn_p6_example.sh b/scripts/examples/gn_psoc6_example.sh
similarity index 95%
rename from scripts/examples/gn_p6_example.sh
rename to scripts/examples/gn_psoc6_example.sh
index 746c2d7..403063f 100755
--- a/scripts/examples/gn_p6_example.sh
+++ b/scripts/examples/gn_psoc6_example.sh
@@ -43,7 +43,7 @@
EXAMPLE_DIR=$1
shift
OUTPUT_DIR=out/example_app
-P6_BOARD=CY8CKIT-062S2-43012
+PSOC6_BOARD=CY8CKIT-062S2-43012
if [[ ! -z "$1" ]]; then
OUTPUT_DIR=$1
@@ -70,7 +70,7 @@
esac
done
-gn gen --check --fail-on-unused-args "$OUTPUT_DIR" --root="$EXAMPLE_DIR" --args="p6_board=\"$P6_BOARD\" ${GN_ARGS[*]}"
+gn gen --check --fail-on-unused-args "$OUTPUT_DIR" --root="$EXAMPLE_DIR" --args="psoc6_board=\"$PSOC6_BOARD\" ${GN_ARGS[*]}"
ninja -C "$OUTPUT_DIR" "${NINJA_ARGS[@]}"
#print stats
arm-none-eabi-size -A "$OUTPUT_DIR"/*.out
diff --git a/scripts/flashing/p6_firmware_utils.py b/scripts/flashing/psoc6_firmware_utils.py
similarity index 90%
rename from scripts/flashing/p6_firmware_utils.py
rename to scripts/flashing/psoc6_firmware_utils.py
index 0fe2472..aeef780 100755
--- a/scripts/flashing/p6_firmware_utils.py
+++ b/scripts/flashing/psoc6_firmware_utils.py
@@ -12,18 +12,18 @@
# 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.
-"""Flash an P6 device.
+"""Flash an Infineon PSoC6 device.
This is layered so that a caller can perform individual operations
through an `Flasher` instance, or operations according to a command line.
For `Flasher`, see the class documentation. For the parse_command()
interface or standalone execution:
-usage: p6_firmware_utils.py [-h] [--verbose] [--erase] [--application FILE]
+usage: psoc6_firmware_utils.py [-h] [--verbose] [--erase] [--application FILE]
[--verify_application] [--reset] [--skip_reset]
[--device DEVICE]
-Flash P6 device
+Flash PSoC6 device
optional arguments:
-h, --help show this help message and exit
@@ -64,7 +64,7 @@
"-C",
{'option': 'sdk_path'},
['TARGET={device}'],
- ['CY_OPENOCD_PROGRAM_IMG=../../../{application}'],
+ ['CY_OPENOCD_PROGRAM_IMG=../../../../{application}'],
{'option': 'mtb_target'}
],
'verify': ['{make}', '--version'],
@@ -77,15 +77,15 @@
},
'device': {
'help': 'Device family or platform to target',
- 'default': 'P6',
+ 'default': 'PSoC6',
'alias': ['-d'],
'argparse': {
'metavar': 'DEVICE'
},
},
'sdk_path': {
- 'help': 'Path to p6 sdk',
- 'default': 'third_party/p6/p6_sdk',
+ 'help': 'Path to psoc6 sdk',
+ 'default': 'third_party/infineon/psoc6/psoc6_sdk',
'alias': ['-p'],
'argparse': {
'metavar': 'SDK_PATH'
@@ -96,10 +96,10 @@
class Flasher(firmware_utils.Flasher):
- """Manage P6 flashing."""
+ """Manage PSoC6 flashing."""
def __init__(self, **options):
- super().__init__(platform='P6', module=__name__, **options)
+ super().__init__(platform='PSOC6', module=__name__, **options)
self.define_options(P6_OPTIONS)
def erase(self):
diff --git a/scripts/tools/check_includes_config.py b/scripts/tools/check_includes_config.py
index 30b66bc..3ab64a2 100644
--- a/scripts/tools/check_includes_config.py
+++ b/scripts/tools/check_includes_config.py
@@ -40,7 +40,7 @@
'/platform/Ameba/',
'/platform/android/',
'/platform/Beken/',
- '/platform/CYW30739/',
+ '/platform/Infineon/CYW30739/',
'/platform/Darwin/',
'/platform/EFR32/',
'/platform/ESP32/',
@@ -48,7 +48,7 @@
'/platform/Linux/',
'/platform/nxp/',
'/platform/Tizen/',
- '/platform/P6/',
+ '/platform/Infineon/PSOC6/',
'/platform/bouffalolab/BL602',
'/platform/webos/',
r'POSIX\.h$',
diff --git a/src/lwip/BUILD.gn b/src/lwip/BUILD.gn
index 4490159..830e82b 100644
--- a/src/lwip/BUILD.gn
+++ b/src/lwip/BUILD.gn
@@ -32,7 +32,7 @@
lwip_platform == "cc13x2_26x2" || lwip_platform == "cc32xx" ||
lwip_platform == "efr32" || lwip_platform == "k32w0" ||
lwip_platform == "qpg" || lwip_platform == "mbed" ||
- lwip_platform == "p6" || lwip_platform == "cyw30739" ||
+ lwip_platform == "psoc6" || lwip_platform == "cyw30739" ||
lwip_platform == "bl602" || lwip_platform == "mw320",
"Unsupported lwIP platform: ${lwip_platform}")
@@ -54,8 +54,8 @@
import("${qpg_sdk_build_root}/qpg_sdk.gni")
} else if (lwip_platform == "k32w0") {
import("//build_overrides/k32w0_sdk.gni")
-} else if (lwip_platform == "p6") {
- import("//build_overrides/p6.gni")
+} else if (lwip_platform == "psoc6") {
+ import("//build_overrides/psoc6.gni")
} else if (lwip_platform == "cyw30739") {
import("//build_overrides/cyw30739_sdk.gni")
} else if (lwip_platform == "bl602") {
@@ -95,11 +95,11 @@
group("all") {
deps = [ ":lwip" ]
}
-} else if (lwip_platform == "p6") {
+} else if (lwip_platform == "psoc6") {
group("lwip") {
public_deps = [ ":lwip_buildconfig" ]
public_configs = [ "${chip_root}/src:includes" ]
- public_configs += [ "${p6_sdk_build_root}:p6_sdk_config" ]
+ public_configs += [ "${psoc6_sdk_build_root}:psoc6_sdk_config" ]
}
group("all") {
diff --git a/src/platform/BUILD.gn b/src/platform/BUILD.gn
index 31e25b4..e575859 100644
--- a/src/platform/BUILD.gn
+++ b/src/platform/BUILD.gn
@@ -172,10 +172,10 @@
"CHIP_DEVICE_LAYER_TARGET_ESP32=1",
"CHIP_DEVICE_LAYER_TARGET=ESP32",
]
- } else if (chip_device_platform == "p6") {
+ } else if (chip_device_platform == "psoc6") {
defines += [
- "CHIP_DEVICE_LAYER_TARGET_P6=1",
- "CHIP_DEVICE_LAYER_TARGET=P6",
+ "CHIP_DEVICE_LAYER_TARGET_PSOC6=1",
+ "CHIP_DEVICE_LAYER_TARGET=Infineon/PSOC6",
]
} else if (chip_device_platform == "linux") {
defines += [
@@ -242,7 +242,7 @@
} else if (chip_device_platform == "cyw30739") {
defines += [
"CHIP_DEVICE_LAYER_TARGET_CYW30739=1",
- "CHIP_DEVICE_LAYER_TARGET=CYW30739",
+ "CHIP_DEVICE_LAYER_TARGET=Infineon/CYW30739",
]
} else if (chip_device_platform == "webos") {
defines += [
@@ -421,8 +421,8 @@
_platform_target = "android"
} else if (chip_device_platform == "external") {
_platform_target = chip_platform_target
- } else if (chip_device_platform == "p6") {
- _platform_target = "P6"
+ } else if (chip_device_platform == "psoc6") {
+ _platform_target = "Infineon/PSOC6"
} else if (chip_device_platform == "ameba") {
_platform_target = "Ameba"
} else if (chip_device_platform == "webos") {
@@ -432,7 +432,7 @@
} else if (chip_device_platform == "fake") {
_platform_target = "fake"
} else if (chip_device_platform == "cyw30739") {
- _platform_target = "CYW30739"
+ _platform_target = "Infineon/CYW30739"
} else if (chip_device_platform == "mw320") {
_platform_target = "nxp/mw320"
} else if (chip_device_platform == "zephyr") {
diff --git a/src/platform/CYW30739/BLEManagerImpl.cpp b/src/platform/Infineon/CYW30739/BLEManagerImpl.cpp
similarity index 100%
rename from src/platform/CYW30739/BLEManagerImpl.cpp
rename to src/platform/Infineon/CYW30739/BLEManagerImpl.cpp
diff --git a/src/platform/CYW30739/BLEManagerImpl.h b/src/platform/Infineon/CYW30739/BLEManagerImpl.h
similarity index 100%
rename from src/platform/CYW30739/BLEManagerImpl.h
rename to src/platform/Infineon/CYW30739/BLEManagerImpl.h
diff --git a/src/platform/CYW30739/BUILD.gn b/src/platform/Infineon/CYW30739/BUILD.gn
similarity index 94%
rename from src/platform/CYW30739/BUILD.gn
rename to src/platform/Infineon/CYW30739/BUILD.gn
index 50d3f46..623cd18 100644
--- a/src/platform/CYW30739/BUILD.gn
+++ b/src/platform/Infineon/CYW30739/BUILD.gn
@@ -24,7 +24,7 @@
static_library("CYW30739") {
sources = [
- "../SingletonConfigurationManager.cpp",
+ "../../SingletonConfigurationManager.cpp",
"BLEManagerImpl.cpp",
"BLEManagerImpl.h",
"BlePlatformConfig.h",
@@ -67,7 +67,7 @@
if (chip_enable_openthread) {
sources += [
- "../OpenThread/OpenThreadUtils.cpp",
+ "../../OpenThread/OpenThreadUtils.cpp",
"ThreadStackManagerImpl.cpp",
"ThreadStackManagerImpl.h",
]
@@ -85,7 +85,7 @@
}
if (chip_mdns == "platform") {
- sources += [ "../OpenThread/DnssdImpl.cpp" ]
+ sources += [ "../../OpenThread/DnssdImpl.cpp" ]
deps += [ "${chip_root}/src/lib/dnssd:platform_header" ]
}
diff --git a/src/platform/CYW30739/BlePlatformConfig.h b/src/platform/Infineon/CYW30739/BlePlatformConfig.h
similarity index 100%
rename from src/platform/CYW30739/BlePlatformConfig.h
rename to src/platform/Infineon/CYW30739/BlePlatformConfig.h
diff --git a/src/platform/CYW30739/CHIPDevicePlatformConfig.h b/src/platform/Infineon/CYW30739/CHIPDevicePlatformConfig.h
similarity index 100%
rename from src/platform/CYW30739/CHIPDevicePlatformConfig.h
rename to src/platform/Infineon/CYW30739/CHIPDevicePlatformConfig.h
diff --git a/src/platform/CYW30739/CHIPDevicePlatformEvent.h b/src/platform/Infineon/CYW30739/CHIPDevicePlatformEvent.h
similarity index 100%
rename from src/platform/CYW30739/CHIPDevicePlatformEvent.h
rename to src/platform/Infineon/CYW30739/CHIPDevicePlatformEvent.h
diff --git a/src/platform/CYW30739/CHIPPlatformConfig.h b/src/platform/Infineon/CYW30739/CHIPPlatformConfig.h
similarity index 100%
rename from src/platform/CYW30739/CHIPPlatformConfig.h
rename to src/platform/Infineon/CYW30739/CHIPPlatformConfig.h
diff --git a/src/platform/CYW30739/CYW30739Config.cpp b/src/platform/Infineon/CYW30739/CYW30739Config.cpp
similarity index 98%
rename from src/platform/CYW30739/CYW30739Config.cpp
rename to src/platform/Infineon/CYW30739/CYW30739Config.cpp
index 2d84fd0..651b4fb 100644
--- a/src/platform/CYW30739/CYW30739Config.cpp
+++ b/src/platform/Infineon/CYW30739/CYW30739Config.cpp
@@ -24,7 +24,7 @@
#include <platform/internal/CHIPDeviceLayerInternal.h>
#include <hal/wiced_hal_eflash.h>
-#include <platform/CYW30739/CYW30739Config.h>
+#include <platform/Infineon/CYW30739/CYW30739Config.h>
#include <platform_nvram.h>
namespace chip {
diff --git a/src/platform/CYW30739/CYW30739Config.h b/src/platform/Infineon/CYW30739/CYW30739Config.h
similarity index 100%
rename from src/platform/CYW30739/CYW30739Config.h
rename to src/platform/Infineon/CYW30739/CYW30739Config.h
diff --git a/src/platform/CYW30739/ConfigurationManagerImpl.cpp b/src/platform/Infineon/CYW30739/ConfigurationManagerImpl.cpp
similarity index 98%
rename from src/platform/CYW30739/ConfigurationManagerImpl.cpp
rename to src/platform/Infineon/CYW30739/ConfigurationManagerImpl.cpp
index a706cee..5489a58 100644
--- a/src/platform/CYW30739/ConfigurationManagerImpl.cpp
+++ b/src/platform/Infineon/CYW30739/ConfigurationManagerImpl.cpp
@@ -27,9 +27,9 @@
#include <platform/internal/GenericConfigurationManagerImpl.ipp>
#include <hal/wiced_hal_wdog.h>
-#include <platform/CYW30739/CYW30739Config.h>
#include <platform/ConfigurationManager.h>
#include <platform/DiagnosticDataProvider.h>
+#include <platform/Infineon/CYW30739/CYW30739Config.h>
#include <platform/KeyValueStoreManager.h>
namespace chip {
diff --git a/src/platform/CYW30739/ConfigurationManagerImpl.h b/src/platform/Infineon/CYW30739/ConfigurationManagerImpl.h
similarity index 100%
rename from src/platform/CYW30739/ConfigurationManagerImpl.h
rename to src/platform/Infineon/CYW30739/ConfigurationManagerImpl.h
diff --git a/src/platform/CYW30739/ConnectivityManagerImpl.cpp b/src/platform/Infineon/CYW30739/ConnectivityManagerImpl.cpp
similarity index 100%
rename from src/platform/CYW30739/ConnectivityManagerImpl.cpp
rename to src/platform/Infineon/CYW30739/ConnectivityManagerImpl.cpp
diff --git a/src/platform/CYW30739/ConnectivityManagerImpl.h b/src/platform/Infineon/CYW30739/ConnectivityManagerImpl.h
similarity index 100%
rename from src/platform/CYW30739/ConnectivityManagerImpl.h
rename to src/platform/Infineon/CYW30739/ConnectivityManagerImpl.h
diff --git a/src/platform/CYW30739/DeviceNetworkProvisioningDelegateImpl.cpp b/src/platform/Infineon/CYW30739/DeviceNetworkProvisioningDelegateImpl.cpp
similarity index 100%
rename from src/platform/CYW30739/DeviceNetworkProvisioningDelegateImpl.cpp
rename to src/platform/Infineon/CYW30739/DeviceNetworkProvisioningDelegateImpl.cpp
diff --git a/src/platform/CYW30739/DeviceNetworkProvisioningDelegateImpl.h b/src/platform/Infineon/CYW30739/DeviceNetworkProvisioningDelegateImpl.h
similarity index 100%
rename from src/platform/CYW30739/DeviceNetworkProvisioningDelegateImpl.h
rename to src/platform/Infineon/CYW30739/DeviceNetworkProvisioningDelegateImpl.h
diff --git a/src/platform/CYW30739/DiagnosticDataProviderImpl.cpp b/src/platform/Infineon/CYW30739/DiagnosticDataProviderImpl.cpp
similarity index 98%
rename from src/platform/CYW30739/DiagnosticDataProviderImpl.cpp
rename to src/platform/Infineon/CYW30739/DiagnosticDataProviderImpl.cpp
index 2af3114..2deec6d 100644
--- a/src/platform/CYW30739/DiagnosticDataProviderImpl.cpp
+++ b/src/platform/Infineon/CYW30739/DiagnosticDataProviderImpl.cpp
@@ -23,8 +23,8 @@
#include <platform/internal/CHIPDeviceLayerInternal.h>
-#include <platform/CYW30739/DiagnosticDataProviderImpl.h>
#include <platform/DiagnosticDataProvider.h>
+#include <platform/Infineon/CYW30739/DiagnosticDataProviderImpl.h>
#include <hal/wiced_memory.h>
#include <malloc.h>
diff --git a/src/platform/CYW30739/DiagnosticDataProviderImpl.h b/src/platform/Infineon/CYW30739/DiagnosticDataProviderImpl.h
similarity index 100%
rename from src/platform/CYW30739/DiagnosticDataProviderImpl.h
rename to src/platform/Infineon/CYW30739/DiagnosticDataProviderImpl.h
diff --git a/src/platform/CYW30739/InetPlatformConfig.h b/src/platform/Infineon/CYW30739/InetPlatformConfig.h
similarity index 100%
rename from src/platform/CYW30739/InetPlatformConfig.h
rename to src/platform/Infineon/CYW30739/InetPlatformConfig.h
diff --git a/src/platform/CYW30739/KeyValueStoreManagerImpl.cpp b/src/platform/Infineon/CYW30739/KeyValueStoreManagerImpl.cpp
similarity index 100%
rename from src/platform/CYW30739/KeyValueStoreManagerImpl.cpp
rename to src/platform/Infineon/CYW30739/KeyValueStoreManagerImpl.cpp
diff --git a/src/platform/CYW30739/KeyValueStoreManagerImpl.h b/src/platform/Infineon/CYW30739/KeyValueStoreManagerImpl.h
similarity index 100%
rename from src/platform/CYW30739/KeyValueStoreManagerImpl.h
rename to src/platform/Infineon/CYW30739/KeyValueStoreManagerImpl.h
diff --git a/src/platform/CYW30739/Logging.cpp b/src/platform/Infineon/CYW30739/Logging.cpp
similarity index 100%
rename from src/platform/CYW30739/Logging.cpp
rename to src/platform/Infineon/CYW30739/Logging.cpp
diff --git a/src/platform/CYW30739/OTAImageProcessorImpl.cpp b/src/platform/Infineon/CYW30739/OTAImageProcessorImpl.cpp
similarity index 100%
rename from src/platform/CYW30739/OTAImageProcessorImpl.cpp
rename to src/platform/Infineon/CYW30739/OTAImageProcessorImpl.cpp
diff --git a/src/platform/CYW30739/OTAImageProcessorImpl.h b/src/platform/Infineon/CYW30739/OTAImageProcessorImpl.h
similarity index 100%
rename from src/platform/CYW30739/OTAImageProcessorImpl.h
rename to src/platform/Infineon/CYW30739/OTAImageProcessorImpl.h
diff --git a/src/platform/CYW30739/PlatformManagerImpl.cpp b/src/platform/Infineon/CYW30739/PlatformManagerImpl.cpp
similarity index 98%
rename from src/platform/CYW30739/PlatformManagerImpl.cpp
rename to src/platform/Infineon/CYW30739/PlatformManagerImpl.cpp
index 41e91ea..c2da0a1 100644
--- a/src/platform/CYW30739/PlatformManagerImpl.cpp
+++ b/src/platform/Infineon/CYW30739/PlatformManagerImpl.cpp
@@ -23,7 +23,7 @@
/* this file behaves like a config.h, comes first */
#include <platform/internal/CHIPDeviceLayerInternal.h>
-#include <platform/CYW30739/DiagnosticDataProviderImpl.h>
+#include <platform/Infineon/CYW30739/DiagnosticDataProviderImpl.h>
#include <platform/PlatformManager.h>
#include <platform/internal/GenericPlatformManagerImpl.ipp>
diff --git a/src/platform/CYW30739/PlatformManagerImpl.h b/src/platform/Infineon/CYW30739/PlatformManagerImpl.h
similarity index 100%
rename from src/platform/CYW30739/PlatformManagerImpl.h
rename to src/platform/Infineon/CYW30739/PlatformManagerImpl.h
diff --git a/src/platform/CYW30739/SystemPlatformConfig.h b/src/platform/Infineon/CYW30739/SystemPlatformConfig.h
similarity index 100%
rename from src/platform/CYW30739/SystemPlatformConfig.h
rename to src/platform/Infineon/CYW30739/SystemPlatformConfig.h
diff --git a/src/platform/CYW30739/SystemTimeSupport.cpp b/src/platform/Infineon/CYW30739/SystemTimeSupport.cpp
similarity index 100%
rename from src/platform/CYW30739/SystemTimeSupport.cpp
rename to src/platform/Infineon/CYW30739/SystemTimeSupport.cpp
diff --git a/src/platform/CYW30739/ThreadStackManagerImpl.cpp b/src/platform/Infineon/CYW30739/ThreadStackManagerImpl.cpp
similarity index 100%
rename from src/platform/CYW30739/ThreadStackManagerImpl.cpp
rename to src/platform/Infineon/CYW30739/ThreadStackManagerImpl.cpp
diff --git a/src/platform/CYW30739/ThreadStackManagerImpl.h b/src/platform/Infineon/CYW30739/ThreadStackManagerImpl.h
similarity index 100%
rename from src/platform/CYW30739/ThreadStackManagerImpl.h
rename to src/platform/Infineon/CYW30739/ThreadStackManagerImpl.h
diff --git a/src/platform/CYW30739/args.gni b/src/platform/Infineon/CYW30739/args.gni
similarity index 93%
rename from src/platform/CYW30739/args.gni
rename to src/platform/Infineon/CYW30739/args.gni
index 20266d8..a0d31c7 100644
--- a/src/platform/CYW30739/args.gni
+++ b/src/platform/Infineon/CYW30739/args.gni
@@ -17,7 +17,7 @@
import("//build_overrides/cyw30739_sdk.gni")
import("//build_overrides/pigweed.gni")
-import("${chip_root}/examples/platform/cyw30739/args.gni")
+import("${chip_root}/examples/platform/infineon/cyw30739/args.gni")
custom_toolchain = "${build_root}/toolchain/arm_gcc"
@@ -51,7 +51,7 @@
openthread_external_mbedtls = mbedtls_target
openthread_project_core_config_file = "OpenThreadConfig.h"
-openthread_core_config_deps = [ "${chip_root}/examples/platform/cyw30739:openthread_core_config_ifx_chip_examples" ]
+openthread_core_config_deps = [ "${chip_root}/examples/platform/infineon/cyw30739:openthread_core_config_ifx_chip_examples" ]
openthread_external_platform =
"${chip_root}/third_party/openthread/platforms/ifx:libopenthread-ifx"
diff --git a/src/platform/CYW30739/cycfg_gatt_db.c b/src/platform/Infineon/CYW30739/cycfg_gatt_db.c
similarity index 100%
rename from src/platform/CYW30739/cycfg_gatt_db.c
rename to src/platform/Infineon/CYW30739/cycfg_gatt_db.c
diff --git a/src/platform/CYW30739/cycfg_gatt_db.h b/src/platform/Infineon/CYW30739/cycfg_gatt_db.h
similarity index 100%
rename from src/platform/CYW30739/cycfg_gatt_db.h
rename to src/platform/Infineon/CYW30739/cycfg_gatt_db.h
diff --git a/src/platform/CYW30739/cyw30739-chip-mbedtls-config.h b/src/platform/Infineon/CYW30739/cyw30739-chip-mbedtls-config.h
similarity index 100%
rename from src/platform/CYW30739/cyw30739-chip-mbedtls-config.h
rename to src/platform/Infineon/CYW30739/cyw30739-chip-mbedtls-config.h
diff --git a/src/platform/P6/BLEManagerImpl.cpp b/src/platform/Infineon/PSOC6/BLEManagerImpl.cpp
similarity index 100%
rename from src/platform/P6/BLEManagerImpl.cpp
rename to src/platform/Infineon/PSOC6/BLEManagerImpl.cpp
diff --git a/src/platform/P6/BLEManagerImpl.h b/src/platform/Infineon/PSOC6/BLEManagerImpl.h
similarity index 100%
rename from src/platform/P6/BLEManagerImpl.h
rename to src/platform/Infineon/PSOC6/BLEManagerImpl.h
diff --git a/src/platform/P6/BUILD.gn b/src/platform/Infineon/PSOC6/BUILD.gn
similarity index 93%
rename from src/platform/P6/BUILD.gn
rename to src/platform/Infineon/PSOC6/BUILD.gn
index d7af750..d2ed65a 100644
--- a/src/platform/P6/BUILD.gn
+++ b/src/platform/Infineon/PSOC6/BUILD.gn
@@ -16,16 +16,16 @@
import("//build_overrides/pigweed.gni")
import("${chip_root}/src/platform/device.gni")
-assert(chip_device_platform == "p6")
+assert(chip_device_platform == "psoc6")
if (chip_enable_openthread) {
import("//build_overrides/openthread.gni")
}
-static_library("P6") {
+static_library("PSOC6") {
sources = [
- "../FreeRTOS/SystemTimeSupport.cpp",
- "../SingletonConfigurationManager.cpp",
+ "../../FreeRTOS/SystemTimeSupport.cpp",
+ "../../SingletonConfigurationManager.cpp",
"BLEManagerImpl.cpp",
"BLEManagerImpl.h",
"BlePlatformConfig.h",
diff --git a/src/platform/P6/BlePlatformConfig.h b/src/platform/Infineon/PSOC6/BlePlatformConfig.h
similarity index 100%
rename from src/platform/P6/BlePlatformConfig.h
rename to src/platform/Infineon/PSOC6/BlePlatformConfig.h
diff --git a/src/platform/P6/CHIPDevicePlatformConfig.h b/src/platform/Infineon/PSOC6/CHIPDevicePlatformConfig.h
similarity index 100%
rename from src/platform/P6/CHIPDevicePlatformConfig.h
rename to src/platform/Infineon/PSOC6/CHIPDevicePlatformConfig.h
diff --git a/src/platform/P6/CHIPDevicePlatformEvent.h b/src/platform/Infineon/PSOC6/CHIPDevicePlatformEvent.h
similarity index 100%
rename from src/platform/P6/CHIPDevicePlatformEvent.h
rename to src/platform/Infineon/PSOC6/CHIPDevicePlatformEvent.h
diff --git a/src/platform/P6/CHIPPlatformConfig.h b/src/platform/Infineon/PSOC6/CHIPPlatformConfig.h
similarity index 100%
rename from src/platform/P6/CHIPPlatformConfig.h
rename to src/platform/Infineon/PSOC6/CHIPPlatformConfig.h
diff --git a/src/platform/P6/ConfigurationManagerImpl.cpp b/src/platform/Infineon/PSOC6/ConfigurationManagerImpl.cpp
similarity index 98%
rename from src/platform/P6/ConfigurationManagerImpl.cpp
rename to src/platform/Infineon/PSOC6/ConfigurationManagerImpl.cpp
index afa771d..753b823 100644
--- a/src/platform/P6/ConfigurationManagerImpl.cpp
+++ b/src/platform/Infineon/PSOC6/ConfigurationManagerImpl.cpp
@@ -28,8 +28,8 @@
#include <platform/internal/GenericConfigurationManagerImpl.ipp>
#include <platform/ConfigurationManager.h>
+#include <platform/Infineon/PSOC6/P6Config.h>
#include <platform/KeyValueStoreManager.h>
-#include <platform/P6/P6Config.h>
namespace chip {
namespace DeviceLayer {
diff --git a/src/platform/P6/ConfigurationManagerImpl.h b/src/platform/Infineon/PSOC6/ConfigurationManagerImpl.h
similarity index 100%
rename from src/platform/P6/ConfigurationManagerImpl.h
rename to src/platform/Infineon/PSOC6/ConfigurationManagerImpl.h
diff --git a/src/platform/P6/ConnectivityManagerImpl.cpp b/src/platform/Infineon/PSOC6/ConnectivityManagerImpl.cpp
similarity index 99%
rename from src/platform/P6/ConnectivityManagerImpl.cpp
rename to src/platform/Infineon/PSOC6/ConnectivityManagerImpl.cpp
index 0e50d34..a005d88 100644
--- a/src/platform/P6/ConnectivityManagerImpl.cpp
+++ b/src/platform/Infineon/PSOC6/ConnectivityManagerImpl.cpp
@@ -35,7 +35,7 @@
#include <lib/support/CodeUtils.h>
#include <lib/support/logging/CHIPLogging.h>
-#include <platform/P6/P6Utils.h>
+#include <platform/Infineon/PSOC6/P6Utils.h>
#include <platform/internal/BLEManager.h>
#include <lwip/dns.h>
@@ -45,7 +45,7 @@
#include "lwip/opt.h"
#include <cy_lwip.h>
-#include <platform/P6/NetworkCommissioningDriver.h>
+#include <platform/Infineon/PSOC6/NetworkCommissioningDriver.h>
#include <type_traits>
#if !CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION
diff --git a/src/platform/P6/ConnectivityManagerImpl.h b/src/platform/Infineon/PSOC6/ConnectivityManagerImpl.h
similarity index 100%
rename from src/platform/P6/ConnectivityManagerImpl.h
rename to src/platform/Infineon/PSOC6/ConnectivityManagerImpl.h
diff --git a/src/platform/P6/DeviceNetworkProvisioningDelegateImpl.cpp b/src/platform/Infineon/PSOC6/DeviceNetworkProvisioningDelegateImpl.cpp
similarity index 97%
rename from src/platform/P6/DeviceNetworkProvisioningDelegateImpl.cpp
rename to src/platform/Infineon/PSOC6/DeviceNetworkProvisioningDelegateImpl.cpp
index 08f8593..0379d62 100644
--- a/src/platform/P6/DeviceNetworkProvisioningDelegateImpl.cpp
+++ b/src/platform/Infineon/PSOC6/DeviceNetworkProvisioningDelegateImpl.cpp
@@ -19,7 +19,7 @@
#include <lib/support/logging/CHIPLogging.h>
#include "DeviceNetworkProvisioningDelegateImpl.h"
-#include "platform/P6/P6Utils.h"
+#include "platform/Infineon/PSOC6/P6Utils.h"
namespace chip {
namespace DeviceLayer {
diff --git a/src/platform/P6/DeviceNetworkProvisioningDelegateImpl.h b/src/platform/Infineon/PSOC6/DeviceNetworkProvisioningDelegateImpl.h
similarity index 100%
rename from src/platform/P6/DeviceNetworkProvisioningDelegateImpl.h
rename to src/platform/Infineon/PSOC6/DeviceNetworkProvisioningDelegateImpl.h
diff --git a/src/platform/P6/DiagnosticDataProviderImpl.cpp b/src/platform/Infineon/PSOC6/DiagnosticDataProviderImpl.cpp
similarity index 99%
rename from src/platform/P6/DiagnosticDataProviderImpl.cpp
rename to src/platform/Infineon/PSOC6/DiagnosticDataProviderImpl.cpp
index ae3efbc..16fe130 100644
--- a/src/platform/P6/DiagnosticDataProviderImpl.cpp
+++ b/src/platform/Infineon/PSOC6/DiagnosticDataProviderImpl.cpp
@@ -27,8 +27,8 @@
#include <cy_lwip.h>
#include <lib/support/logging/CHIPLogging.h>
#include <platform/DiagnosticDataProvider.h>
-#include <platform/P6/DiagnosticDataProviderImpl.h>
-#include <platform/P6/P6Utils.h>
+#include <platform/Infineon/PSOC6/DiagnosticDataProviderImpl.h>
+#include <platform/Infineon/PSOC6/P6Utils.h>
namespace chip {
namespace DeviceLayer {
diff --git a/src/platform/P6/DiagnosticDataProviderImpl.h b/src/platform/Infineon/PSOC6/DiagnosticDataProviderImpl.h
similarity index 98%
rename from src/platform/P6/DiagnosticDataProviderImpl.h
rename to src/platform/Infineon/PSOC6/DiagnosticDataProviderImpl.h
index cba4725..c1c08fac 100644
--- a/src/platform/P6/DiagnosticDataProviderImpl.h
+++ b/src/platform/Infineon/PSOC6/DiagnosticDataProviderImpl.h
@@ -31,7 +31,7 @@
#include "whd_wlioctl.h"
#include <cy_wcm.h>
#include <platform/DiagnosticDataProvider.h>
-#include <platform/P6/P6Utils.h>
+#include <platform/Infineon/PSOC6/P6Utils.h>
#define PHYRATE_KPBS_BYTES_PER_SEC 125
diff --git a/src/platform/P6/InetPlatformConfig.h b/src/platform/Infineon/PSOC6/InetPlatformConfig.h
similarity index 100%
rename from src/platform/P6/InetPlatformConfig.h
rename to src/platform/Infineon/PSOC6/InetPlatformConfig.h
diff --git a/src/platform/P6/KeyValueStoreManagerImpl.cpp b/src/platform/Infineon/PSOC6/KeyValueStoreManagerImpl.cpp
similarity index 100%
rename from src/platform/P6/KeyValueStoreManagerImpl.cpp
rename to src/platform/Infineon/PSOC6/KeyValueStoreManagerImpl.cpp
diff --git a/src/platform/P6/KeyValueStoreManagerImpl.h b/src/platform/Infineon/PSOC6/KeyValueStoreManagerImpl.h
similarity index 100%
rename from src/platform/P6/KeyValueStoreManagerImpl.h
rename to src/platform/Infineon/PSOC6/KeyValueStoreManagerImpl.h
diff --git a/src/platform/P6/Logging.cpp b/src/platform/Infineon/PSOC6/Logging.cpp
similarity index 100%
rename from src/platform/P6/Logging.cpp
rename to src/platform/Infineon/PSOC6/Logging.cpp
diff --git a/src/platform/P6/LwIPCoreLock.cpp b/src/platform/Infineon/PSOC6/LwIPCoreLock.cpp
similarity index 100%
rename from src/platform/P6/LwIPCoreLock.cpp
rename to src/platform/Infineon/PSOC6/LwIPCoreLock.cpp
diff --git a/src/platform/P6/MTBKeyValueStore.cpp b/src/platform/Infineon/PSOC6/MTBKeyValueStore.cpp
similarity index 100%
rename from src/platform/P6/MTBKeyValueStore.cpp
rename to src/platform/Infineon/PSOC6/MTBKeyValueStore.cpp
diff --git a/src/platform/P6/MTBKeyValueStore.h b/src/platform/Infineon/PSOC6/MTBKeyValueStore.h
similarity index 100%
rename from src/platform/P6/MTBKeyValueStore.h
rename to src/platform/Infineon/PSOC6/MTBKeyValueStore.h
diff --git a/src/platform/P6/NetworkCommissioningDriver.h b/src/platform/Infineon/PSOC6/NetworkCommissioningDriver.h
similarity index 100%
rename from src/platform/P6/NetworkCommissioningDriver.h
rename to src/platform/Infineon/PSOC6/NetworkCommissioningDriver.h
diff --git a/src/platform/P6/NetworkCommissioningWiFiDriver.cpp b/src/platform/Infineon/PSOC6/NetworkCommissioningWiFiDriver.cpp
similarity index 98%
rename from src/platform/P6/NetworkCommissioningWiFiDriver.cpp
rename to src/platform/Infineon/PSOC6/NetworkCommissioningWiFiDriver.cpp
index 56c98f5..7f94651 100644
--- a/src/platform/P6/NetworkCommissioningWiFiDriver.cpp
+++ b/src/platform/Infineon/PSOC6/NetworkCommissioningWiFiDriver.cpp
@@ -18,9 +18,9 @@
#include <lib/support/CodeUtils.h>
#include <lib/support/SafeInt.h>
#include <platform/CHIPDeviceLayer.h>
-#include <platform/P6/NetworkCommissioningDriver.h>
-#include <platform/P6/P6Config.h>
-#include <platform/P6/P6Utils.h>
+#include <platform/Infineon/PSOC6/NetworkCommissioningDriver.h>
+#include <platform/Infineon/PSOC6/P6Config.h>
+#include <platform/Infineon/PSOC6/P6Utils.h>
#include <limits>
#include <string>
diff --git a/src/platform/P6/OTAImageProcessorImpl.cpp b/src/platform/Infineon/PSOC6/OTAImageProcessorImpl.cpp
similarity index 100%
rename from src/platform/P6/OTAImageProcessorImpl.cpp
rename to src/platform/Infineon/PSOC6/OTAImageProcessorImpl.cpp
diff --git a/src/platform/P6/OTAImageProcessorImpl.h b/src/platform/Infineon/PSOC6/OTAImageProcessorImpl.h
similarity index 100%
rename from src/platform/P6/OTAImageProcessorImpl.h
rename to src/platform/Infineon/PSOC6/OTAImageProcessorImpl.h
diff --git a/src/platform/P6/P6Config.cpp b/src/platform/Infineon/PSOC6/P6Config.cpp
similarity index 98%
rename from src/platform/P6/P6Config.cpp
rename to src/platform/Infineon/PSOC6/P6Config.cpp
index e15d56c..2a4b48d 100644
--- a/src/platform/P6/P6Config.cpp
+++ b/src/platform/Infineon/PSOC6/P6Config.cpp
@@ -27,14 +27,14 @@
#include <platform/KeyValueStoreManager.h>
-#include <platform/P6/P6Config.h>
+#include <platform/Infineon/PSOC6/P6Config.h>
#include <lib/core/CHIPEncoding.h>
#include <lib/support/CHIPMem.h>
#include <lib/support/CHIPMemString.h>
#include <lib/support/CodeUtils.h>
#include <lib/support/logging/CHIPLogging.h>
-#include <platform/P6/P6Utils.h>
+#include <platform/Infineon/PSOC6/P6Utils.h>
namespace chip {
namespace DeviceLayer {
diff --git a/src/platform/P6/P6Config.h b/src/platform/Infineon/PSOC6/P6Config.h
similarity index 100%
rename from src/platform/P6/P6Config.h
rename to src/platform/Infineon/PSOC6/P6Config.h
diff --git a/src/platform/P6/P6Utils.cpp b/src/platform/Infineon/PSOC6/P6Utils.cpp
similarity index 99%
rename from src/platform/P6/P6Utils.cpp
rename to src/platform/Infineon/PSOC6/P6Utils.cpp
index 584646c..ac87443 100644
--- a/src/platform/P6/P6Utils.cpp
+++ b/src/platform/Infineon/PSOC6/P6Utils.cpp
@@ -29,7 +29,7 @@
#include <lib/support/CodeUtils.h>
#include <lib/support/ErrorStr.h>
#include <lib/support/logging/CHIPLogging.h>
-#include <platform/P6/P6Utils.h>
+#include <platform/Infineon/PSOC6/P6Utils.h>
#include "lwip/icmp.h"
#include "lwip/inet.h"
@@ -43,7 +43,7 @@
#include "lwip/sys.h"
#include "lwip/timeouts.h"
#include <malloc.h>
-#include <platform/P6/P6Config.h>
+#include <platform/Infineon/PSOC6/P6Config.h>
using namespace ::chip::DeviceLayer::Internal;
using chip::DeviceLayer::Internal::DeviceNetworkInfo;
diff --git a/src/platform/P6/P6Utils.h b/src/platform/Infineon/PSOC6/P6Utils.h
similarity index 100%
rename from src/platform/P6/P6Utils.h
rename to src/platform/Infineon/PSOC6/P6Utils.h
diff --git a/src/platform/P6/PlatformManagerImpl.cpp b/src/platform/Infineon/PSOC6/PlatformManagerImpl.cpp
similarity index 97%
rename from src/platform/P6/PlatformManagerImpl.cpp
rename to src/platform/Infineon/PSOC6/PlatformManagerImpl.cpp
index ac22597..8292e81 100644
--- a/src/platform/P6/PlatformManagerImpl.cpp
+++ b/src/platform/Infineon/PSOC6/PlatformManagerImpl.cpp
@@ -26,7 +26,7 @@
#include <platform/internal/CHIPDeviceLayerInternal.h>
#include <crypto/CHIPCryptoPAL.h>
-#include <platform/P6/DiagnosticDataProviderImpl.h>
+#include <platform/Infineon/PSOC6/DiagnosticDataProviderImpl.h>
#include <platform/PlatformManager.h>
#include <platform/internal/GenericPlatformManagerImpl_FreeRTOS.ipp>
diff --git a/src/platform/P6/PlatformManagerImpl.h b/src/platform/Infineon/PSOC6/PlatformManagerImpl.h
similarity index 100%
rename from src/platform/P6/PlatformManagerImpl.h
rename to src/platform/Infineon/PSOC6/PlatformManagerImpl.h
diff --git a/src/platform/P6/SystemPlatformConfig.h b/src/platform/Infineon/PSOC6/SystemPlatformConfig.h
similarity index 100%
rename from src/platform/P6/SystemPlatformConfig.h
rename to src/platform/Infineon/PSOC6/SystemPlatformConfig.h
diff --git a/src/platform/P6/WarmPlatformConfig.h b/src/platform/Infineon/PSOC6/WarmPlatformConfig.h
similarity index 100%
rename from src/platform/P6/WarmPlatformConfig.h
rename to src/platform/Infineon/PSOC6/WarmPlatformConfig.h
diff --git a/src/platform/P6/app_platform_cfg.c b/src/platform/Infineon/PSOC6/app_platform_cfg.c
similarity index 100%
rename from src/platform/P6/app_platform_cfg.c
rename to src/platform/Infineon/PSOC6/app_platform_cfg.c
diff --git a/src/platform/P6/app_platform_cfg.h b/src/platform/Infineon/PSOC6/app_platform_cfg.h
similarity index 100%
rename from src/platform/P6/app_platform_cfg.h
rename to src/platform/Infineon/PSOC6/app_platform_cfg.h
diff --git a/src/platform/P6/args.gni b/src/platform/Infineon/PSOC6/args.gni
similarity index 66%
rename from src/platform/P6/args.gni
rename to src/platform/Infineon/PSOC6/args.gni
index b34b567..5577e67 100644
--- a/src/platform/P6/args.gni
+++ b/src/platform/Infineon/PSOC6/args.gni
@@ -13,17 +13,17 @@
# limitations under the License.
import("//build_overrides/chip.gni")
-import("//build_overrides/p6.gni")
+import("//build_overrides/psoc6.gni")
-import("${chip_root}/examples/platform/p6/args.gni")
+import("${chip_root}/examples/platform/infineon/psoc6/args.gni")
-#ARM architecture flags will be set based on p6_family.
-arm_platform_config = "${p6_sdk_build_root}/p6_arm.gni"
+#ARM architecture flags will be set based on psoc6_family.
+arm_platform_config = "${psoc6_sdk_build_root}/psoc6_arm.gni"
-mbedtls_target = "${p6_sdk_build_root}:p6_build"
+mbedtls_target = "${psoc6_sdk_build_root}:psoc6_build"
-chip_device_platform = "p6"
+chip_device_platform = "psoc6"
-lwip_platform = "p6"
+lwip_platform = "psoc6"
chip_build_tests = false
diff --git a/src/platform/P6/cycfg_bt_settings.cpp b/src/platform/Infineon/PSOC6/cycfg_bt_settings.cpp
similarity index 100%
rename from src/platform/P6/cycfg_bt_settings.cpp
rename to src/platform/Infineon/PSOC6/cycfg_bt_settings.cpp
diff --git a/src/platform/P6/cycfg_bt_settings.h b/src/platform/Infineon/PSOC6/cycfg_bt_settings.h
similarity index 100%
rename from src/platform/P6/cycfg_bt_settings.h
rename to src/platform/Infineon/PSOC6/cycfg_bt_settings.h
diff --git a/src/platform/P6/cycfg_gap.cpp b/src/platform/Infineon/PSOC6/cycfg_gap.cpp
similarity index 100%
rename from src/platform/P6/cycfg_gap.cpp
rename to src/platform/Infineon/PSOC6/cycfg_gap.cpp
diff --git a/src/platform/P6/cycfg_gap.h b/src/platform/Infineon/PSOC6/cycfg_gap.h
similarity index 100%
rename from src/platform/P6/cycfg_gap.h
rename to src/platform/Infineon/PSOC6/cycfg_gap.h
diff --git a/src/platform/P6/cycfg_gatt_db.c b/src/platform/Infineon/PSOC6/cycfg_gatt_db.c
similarity index 100%
rename from src/platform/P6/cycfg_gatt_db.c
rename to src/platform/Infineon/PSOC6/cycfg_gatt_db.c
diff --git a/src/platform/P6/cycfg_gatt_db.h b/src/platform/Infineon/PSOC6/cycfg_gatt_db.h
similarity index 100%
rename from src/platform/P6/cycfg_gatt_db.h
rename to src/platform/Infineon/PSOC6/cycfg_gatt_db.h
diff --git a/src/platform/P6/ethernet.h b/src/platform/Infineon/PSOC6/ethernet.h
similarity index 100%
rename from src/platform/P6/ethernet.h
rename to src/platform/Infineon/PSOC6/ethernet.h
diff --git a/src/platform/device.gni b/src/platform/device.gni
index 0592a67..8733049 100755
--- a/src/platform/device.gni
+++ b/src/platform/device.gni
@@ -82,7 +82,7 @@
# Select DNS-SD implementation
if (chip_device_platform == "linux" || chip_device_platform == "esp32" ||
- chip_device_platform == "mbed" || chip_device_platform == "p6" ||
+ chip_device_platform == "mbed" || chip_device_platform == "psoc6" ||
chip_device_platform == "ameba" || chip_device_platform == "webos" ||
chip_device_platform == "cc32xx" || chip_device_platform == "bl602" ||
chip_device_platform == "mw320" || chip_device_platform == "beken") {
@@ -122,8 +122,8 @@
_chip_device_layer = "telink"
} else if (chip_device_platform == "mbed") {
_chip_device_layer = "mbed"
-} else if (chip_device_platform == "p6") {
- _chip_device_layer = "P6"
+} else if (chip_device_platform == "psoc6") {
+ _chip_device_layer = "Infineon/PSOC6"
} else if (chip_device_platform == "android") {
_chip_device_layer = "android"
} else if (chip_device_platform == "ameba") {
@@ -131,7 +131,7 @@
} else if (chip_device_platform == "bl602") {
_chip_device_layer = "bouffalolab/BL602"
} else if (chip_device_platform == "cyw30739") {
- _chip_device_layer = "CYW30739"
+ _chip_device_layer = "Infineon/CYW30739"
} else if (chip_device_platform == "webos") {
_chip_device_layer = "webos"
} else if (chip_device_platform == "mw320") {
@@ -196,7 +196,7 @@
chip_device_platform == "nrfconnect" ||
chip_device_platform == "k32w0" || chip_device_platform == "qpg" ||
chip_device_platform == "telink" || chip_device_platform == "mbed" ||
- chip_device_platform == "p6" || chip_device_platform == "android" ||
+ chip_device_platform == "psoc6" || chip_device_platform == "android" ||
chip_device_platform == "ameba" || chip_device_platform == "cyw30739" ||
chip_device_platform == "webos" || chip_device_platform == "bl602" ||
chip_device_platform == "mw320" || chip_device_platform == "zephyr" ||
diff --git a/third_party/cyw30739_sdk/BUILD.gn b/third_party/infineon/cyw30739_sdk/BUILD.gn
similarity index 94%
rename from third_party/cyw30739_sdk/BUILD.gn
rename to third_party/infineon/cyw30739_sdk/BUILD.gn
index a64a029..75b9e27 100644
--- a/third_party/cyw30739_sdk/BUILD.gn
+++ b/third_party/infineon/cyw30739_sdk/BUILD.gn
@@ -32,7 +32,7 @@
config("mbedtls_cyw30739_config") {
defines = [
"MBEDTLS_CONFIG_FILE=<third_party/openthread/repo/third_party/mbedtls/mbedtls-config.h>",
- "MBEDTLS_USER_CONFIG_FILE=<src/platform/CYW30739/cyw30739-chip-mbedtls-config.h>",
+ "MBEDTLS_USER_CONFIG_FILE=<src/platform/Infineon/CYW30739/cyw30739-chip-mbedtls-config.h>",
]
include_dirs = [ chip_root ]
diff --git a/third_party/cyw30739_sdk/bsp_design_modus/cycfg_notices.h b/third_party/infineon/cyw30739_sdk/bsp_design_modus/cycfg_notices.h
similarity index 100%
rename from third_party/cyw30739_sdk/bsp_design_modus/cycfg_notices.h
rename to third_party/infineon/cyw30739_sdk/bsp_design_modus/cycfg_notices.h
diff --git a/third_party/cyw30739_sdk/bsp_design_modus/cycfg_pins.c b/third_party/infineon/cyw30739_sdk/bsp_design_modus/cycfg_pins.c
similarity index 100%
rename from third_party/cyw30739_sdk/bsp_design_modus/cycfg_pins.c
rename to third_party/infineon/cyw30739_sdk/bsp_design_modus/cycfg_pins.c
diff --git a/third_party/cyw30739_sdk/bsp_design_modus/cycfg_pins.h b/third_party/infineon/cyw30739_sdk/bsp_design_modus/cycfg_pins.h
similarity index 100%
rename from third_party/cyw30739_sdk/bsp_design_modus/cycfg_pins.h
rename to third_party/infineon/cyw30739_sdk/bsp_design_modus/cycfg_pins.h
diff --git a/third_party/cyw30739_sdk/bsp_design_modus/cycfg_routing.h b/third_party/infineon/cyw30739_sdk/bsp_design_modus/cycfg_routing.h
similarity index 100%
rename from third_party/cyw30739_sdk/bsp_design_modus/cycfg_routing.h
rename to third_party/infineon/cyw30739_sdk/bsp_design_modus/cycfg_routing.h
diff --git a/third_party/cyw30739_sdk/btp_reader.py b/third_party/infineon/cyw30739_sdk/btp_reader.py
similarity index 100%
rename from third_party/cyw30739_sdk/btp_reader.py
rename to third_party/infineon/cyw30739_sdk/btp_reader.py
diff --git a/third_party/cyw30739_sdk/compress_cgs_data.py b/third_party/infineon/cyw30739_sdk/compress_cgs_data.py
similarity index 100%
rename from third_party/cyw30739_sdk/compress_cgs_data.py
rename to third_party/infineon/cyw30739_sdk/compress_cgs_data.py
diff --git a/third_party/cyw30739_sdk/cyw30739_arm.gni b/third_party/infineon/cyw30739_sdk/cyw30739_arm.gni
similarity index 100%
rename from third_party/cyw30739_sdk/cyw30739_arm.gni
rename to third_party/infineon/cyw30739_sdk/cyw30739_arm.gni
diff --git a/third_party/cyw30739_sdk/cyw30739_executable.gni b/third_party/infineon/cyw30739_sdk/cyw30739_executable.gni
similarity index 100%
rename from third_party/cyw30739_sdk/cyw30739_executable.gni
rename to third_party/infineon/cyw30739_sdk/cyw30739_executable.gni
diff --git a/third_party/cyw30739_sdk/cyw30739_sdk.gni b/third_party/infineon/cyw30739_sdk/cyw30739_sdk.gni
similarity index 100%
rename from third_party/cyw30739_sdk/cyw30739_sdk.gni
rename to third_party/infineon/cyw30739_sdk/cyw30739_sdk.gni
diff --git a/third_party/cyw30739_sdk/flash.btp b/third_party/infineon/cyw30739_sdk/flash.btp
similarity index 100%
rename from third_party/cyw30739_sdk/flash.btp
rename to third_party/infineon/cyw30739_sdk/flash.btp
diff --git a/third_party/cyw30739_sdk/gen_ota_image.py b/third_party/infineon/cyw30739_sdk/gen_ota_image.py
similarity index 100%
rename from third_party/cyw30739_sdk/gen_ota_image.py
rename to third_party/infineon/cyw30739_sdk/gen_ota_image.py
diff --git a/third_party/cyw30739_sdk/include/auto_flags.h b/third_party/infineon/cyw30739_sdk/include/auto_flags.h
similarity index 100%
rename from third_party/cyw30739_sdk/include/auto_flags.h
rename to third_party/infineon/cyw30739_sdk/include/auto_flags.h
diff --git a/third_party/cyw30739_sdk/include/ota_fw_upgrade.h b/third_party/infineon/cyw30739_sdk/include/ota_fw_upgrade.h
similarity index 100%
rename from third_party/cyw30739_sdk/include/ota_fw_upgrade.h
rename to third_party/infineon/cyw30739_sdk/include/ota_fw_upgrade.h
diff --git a/third_party/cyw30739_sdk/include/wiced_button_manager.h b/third_party/infineon/cyw30739_sdk/include/wiced_button_manager.h
similarity index 100%
rename from third_party/cyw30739_sdk/include/wiced_button_manager.h
rename to third_party/infineon/cyw30739_sdk/include/wiced_button_manager.h
diff --git a/third_party/cyw30739_sdk/include/wiced_led_manager.h b/third_party/infineon/cyw30739_sdk/include/wiced_led_manager.h
similarity index 100%
rename from third_party/cyw30739_sdk/include/wiced_led_manager.h
rename to third_party/infineon/cyw30739_sdk/include/wiced_led_manager.h
diff --git a/third_party/cyw30739_sdk/merge_hex.py b/third_party/infineon/cyw30739_sdk/merge_hex.py
similarity index 100%
rename from third_party/cyw30739_sdk/merge_hex.py
rename to third_party/infineon/cyw30739_sdk/merge_hex.py
diff --git a/third_party/cyw30739_sdk/repos/30739A0 b/third_party/infineon/cyw30739_sdk/repos/30739A0
similarity index 100%
rename from third_party/cyw30739_sdk/repos/30739A0
rename to third_party/infineon/cyw30739_sdk/repos/30739A0
diff --git a/third_party/cyw30739_sdk/repos/CYW930739M2EVB-01 b/third_party/infineon/cyw30739_sdk/repos/CYW930739M2EVB-01
similarity index 100%
rename from third_party/cyw30739_sdk/repos/CYW930739M2EVB-01
rename to third_party/infineon/cyw30739_sdk/repos/CYW930739M2EVB-01
diff --git a/third_party/cyw30739_sdk/repos/btsdk-include b/third_party/infineon/cyw30739_sdk/repos/btsdk-include
similarity index 100%
rename from third_party/cyw30739_sdk/repos/btsdk-include
rename to third_party/infineon/cyw30739_sdk/repos/btsdk-include
diff --git a/third_party/cyw30739_sdk/repos/btsdk-tools b/third_party/infineon/cyw30739_sdk/repos/btsdk-tools
similarity index 100%
rename from third_party/cyw30739_sdk/repos/btsdk-tools
rename to third_party/infineon/cyw30739_sdk/repos/btsdk-tools
diff --git a/third_party/cyw30739_sdk/scripts/wiced-gen-ld.pl b/third_party/infineon/cyw30739_sdk/scripts/wiced-gen-ld.pl
similarity index 100%
rename from third_party/cyw30739_sdk/scripts/wiced-gen-ld.pl
rename to third_party/infineon/cyw30739_sdk/scripts/wiced-gen-ld.pl
diff --git a/third_party/cyw30739_sdk/src/ota_fw_upgrade.c b/third_party/infineon/cyw30739_sdk/src/ota_fw_upgrade.c
similarity index 100%
rename from third_party/cyw30739_sdk/src/ota_fw_upgrade.c
rename to third_party/infineon/cyw30739_sdk/src/ota_fw_upgrade.c
diff --git a/third_party/cyw30739_sdk/src/platform_retarget_lock.c b/third_party/infineon/cyw30739_sdk/src/platform_retarget_lock.c
similarity index 100%
rename from third_party/cyw30739_sdk/src/platform_retarget_lock.c
rename to third_party/infineon/cyw30739_sdk/src/platform_retarget_lock.c
diff --git a/third_party/cyw30739_sdk/src/wiced_button_manager.c b/third_party/infineon/cyw30739_sdk/src/wiced_button_manager.c
similarity index 100%
rename from third_party/cyw30739_sdk/src/wiced_button_manager.c
rename to third_party/infineon/cyw30739_sdk/src/wiced_button_manager.c
diff --git a/third_party/cyw30739_sdk/src/wiced_led_manager.c b/third_party/infineon/cyw30739_sdk/src/wiced_led_manager.c
similarity index 100%
rename from third_party/cyw30739_sdk/src/wiced_led_manager.c
rename to third_party/infineon/cyw30739_sdk/src/wiced_led_manager.c
diff --git a/third_party/p6/BUILD.gn b/third_party/infineon/psoc6/BUILD.gn
similarity index 80%
rename from third_party/p6/BUILD.gn
rename to third_party/infineon/psoc6/BUILD.gn
index cc89205..ebb79e6 100644
--- a/third_party/p6/BUILD.gn
+++ b/third_party/infineon/psoc6/BUILD.gn
@@ -12,18 +12,18 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import("//build_overrides/p6.gni")
-import("${p6_sdk_build_root}/p6_sdk.gni")
+import("//build_overrides/psoc6.gni")
+import("${psoc6_sdk_build_root}/psoc6_sdk.gni")
declare_args() {
- # Build target to use for p6 SDK. Use this to set global SDK defines.
- p6_target_project = ""
+ # Build target to use for psoc6 SDK. Use this to set global SDK defines.
+ psoc6_target_project = ""
}
-assert(p6_target_project != "", "p6_target_project must be specified")
+assert(psoc6_target_project != "", "psoc6_target_project must be specified")
# Add includes, cflags, asmflags, etc in config
-config("p6_sdk_config") {
+config("psoc6_sdk_config") {
# Pull out includes from generated json
# Treat these includes as system includes, so warnings in them are not fatal.
_system_include_dirs = []
@@ -32,7 +32,7 @@
include_dir = string_replace(include_dir, "-I", "", 1)
# Path is relative to SDK
- include_dir = "${p6_sdk_root}/${include_dir}"
+ include_dir = "${psoc6_sdk_root}/${include_dir}"
_system_include_dirs += [ include_dir ]
}
@@ -43,7 +43,7 @@
}
# Also add project include path (passed in from project build)
- proj_path = get_label_info(p6_target_project, "dir")
+ proj_path = get_label_info(psoc6_target_project, "dir")
include_dirs = [ "${proj_path}/include" ]
# Pull out defines from generated json
@@ -57,7 +57,7 @@
libs = []
foreach(lib, mtb_json.libs) {
# Path is relative to SDK
- lib = "${p6_sdk_root}/${lib}"
+ lib = "${psoc6_sdk_root}/${lib}"
libs += [ lib ]
}
@@ -76,7 +76,7 @@
linker_script = string_replace(linker_script, "-T", "", 1)
# Path is relative to SDK
- linker_script = "${p6_sdk_root}/${linker_script}"
+ linker_script = "${psoc6_sdk_root}/${linker_script}"
ldflags += [ "-T" + rebase_path(linker_script, root_build_dir) ]
}
@@ -89,7 +89,7 @@
ldflags -= [ "--specs=nano.specs" ]
}
-group("p6_build") {
- public_configs = [ ":p6_sdk_config" ]
- public_deps = [ p6_target_project ]
+group("psoc6_build") {
+ public_configs = [ ":psoc6_sdk_config" ]
+ public_deps = [ psoc6_target_project ]
}
diff --git a/third_party/p6/p6_arm.gni b/third_party/infineon/psoc6/psoc6_arm.gni
similarity index 95%
rename from third_party/p6/p6_arm.gni
rename to third_party/infineon/psoc6/psoc6_arm.gni
index 1bd1039..031e6e1 100644
--- a/third_party/p6/p6_arm.gni
+++ b/third_party/infineon/psoc6/psoc6_arm.gni
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import("p6_board.gni")
+import("psoc6_board.gni")
arm_arch = "armv7e-m"
arm_abi = "aapcs"
diff --git a/third_party/p6/p6_board.gni b/third_party/infineon/psoc6/psoc6_board.gni
similarity index 81%
rename from third_party/p6/p6_board.gni
rename to third_party/infineon/psoc6/psoc6_board.gni
index 01fedc3..a6cae75 100644
--- a/third_party/p6/p6_board.gni
+++ b/third_party/infineon/psoc6/psoc6_board.gni
@@ -14,13 +14,13 @@
declare_args() {
# P6 board used
- p6_board = ""
+ psoc6_board = ""
}
-if (p6_board == "") {
- p6_board = getenv("P6_BOARD")
+if (psoc6_board == "") {
+ psoc6_board = getenv("PSOC6_BOARD")
}
-assert(p6_board != "", "P6_BOARD must be specified")
+assert(psoc6_board != "", "PSOC6_BOARD must be specified")
board_defines = []
diff --git a/third_party/p6/p6_executable.gni b/third_party/infineon/psoc6/psoc6_executable.gni
similarity index 91%
rename from third_party/p6/p6_executable.gni
rename to third_party/infineon/psoc6/psoc6_executable.gni
index bec0a3e..02fd0e6 100644
--- a/third_party/p6/p6_executable.gni
+++ b/third_party/infineon/psoc6/psoc6_executable.gni
@@ -16,9 +16,9 @@
import("//build_overrides/chip.gni")
import("${build_root}/toolchain/flashable_executable.gni")
-import("p6_board.gni")
+import("psoc6_board.gni")
-template("p6_executable") {
+template("psoc6_executable") {
output_base_name = get_path_info(invoker.output_name, "name")
objcopy_image_name = output_base_name + ".hex"
@@ -33,7 +33,7 @@
flashing_runtime_target = target_name + ".flashing_runtime"
flashing_script_inputs = [
"${chip_root}/scripts/flashing/firmware_utils.py",
- "${chip_root}/scripts/flashing/p6_firmware_utils.py",
+ "${chip_root}/scripts/flashing/psoc6_firmware_utils.py",
]
copy(flashing_runtime_target) {
@@ -45,9 +45,9 @@
"${chip_root}/scripts/flashing/gen_flashing_script.py"
flashing_script_name = output_base_name + ".flash.py"
flashing_options = [
- "p6",
+ "psoc6",
"--device",
- "${p6_board}",
+ "${psoc6_board}",
]
flashable_executable(target_name) {
diff --git a/third_party/p6/p6_sdk.gni b/third_party/infineon/psoc6/psoc6_sdk.gni
similarity index 81%
rename from third_party/p6/p6_sdk.gni
rename to third_party/infineon/psoc6/psoc6_sdk.gni
index fb86bb3..90366dd 100644
--- a/third_party/p6/p6_sdk.gni
+++ b/third_party/infineon/psoc6/psoc6_sdk.gni
@@ -15,9 +15,9 @@
import("//build_overrides/chip.gni")
import("//build_overrides/jlink.gni")
import("//build_overrides/mbedtls.gni")
-import("//build_overrides/p6.gni")
+import("//build_overrides/psoc6.gni")
import("${chip_root}/src/platform/device.gni")
-import("p6_board.gni")
+import("psoc6_board.gni")
# TODO: Don't hardcode config/toolchain
# TODO: Convert to GN action?
@@ -27,17 +27,18 @@
debug_str = "Release"
}
-mtb_json = read_file("${p6_sdk_root}/build/${p6_board}/$debug_str/GCC_ARM.json",
- "json")
+mtb_json =
+ read_file("${psoc6_sdk_root}/build/${psoc6_board}/$debug_str/GCC_ARM.json",
+ "json")
-# Defines an p6 SDK build target.
+# Defines an psoc6 SDK build target.
#
# Parameters:
# sources - The sources files to build.
#
-template("p6_sdk_sources") {
- if (defined(invoker.p6_project_dir)) {
- p6_project_dir = invoker.p6_project_dir
+template("psoc6_sdk_sources") {
+ if (defined(invoker.psoc6_project_dir)) {
+ psoc6_project_dir = invoker.psoc6_project_dir
}
if (defined(invoker.chip_enable_ota_requestor)) {
@@ -46,7 +47,7 @@
}
}
- # While most p6 sdk includes come from the p6_sdk_config config (in
+ # While most psoc6 sdk includes come from the psoc6_sdk_config config (in
# BUILD.gn), this template gets instantiated by each project each of which
# provides a few extra includes/defines. Handle those here.
config("project_configs") {
@@ -54,7 +55,7 @@
if (defined(invoker.include_dirs)) {
include_dirs += invoker.include_dirs
}
- include_dirs += [ "${p6_project_dir}/include" ]
+ include_dirs += [ "${psoc6_project_dir}/include" ]
defines = []
if (defined(invoker.defines)) {
@@ -84,17 +85,17 @@
# Pull out c sources from generated json
foreach(src, mtb_json_local.c_source) {
- sources += [ "${p6_sdk_root}/${src}" ]
+ sources += [ "${psoc6_sdk_root}/${src}" ]
}
# Pull out cpp sources from generated json
foreach(src, mtb_json_local.cxx_source) {
- sources += [ "${p6_sdk_root}/${src}" ]
+ sources += [ "${psoc6_sdk_root}/${src}" ]
}
# Pull out .S files from generated json
foreach(asm, mtb_json_local.asm_source) {
- sources += [ "${p6_sdk_root}/${asm}" ]
+ sources += [ "${psoc6_sdk_root}/${asm}" ]
}
public_deps = []
diff --git a/third_party/p6/p6_sdk/.gitignore b/third_party/infineon/psoc6/psoc6_sdk/.gitignore
similarity index 100%
rename from third_party/p6/p6_sdk/.gitignore
rename to third_party/infineon/psoc6/psoc6_sdk/.gitignore
diff --git a/third_party/p6/p6_sdk/Makefile b/third_party/infineon/psoc6/psoc6_sdk/Makefile
similarity index 100%
rename from third_party/p6/p6_sdk/Makefile
rename to third_party/infineon/psoc6/psoc6_sdk/Makefile
diff --git a/third_party/p6/p6_sdk/arch/cc.h b/third_party/infineon/psoc6/psoc6_sdk/arch/cc.h
similarity index 100%
rename from third_party/p6/p6_sdk/arch/cc.h
rename to third_party/infineon/psoc6/psoc6_sdk/arch/cc.h
diff --git a/third_party/p6/p6_sdk/arch/sys_arch.c b/third_party/infineon/psoc6/psoc6_sdk/arch/sys_arch.c
similarity index 100%
rename from third_party/p6/p6_sdk/arch/sys_arch.c
rename to third_party/infineon/psoc6/psoc6_sdk/arch/sys_arch.c
diff --git a/third_party/p6/p6_sdk/arch/sys_arch.h b/third_party/infineon/psoc6/psoc6_sdk/arch/sys_arch.h
similarity index 100%
rename from third_party/p6/p6_sdk/arch/sys_arch.h
rename to third_party/infineon/psoc6/psoc6_sdk/arch/sys_arch.h
diff --git a/third_party/p6/p6_sdk/build/CY8CKIT-062S2-43012/Debug/GCC_ARM.json b/third_party/infineon/psoc6/psoc6_sdk/build/CY8CKIT-062S2-43012/Debug/GCC_ARM.json
similarity index 100%
rename from third_party/p6/p6_sdk/build/CY8CKIT-062S2-43012/Debug/GCC_ARM.json
rename to third_party/infineon/psoc6/psoc6_sdk/build/CY8CKIT-062S2-43012/Debug/GCC_ARM.json
diff --git a/third_party/p6/p6_sdk/build/CY8CKIT-062S2-43012/Release/GCC_ARM.json b/third_party/infineon/psoc6/psoc6_sdk/build/CY8CKIT-062S2-43012/Release/GCC_ARM.json
similarity index 100%
rename from third_party/p6/p6_sdk/build/CY8CKIT-062S2-43012/Release/GCC_ARM.json
rename to third_party/infineon/psoc6/psoc6_sdk/build/CY8CKIT-062S2-43012/Release/GCC_ARM.json
diff --git a/third_party/p6/p6_sdk/configs/FreeRTOSConfig.h b/third_party/infineon/psoc6/psoc6_sdk/configs/FreeRTOSConfig.h
similarity index 100%
rename from third_party/p6/p6_sdk/configs/FreeRTOSConfig.h
rename to third_party/infineon/psoc6/psoc6_sdk/configs/FreeRTOSConfig.h
diff --git a/third_party/p6/p6_sdk/configs/iot_config.h b/third_party/infineon/psoc6/psoc6_sdk/configs/iot_config.h
similarity index 100%
rename from third_party/p6/p6_sdk/configs/iot_config.h
rename to third_party/infineon/psoc6/psoc6_sdk/configs/iot_config.h
diff --git a/third_party/p6/p6_sdk/configs/lwipopts.h b/third_party/infineon/psoc6/psoc6_sdk/configs/lwipopts.h
similarity index 100%
rename from third_party/p6/p6_sdk/configs/lwipopts.h
rename to third_party/infineon/psoc6/psoc6_sdk/configs/lwipopts.h
diff --git a/third_party/p6/p6_sdk/configs/mbedtls_user_config.h b/third_party/infineon/psoc6/psoc6_sdk/configs/mbedtls_user_config.h
similarity index 100%
rename from third_party/p6/p6_sdk/configs/mbedtls_user_config.h
rename to third_party/infineon/psoc6/psoc6_sdk/configs/mbedtls_user_config.h
diff --git a/third_party/p6/p6_sdk/configs/mqtt_client_config.h b/third_party/infineon/psoc6/psoc6_sdk/configs/mqtt_client_config.h
similarity index 100%
rename from third_party/p6/p6_sdk/configs/mqtt_client_config.h
rename to third_party/infineon/psoc6/psoc6_sdk/configs/mqtt_client_config.h
diff --git a/third_party/p6/p6_sdk/configs/wifi_config.h b/third_party/infineon/psoc6/psoc6_sdk/configs/wifi_config.h
similarity index 100%
rename from third_party/p6/p6_sdk/configs/wifi_config.h
rename to third_party/infineon/psoc6/psoc6_sdk/configs/wifi_config.h
diff --git a/third_party/p6/p6_sdk/libs/TARGET_CY8CKIT-062S2-43012 b/third_party/infineon/psoc6/psoc6_sdk/libs/TARGET_CY8CKIT-062S2-43012
similarity index 100%
rename from third_party/p6/p6_sdk/libs/TARGET_CY8CKIT-062S2-43012
rename to third_party/infineon/psoc6/psoc6_sdk/libs/TARGET_CY8CKIT-062S2-43012
diff --git a/third_party/p6/p6_sdk/libs/abstraction-rtos b/third_party/infineon/psoc6/psoc6_sdk/libs/abstraction-rtos
similarity index 100%
rename from third_party/p6/p6_sdk/libs/abstraction-rtos
rename to third_party/infineon/psoc6/psoc6_sdk/libs/abstraction-rtos
diff --git a/third_party/p6/p6_sdk/libs/anycloud-ota b/third_party/infineon/psoc6/psoc6_sdk/libs/anycloud-ota
similarity index 100%
rename from third_party/p6/p6_sdk/libs/anycloud-ota
rename to third_party/infineon/psoc6/psoc6_sdk/libs/anycloud-ota
diff --git a/third_party/p6/p6_sdk/libs/bluetooth-freertos b/third_party/infineon/psoc6/psoc6_sdk/libs/bluetooth-freertos
similarity index 100%
rename from third_party/p6/p6_sdk/libs/bluetooth-freertos
rename to third_party/infineon/psoc6/psoc6_sdk/libs/bluetooth-freertos
diff --git a/third_party/p6/p6_sdk/libs/btstack b/third_party/infineon/psoc6/psoc6_sdk/libs/btstack
similarity index 100%
rename from third_party/p6/p6_sdk/libs/btstack
rename to third_party/infineon/psoc6/psoc6_sdk/libs/btstack
diff --git a/third_party/p6/p6_sdk/libs/clib-support b/third_party/infineon/psoc6/psoc6_sdk/libs/clib-support
similarity index 100%
rename from third_party/p6/p6_sdk/libs/clib-support
rename to third_party/infineon/psoc6/psoc6_sdk/libs/clib-support
diff --git a/third_party/p6/p6_sdk/libs/connectivity-utilities b/third_party/infineon/psoc6/psoc6_sdk/libs/connectivity-utilities
similarity index 100%
rename from third_party/p6/p6_sdk/libs/connectivity-utilities
rename to third_party/infineon/psoc6/psoc6_sdk/libs/connectivity-utilities
diff --git a/third_party/p6/p6_sdk/libs/core-lib b/third_party/infineon/psoc6/psoc6_sdk/libs/core-lib
similarity index 100%
rename from third_party/p6/p6_sdk/libs/core-lib
rename to third_party/infineon/psoc6/psoc6_sdk/libs/core-lib
diff --git a/third_party/p6/p6_sdk/libs/core-make b/third_party/infineon/psoc6/psoc6_sdk/libs/core-make
similarity index 100%
rename from third_party/p6/p6_sdk/libs/core-make
rename to third_party/infineon/psoc6/psoc6_sdk/libs/core-make
diff --git a/third_party/p6/p6_sdk/libs/freertos b/third_party/infineon/psoc6/psoc6_sdk/libs/freertos
similarity index 100%
rename from third_party/p6/p6_sdk/libs/freertos
rename to third_party/infineon/psoc6/psoc6_sdk/libs/freertos
diff --git a/third_party/p6/p6_sdk/libs/kv-store b/third_party/infineon/psoc6/psoc6_sdk/libs/kv-store
similarity index 100%
rename from third_party/p6/p6_sdk/libs/kv-store
rename to third_party/infineon/psoc6/psoc6_sdk/libs/kv-store
diff --git a/third_party/p6/p6_sdk/libs/lwip b/third_party/infineon/psoc6/psoc6_sdk/libs/lwip
similarity index 100%
rename from third_party/p6/p6_sdk/libs/lwip
rename to third_party/infineon/psoc6/psoc6_sdk/libs/lwip
diff --git a/third_party/p6/p6_sdk/libs/mbedtls b/third_party/infineon/psoc6/psoc6_sdk/libs/mbedtls
similarity index 100%
rename from third_party/p6/p6_sdk/libs/mbedtls
rename to third_party/infineon/psoc6/psoc6_sdk/libs/mbedtls
diff --git a/third_party/p6/p6_sdk/libs/mtb-hal-cat1 b/third_party/infineon/psoc6/psoc6_sdk/libs/mtb-hal-cat1
similarity index 100%
rename from third_party/p6/p6_sdk/libs/mtb-hal-cat1
rename to third_party/infineon/psoc6/psoc6_sdk/libs/mtb-hal-cat1
diff --git a/third_party/p6/p6_sdk/libs/mtb-pdl-cat1 b/third_party/infineon/psoc6/psoc6_sdk/libs/mtb-pdl-cat1
similarity index 100%
rename from third_party/p6/p6_sdk/libs/mtb-pdl-cat1
rename to third_party/infineon/psoc6/psoc6_sdk/libs/mtb-pdl-cat1
diff --git a/third_party/p6/p6_sdk/libs/psoc6cm0p b/third_party/infineon/psoc6/psoc6_sdk/libs/psoc6cm0p
similarity index 100%
rename from third_party/p6/p6_sdk/libs/psoc6cm0p
rename to third_party/infineon/psoc6/psoc6_sdk/libs/psoc6cm0p
diff --git a/third_party/p6/p6_sdk/libs/recipe-make-cat1a b/third_party/infineon/psoc6/psoc6_sdk/libs/recipe-make-cat1a
similarity index 100%
rename from third_party/p6/p6_sdk/libs/recipe-make-cat1a
rename to third_party/infineon/psoc6/psoc6_sdk/libs/recipe-make-cat1a
diff --git a/third_party/p6/p6_sdk/libs/retarget-io b/third_party/infineon/psoc6/psoc6_sdk/libs/retarget-io
similarity index 100%
rename from third_party/p6/p6_sdk/libs/retarget-io
rename to third_party/infineon/psoc6/psoc6_sdk/libs/retarget-io
diff --git a/third_party/p6/p6_sdk/libs/secure-sockets b/third_party/infineon/psoc6/psoc6_sdk/libs/secure-sockets
similarity index 100%
rename from third_party/p6/p6_sdk/libs/secure-sockets
rename to third_party/infineon/psoc6/psoc6_sdk/libs/secure-sockets
diff --git a/third_party/p6/p6_sdk/libs/serial-flash b/third_party/infineon/psoc6/psoc6_sdk/libs/serial-flash
similarity index 100%
rename from third_party/p6/p6_sdk/libs/serial-flash
rename to third_party/infineon/psoc6/psoc6_sdk/libs/serial-flash
diff --git a/third_party/p6/p6_sdk/libs/whd-bsp-integration b/third_party/infineon/psoc6/psoc6_sdk/libs/whd-bsp-integration
similarity index 100%
rename from third_party/p6/p6_sdk/libs/whd-bsp-integration
rename to third_party/infineon/psoc6/psoc6_sdk/libs/whd-bsp-integration
diff --git a/third_party/p6/p6_sdk/libs/wifi-connection-manager b/third_party/infineon/psoc6/psoc6_sdk/libs/wifi-connection-manager
similarity index 100%
rename from third_party/p6/p6_sdk/libs/wifi-connection-manager
rename to third_party/infineon/psoc6/psoc6_sdk/libs/wifi-connection-manager
diff --git a/third_party/p6/p6_sdk/libs/wifi-host-driver b/third_party/infineon/psoc6/psoc6_sdk/libs/wifi-host-driver
similarity index 100%
rename from third_party/p6/p6_sdk/libs/wifi-host-driver
rename to third_party/infineon/psoc6/psoc6_sdk/libs/wifi-host-driver
diff --git a/third_party/p6/p6_sdk/libs/wifi-mw-core b/third_party/infineon/psoc6/psoc6_sdk/libs/wifi-mw-core
similarity index 100%
rename from third_party/p6/p6_sdk/libs/wifi-mw-core
rename to third_party/infineon/psoc6/psoc6_sdk/libs/wifi-mw-core
diff --git a/third_party/p6/p6_sdk/ota/config/mcuboot_config/mcuboot_assert.h b/third_party/infineon/psoc6/psoc6_sdk/ota/config/mcuboot_config/mcuboot_assert.h
similarity index 100%
rename from third_party/p6/p6_sdk/ota/config/mcuboot_config/mcuboot_assert.h
rename to third_party/infineon/psoc6/psoc6_sdk/ota/config/mcuboot_config/mcuboot_assert.h
diff --git a/third_party/p6/p6_sdk/ota/config/mcuboot_config/mcuboot_config.h b/third_party/infineon/psoc6/psoc6_sdk/ota/config/mcuboot_config/mcuboot_config.h
similarity index 100%
rename from third_party/p6/p6_sdk/ota/config/mcuboot_config/mcuboot_config.h
rename to third_party/infineon/psoc6/psoc6_sdk/ota/config/mcuboot_config/mcuboot_config.h
diff --git a/third_party/p6/p6_sdk/ota/config/mcuboot_config/mcuboot_logging.h b/third_party/infineon/psoc6/psoc6_sdk/ota/config/mcuboot_config/mcuboot_logging.h
similarity index 100%
rename from third_party/p6/p6_sdk/ota/config/mcuboot_config/mcuboot_logging.h
rename to third_party/infineon/psoc6/psoc6_sdk/ota/config/mcuboot_config/mcuboot_logging.h
diff --git a/third_party/p6/p6_sdk/ota/config/mcuboot_crypto_acc_config.h b/third_party/infineon/psoc6/psoc6_sdk/ota/config/mcuboot_crypto_acc_config.h
similarity index 100%
rename from third_party/p6/p6_sdk/ota/config/mcuboot_crypto_acc_config.h
rename to third_party/infineon/psoc6/psoc6_sdk/ota/config/mcuboot_crypto_acc_config.h
diff --git a/third_party/p6/p6_sdk/ota/config/mcuboot_crypto_config.h b/third_party/infineon/psoc6/psoc6_sdk/ota/config/mcuboot_crypto_config.h
similarity index 100%
rename from third_party/p6/p6_sdk/ota/config/mcuboot_crypto_config.h
rename to third_party/infineon/psoc6/psoc6_sdk/ota/config/mcuboot_crypto_config.h
diff --git a/third_party/p6/p6_sdk/ota/cy8c6xxa_cm4_dual_ota_int.ld b/third_party/infineon/psoc6/psoc6_sdk/ota/cy8c6xxa_cm4_dual_ota_int.ld
similarity index 100%
rename from third_party/p6/p6_sdk/ota/cy8c6xxa_cm4_dual_ota_int.ld
rename to third_party/infineon/psoc6/psoc6_sdk/ota/cy8c6xxa_cm4_dual_ota_int.ld
diff --git a/third_party/p6/p6_sdk/ota/matter-psoc6-mcuboot-bootloader.hex b/third_party/infineon/psoc6/psoc6_sdk/ota/matter-psoc6-mcuboot-bootloader.hex
similarity index 100%
rename from third_party/p6/p6_sdk/ota/matter-psoc6-mcuboot-bootloader.hex
rename to third_party/infineon/psoc6/psoc6_sdk/ota/matter-psoc6-mcuboot-bootloader.hex
diff --git a/third_party/p6/p6_sdk/ota/ota_base_build.sh b/third_party/infineon/psoc6/psoc6_sdk/ota/ota_base_build.sh
similarity index 100%
rename from third_party/p6/p6_sdk/ota/ota_base_build.sh
rename to third_party/infineon/psoc6/psoc6_sdk/ota/ota_base_build.sh
diff --git a/third_party/p6/p6_sdk/ota/ota_update_build.sh b/third_party/infineon/psoc6/psoc6_sdk/ota/ota_update_build.sh
similarity index 100%
rename from third_party/p6/p6_sdk/ota/ota_update_build.sh
rename to third_party/infineon/psoc6/psoc6_sdk/ota/ota_update_build.sh