[BEKEN] add beken platform file (#21824)
* [BEKEN] add beken platform file
* add beken platform src file
* support examples/lighting-app
* add beken config file
* [BEKEN] change the return type of InitClock_RealTime() and update some
comments.
* [BEKEN] del obsolete interface
* del obsolete interface
* fix copyright headers (2020 -> 2022) in all files
Co-authored-by: Tao Yang <tao.yang@bekencorp.com>
Co-authored-by: cenfang <fly92727@outlook.com>
diff --git a/src/platform/BUILD.gn b/src/platform/BUILD.gn
index b8b20ee..31e25b4 100644
--- a/src/platform/BUILD.gn
+++ b/src/platform/BUILD.gn
@@ -262,6 +262,12 @@
"CHIP_DEVICE_LAYER_TARGET_ZEPHYR=1",
"CHIP_DEVICE_LAYER_TARGET=Zephyr",
]
+ } else if (chip_device_platform == "beken") {
+ defines += [
+ "CHIP_DEVICE_LAYER_TARGET_BEKEN=1",
+ "CHIP_DEVICE_LAYER_TARGET=Beken",
+ "CHIP_DEVICE_CONFIG_ENABLE_WIFI=${chip_enable_wifi}",
+ ]
}
if (chip_device_config_device_software_version_string != "") {
@@ -431,6 +437,8 @@
_platform_target = "nxp/mw320"
} else if (chip_device_platform == "zephyr") {
_platform_target = "Zephyr"
+ } else if (chip_device_platform == "beken") {
+ _platform_target = "Beken"
} else {
assert(false, "Unknown chip_device_platform: ${chip_device_platform}")
}