Initial support of the Texas Instruments CC13X2 CC26X2 MCU family (#4027)
* Initial support of the Texas Instruments CC13X2 CC26X2 MCU family
* Update headers to match repository
* Switched License header to Apache 2.0 for SysConfig file.
* Replaced C ternary statements with boolean returns.
* Replaced Pre-processor include guards with `#pragma once`.
* Removed unnecessary forward declarations.
* Restyled by whitespace
* Restyled by clang-format
* Restyled by gn
* Restyled by prettier-markdown
* fix whitespace (tab) issue from restyled
* fix clang-format build issues from restyled
Includes for board specific header files need path delimiters.
* Restyled by whitespace
* revert incorrect changes to m5stack-tft repo
* remove common nv driver
Revert to using the SDK version of the common nv driver and enable the
POSIX-like porting layer.
* remove ti sdk files
Revert to using the platform support files in the board specific example
from the TI SDK. This adds a step to installing the TI SDK to fix-up
changes to work with the development version of OpenThread.
* Restyled by clang-format
* Restyled by gn
* Restyled by prettier-markdown
* add freertos as a submodule
* move openthread platform to simplelink build file
* clean up build graph
* fix OpenThread configuration to match TI SDK
* update lwip config header
* Restyled by clang-format
* Restyled by gn
* remove usage of $HOME
This now requires the user to set the absolute locations of the TI SDK and
SysConfig tools.
* Restyled by prettier-markdown
* fix build issues
* size sha workspace for the CC13X2 CC26X2
* Restyled by gn
* fix gn style and remove commented out code
* fix cpp elif in efr32
* re-enable openthread on efr32 and disable on esp32
* align with other platform doxygen disable defines
Co-authored-by: Restyled.io <commits@restyled.io>
diff --git a/src/platform/BUILD.gn b/src/platform/BUILD.gn
index f39ddf7..4f9c53b 100644
--- a/src/platform/BUILD.gn
+++ b/src/platform/BUILD.gn
@@ -88,7 +88,12 @@
defines += [ "CHIP_ENABLE_ADDITIONAL_DATA_ADVERTISING=0" ]
}
- if (chip_device_platform == "darwin") {
+ if (chip_device_platform == "cc13x2_26x2") {
+ defines += [
+ "CHIP_DEVICE_LAYER_TARGET_CC13X2_26X2=1",
+ "CHIP_DEVICE_LAYER_TARGET=cc13x2_26x2",
+ ]
+ } else if (chip_device_platform == "darwin") {
defines += [
"CHIP_DEVICE_LAYER_TARGET_DARWIN=1",
"CHIP_DEVICE_LAYER_TARGET=Darwin",
@@ -217,7 +222,39 @@
public_deps += [ "${chip_root}/src/lib/mdns:platform_header" ]
}
- if (chip_device_platform == "darwin") {
+ if (chip_device_platform == "cc13x2_26x2") {
+ sources += [
+ "FreeRTOS/SystemTimeSupport.cpp",
+ "cc13x2_26x2/BlePlatformConfig.h",
+ "cc13x2_26x2/CC13X2_26X2Config.cpp",
+ "cc13x2_26x2/CC13X2_26X2Config.h",
+ "cc13x2_26x2/CHIPDevicePlatformConfig.h",
+ "cc13x2_26x2/CHIPDevicePlatformConfig.h",
+ "cc13x2_26x2/CHIPDevicePlatformEvent.h",
+ "cc13x2_26x2/ConfigurationManagerImpl.cpp",
+ "cc13x2_26x2/ConnectivityManagerImpl.cpp",
+ "cc13x2_26x2/ConnectivityManagerImpl.h",
+ "cc13x2_26x2/InetPlatformConfig.h",
+ "cc13x2_26x2/Logging.cpp",
+ "cc13x2_26x2/PlatformManagerImpl.cpp",
+ "cc13x2_26x2/PlatformManagerImpl.h",
+ "cc13x2_26x2/SystemPlatformConfig.h",
+ ]
+ if (chip_enable_openthread) {
+ public_deps += [
+ "${chip_root}/third_party/ti_simplelink_sdk:mbedtls",
+ "${chip_root}/third_party/ti_simplelink_sdk:ti_simplelink_sdk",
+ "${chip_root}/third_party/ti_simplelink_sdk:ti_simplelink_sysconfig",
+ "${openthread_root}:libopenthread-mtd",
+ ]
+
+ sources += [
+ "OpenThread/OpenThreadUtils.cpp",
+ "cc13x2_26x2/ThreadStackManagerImpl.cpp",
+ "cc13x2_26x2/ThreadStackManagerImpl.h",
+ ]
+ }
+ } else if (chip_device_platform == "darwin") {
sources += [
"Darwin/BLEManagerImpl.cpp",
"Darwin/BLEManagerImpl.h",