Skip to content

Commit 1326376

Browse files
adabreutirestyled-commits
authored andcommitted
Add CC13x4 Example Application support (#26576)
* Add CC13x4 Example Application support Upgrade lock-app to utilize latest UART driver isntances Update README's with clearer CHIP CLI instructions * Deprecate CC13x4 all-clusters-minimal Resovle README CI failures * Restyled by prettier-markdown * Update CI to support CC13x4 * Revert "Update CI to support CC13x4" This reverts commit 7b86ecc. --------- Co-authored-by: Restyled.io <commits@restyled.io>
1 parent f13a713 commit 1326376

File tree

119 files changed

+14111
-229
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+14111
-229
lines changed

docs/guides/darwin.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ Example:
268268
- [Simulated Linux](./simulated_device_linux.md)
269269
- [Telink](/examples/lighting-app/telink/README.md)
270270
- [TI Platform](./ti_platform_overview.md)
271-
- [TI All Clusters](/examples/all-clusters-app/cc13x2x7_26x2x7/README.md)
271+
- [TI All Clusters](/examples/all-clusters-app/cc13x4_26x4/README.md)
272272
- [Tizen](/examples/lighting-app/tizen/README.md)
273273

274274
## Providing Feedback to Apple

examples/all-clusters-app/cc13x2x7_26x2x7/README.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,8 @@ Some initial setup is necessary for preparing the build environment. This
6363
section will need to be done when migrating to new versions of the SDK. This
6464
guide assumes that the environment is linux based, and recommends Ubuntu 20.04.
6565

66-
- Download and install [SysConfig][sysconfig] ([recommended
67-
version][sysconfig_recommended]). This can be done simply with the following
68-
commands.
66+
- Download and install [SysConfig][sysconfig]. This can be done simply with
67+
the following commands.
6968

7069
```
7170
$ cd ~
@@ -236,8 +235,6 @@ Additionally, we welcome any feedback.
236235
[matter-e2e-faq]:
237236
https://e2e.ti.com/support/wireless-connectivity/zigbee-thread-group/zigbee-and-thread/f/zigbee-thread-forum/1082428/faq-cc2652r7-matter----getting-started-guide
238237
[sysconfig]: https://www.ti.com/tool/SYSCONFIG
239-
[sysconfig_recommended]:
240-
https://software-dl.ti.com/ccs/esd/sysconfig/sysconfig-1.11.0_2225-setup.run
241238
[ti_thread_dnd]:
242239
https://www.ti.com/wireless-connectivity/thread/design-development.html
243240
[ot_border_router_setup]: https://openthread.io/guides/border-router/build
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright (c) 2020 Project CHIP Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
import("//build_overrides/build.gni")
16+
17+
# The location of the build configuration file.
18+
buildconfig = "${build_root}/config/BUILDCONFIG.gn"
19+
20+
# CHIP uses angle bracket includes.
21+
check_system_includes = true
22+
23+
default_args = {
24+
target_cpu = "arm"
25+
target_os = "freertos"
26+
27+
import("//args.gni")
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
# Copyright (c) 2020 Project CHIP Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
import("//build_overrides/build.gni")
16+
import("//build_overrides/chip.gni")
17+
import("//build_overrides/openthread.gni")
18+
import("//build_overrides/ti_simplelink_sdk.gni")
19+
20+
import("${build_root}/config/defaults.gni")
21+
22+
import("${chip_root}/src/platform/device.gni")
23+
24+
import("${ti_simplelink_sdk_build_root}/ti_simplelink_executable.gni")
25+
import("${ti_simplelink_sdk_build_root}/ti_simplelink_sdk.gni")
26+
27+
assert(current_os == "freertos")
28+
29+
project_dir = "${chip_root}/examples/all-clusters-app/cc13x4_26x4"
30+
31+
ti_simplelink_sdk("sdk") {
32+
include_dirs = [ "${project_dir}/main/include" ]
33+
public_configs = [ ":all-clusters-app_config" ]
34+
}
35+
36+
ti_sysconfig("sysconfig") {
37+
sources = [ "${project_dir}/chip.syscfg" ]
38+
39+
outputs = [
40+
"ti_devices_config.c",
41+
"ti_radio_config.c",
42+
"ti_radio_config.h",
43+
"ti_drivers_config.c",
44+
"ti_drivers_config.h",
45+
"ti_ble_config.c",
46+
"ti_ble_config.h",
47+
"ti_dmm_application_policy.c",
48+
"ti_dmm_application_policy.h",
49+
50+
# disabled until upstream generation is aligned
51+
#"tiop_config.h",
52+
#"tiop_config.c",
53+
54+
# not traditional source files
55+
#"ti_utils_build_linker.cmd.genlibs",
56+
#"syscfg_c.rov.xs",
57+
#"ti_utils_runtime_model.gv",
58+
#"ti_utils_runtime_Makefile",
59+
#"ti_ble_app_config.opt",
60+
#"ti_build_config.opt",
61+
]
62+
63+
public_configs = [ ":sdk_dmm_config" ]
64+
65+
cflags = [
66+
"-Wno-comment",
67+
"@" + rebase_path("${target_gen_dir}/sysconfig/ti_ble_app_config.opt",
68+
root_build_dir),
69+
"@" + rebase_path("${target_gen_dir}/sysconfig/ti_build_config.opt",
70+
root_build_dir),
71+
]
72+
}
73+
74+
ti_simplelink_executable("all-clusters-app") {
75+
output_name = "chip-${ti_simplelink_board}-all-clusters-example.out"
76+
77+
sources = [
78+
"${chip_root}/examples/all-clusters-app/all-clusters-common/src/binding-handler.cpp",
79+
"${chip_root}/examples/all-clusters-app/all-clusters-common/src/bridged-actions-stub.cpp",
80+
"${chip_root}/examples/all-clusters-app/all-clusters-common/src/static-supported-modes-manager.cpp",
81+
"${chip_root}/examples/providers/DeviceInfoProviderImpl.cpp",
82+
"${project_dir}/main/AppTask.cpp",
83+
"${project_dir}/main/ClusterManager.cpp",
84+
"${project_dir}/main/Globals.cpp",
85+
"${project_dir}/main/ZclCallbacks.cpp",
86+
"${project_dir}/main/main.cpp",
87+
]
88+
89+
deps = [
90+
":sdk",
91+
":sysconfig",
92+
"${chip_root}/examples/all-clusters-app/all-clusters-common",
93+
"${chip_root}/examples/platform/cc13x4_26x4:cc13x4_26x4-attestation-credentials",
94+
"${chip_root}/src/lib",
95+
]
96+
97+
if (chip_openthread_ftd) {
98+
deps += [ "${chip_root}/third_party/openthread/repo:libopenthread-ftd" ]
99+
} else {
100+
deps += [ "${chip_root}/third_party/openthread/repo:libopenthread-mtd" ]
101+
}
102+
103+
include_dirs = [
104+
"${project_dir}",
105+
"${project_dir}/main",
106+
"${chip_root}/examples/all-clusters-app/all-clusters-common/include",
107+
"${chip_root}/examples/providers/",
108+
]
109+
110+
cflags = [
111+
"-Wno-implicit-fallthrough",
112+
"-Wno-sign-compare",
113+
"-Wconversion",
114+
]
115+
116+
output_dir = root_out_dir
117+
}
118+
119+
group("cc13x4_26x4") {
120+
deps = [ ":all-clusters-app" ]
121+
}
122+
123+
group("default") {
124+
deps = [ ":cc13x4_26x4" ]
125+
}

0 commit comments

Comments
 (0)