-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Telink Platform * [Telink] remove unnecessary steps from workflow * [Telink] update Readme.md flash section with new instruction * [Telink] Fix compilation errors * [Telink] Fix remarks from reviewers * [Telink] update last changes in Matter * [Telink] Update endpoint numbers for lighting * [Telink] Remove PublishService and Service module as it is no longer required * [Telink] Move Zephyr shared files to config/zephyr * [Telink] Fix after restyle check * [Telink] remove unnecessary container volume * [Telink] Add MBEDTLS_ECDSA_DETERMINISTIC to fix compilation error * [Telink] update after rebase
- Loading branch information
Showing
56 changed files
with
3,455 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,3 +130,6 @@ labelPRBasedOnFilePath: | |
|
||
zephyr: | ||
- src/platform/Zephyr/* | ||
|
||
telink: | ||
- src/platform/telink/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,3 +154,6 @@ openthread: | |
|
||
zephyr: | ||
- src/platform/Zephyr/* | ||
|
||
telink: | ||
- src/platform/telink/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# 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. | ||
|
||
name: Build example - Telink | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
telink: | ||
name: Telink | ||
env: | ||
BUILD_TYPE: telink | ||
|
||
runs-on: ubuntu-latest | ||
if: github.actor != 'restyled-io[bot]' | ||
|
||
container: | ||
image: connectedhomeip/chip-build-telink:latest | ||
volumes: | ||
- "/tmp/bloat_reports:/tmp/bloat_reports" | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: Build example Telink Lighting App on TLSR9518ADK80D | ||
run: scripts/examples/telink_example.sh lighting-app tlsr9518adk80d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# | ||
# 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. | ||
# | ||
|
||
add_library(gnu17 INTERFACE) | ||
target_compile_options(gnu17 INTERFACE -std=gnu++17 -D_SYS__PTHREADTYPES_H_) | ||
target_link_libraries(app PRIVATE gnu17) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
# | ||
# 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. | ||
# | ||
|
||
CONFIG_CHIP=y | ||
|
||
CONFIG_STD_CPP14=y | ||
|
||
CONFIG_LOG=y | ||
CONFIG_LOG_MODE_MINIMAL=y | ||
CONFIG_PRINTK=y | ||
CONFIG_ASSERT=y | ||
CONFIG_CBPRINTF_LIBC_SUBSTS=y | ||
|
||
# Generic networking options | ||
CONFIG_NETWORKING=y | ||
CONFIG_NET_CONFIG_SETTINGS=y | ||
CONFIG_NET_SOCKETS=y | ||
CONFIG_NET_SOCKETS_POSIX_NAMES=n | ||
|
||
# Disable TCP and IPv4 (TCP disabled to avoid heavy traffic) | ||
CONFIG_NET_TCP=n | ||
CONFIG_NET_IPV4=n | ||
|
||
CONFIG_NET_CONFIG_NEED_IPV4=n | ||
CONFIG_NET_CONFIG_MY_IPV4_ADDR="" | ||
CONFIG_NET_CONFIG_PEER_IPV4_ADDR="" | ||
|
||
# Application stack size | ||
CONFIG_MAIN_STACK_SIZE=4096 | ||
CONFIG_INIT_STACKS=y | ||
|
||
# Disable certain parts of Zephyr IPv6 stack | ||
CONFIG_NET_IPV6_NBR_CACHE=n | ||
CONFIG_NET_IPV6_MLD=n | ||
|
||
CONFIG_NET_MAX_CONN=1 | ||
CONFIG_NET_MAX_CONTEXTS=1 | ||
|
||
# Network buffers | ||
CONFIG_NET_PKT_RX_COUNT=8 | ||
CONFIG_NET_PKT_TX_COUNT=8 | ||
CONFIG_NET_BUF_RX_COUNT=32 | ||
CONFIG_NET_BUF_TX_COUNT=32 | ||
|
||
# Bluetooth Low Energy configs | ||
CONFIG_BT=n | ||
|
||
# L2 OpenThread enabling | ||
CONFIG_NET_L2_OPENTHREAD=y | ||
CONFIG_OPENTHREAD_DEBUG=y | ||
CONFIG_OPENTHREAD_L2_DEBUG=y | ||
CONFIG_OPENTHREAD_L2_LOG_LEVEL_INF=y | ||
|
||
CONFIG_OPENTHREAD_CHANNEL=26 | ||
|
||
CONFIG_NET_CONFIG_IEEE802154_DEV_NAME="IEEE802154_b91" | ||
|
||
CONFIG_NET_CONFIG_MY_IPV6_ADDR="fdde:ad00:beef::1" | ||
CONFIG_NET_CONFIG_PEER_IPV6_ADDR="fdde:ad00:beef::2" | ||
|
||
# OpenThread configs | ||
CONFIG_OPENTHREAD_MTD=y | ||
CONFIG_OPENTHREAD_FTD=n | ||
CONFIG_OPENTHREAD_SLAAC=y | ||
CONFIG_OPENTHREAD_DHCP6_CLIENT=y | ||
CONFIG_OPENTHREAD_SNTP_CLIENT=y | ||
CONFIG_OPENTHREAD_DNS_CLIENT=y | ||
CONFIG_OPENTHREAD_MTD_NETDIAG=y | ||
CONFIG_OPENTHREAD_ENABLE_SERVICE=y | ||
CONFIG_OPENTHREAD_MANUAL_START=y | ||
CONFIG_OPENTHREAD_THREAD_STACK_SIZE=6144 | ||
CONFIG_OPENTHREAD_MBEDTLS=y | ||
|
||
# mbedTLS tweaks | ||
CONFIG_MBEDTLS_DEBUG=y | ||
|
||
CONFIG_MBEDTLS_USER_CONFIG_ENABLE=y | ||
CONFIG_MBEDTLS_USER_CONFIG_FILE="telink-mbedtls-config.h" | ||
|
||
# TBD: Something wrong with this heap. Need to be investigated. Cirrently just set minimal size | ||
CONFIG_MBEDTLS_HEAP_SIZE=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# 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/build.gni") | ||
import("//build_overrides/chip.gni") | ||
|
||
# The location of the build configuration file. | ||
buildconfig = "${build_root}/config/BUILDCONFIG.gn" | ||
|
||
# CHIP uses angle bracket includes. | ||
check_system_includes = true | ||
|
||
default_args = { | ||
target_cpu = "riscv" | ||
target_os = "zephyr" | ||
|
||
import("${chip_root}/config/telink/chip-gn/args.gni") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# 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/build.gni") | ||
import("//build_overrides/chip.gni") | ||
|
||
import("${build_root}/chip/tests.gni") | ||
|
||
assert(current_os == "zephyr") | ||
|
||
declare_args() { | ||
chip_build_pw_rpc_lib = false | ||
} | ||
|
||
group("telink") { | ||
deps = [ "${chip_root}/src/lib" ] | ||
|
||
if (chip_build_tests) { | ||
deps += [ "${chip_root}/src:tests" ] | ||
} | ||
} | ||
|
||
group("default") { | ||
deps = [ ":telink" ] | ||
} |
Oops, something went wrong.