Skip to content

Commit

Permalink
Merge branch 'master' into tccmyamlfix
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 authored Oct 2, 2023
2 parents 0df3530 + 199b155 commit dd99d76
Show file tree
Hide file tree
Showing 675 changed files with 19,979 additions and 10,001 deletions.
13 changes: 7 additions & 6 deletions .github/.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,7 @@ PID
Pigweed
PinCode
pinrequest
PIXIT
pkgconfig
PKI
plaintext
Expand Down Expand Up @@ -1126,6 +1127,7 @@ ReadConfigValue
readelf
readfds
README
READMEs
readonly
readthedocs
Reag
Expand Down Expand Up @@ -1182,6 +1184,7 @@ runArgs
RUNAS
RunMain
runtime
RVC
rw
RXD
sandboxed
Expand Down Expand Up @@ -1277,9 +1280,9 @@ StatusCode
stderr
stdout
sterm
stmicroelectronics
stm
stlink
stm
stmicroelectronics
storagepath
str
strcpy
Expand Down Expand Up @@ -1352,11 +1355,11 @@ textboxes
TFT
ThermostatUserInterfaceConfiguration
ThIsIsNoTMyReAlGiThUbToKeNSoDoNoTtRy
thread
ThreadNetworkDiagnostics
threadOperationalDataset
ThreadStackManager
ThreadStackManagerImpl
thread
ths
Thunderboard
timedInteractionTimeoutMs
Expand Down Expand Up @@ -1561,6 +1564,4 @@ zephyrproject
zhengyaohan
Zigbee
zigbeealliance
zigbeethread
PIXIT
RVC
zigbeethread
2 changes: 1 addition & 1 deletion .github/workflows/chef.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: ghcr.io/project-chip/chip-build-telink:12
image: ghcr.io/project-chip/chip-build-telink:16
options: --user root

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/examples-telink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: ghcr.io/project-chip/chip-build-telink:12
image: ghcr.io/project-chip/chip-build-telink:16
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"

Expand Down
22 changes: 16 additions & 6 deletions .github/workflows/full-android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,36 +59,46 @@ jobs:
with:
platform: android

- name: Cleanup pigweed CIPD packages
# This should not generally be needed, however android CI runs out of space
# We do not need pigweed cross compile here because we use android NDK
# compilers, so removing rust and arm compilers saves 2.5GB
run: |
du -sh .environment/cipd/packages/pigweed/rust \
.environment/cipd/packages/arm
rm -rf .environment/cipd/packages/pigweed/rust \
.environment/cipd/packages/arm
- name: Build Android arm-chip-tool
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --target android-arm-chip-tool build"
- name: Clean out build output
run: rm -rf ./out examples/android/CHIPTool/app/libs/jniLibs/*
run: rm -rf ./out examples/android/CHIPTool/app/libs/jniLibs/* examples/android/CHIPTool/app/libs/*.jar
- name: Build Android arm-tv-casting-app
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --target android-arm-tv-casting-app build"
- name: Clean out build output
run: rm -rf ./out examples/android/CHIPTool/app/libs/jniLibs/*
run: rm -rf ./out examples/tv-casting-app/android/App/app/libs/jniLibs/* examples/tv-casting-app/android/App/app/libs/*.jar
- name: Build Android arm-tv-server
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --target android-arm-tv-server build"
- name: Clean out build output
run: rm -rf ./out examples/android/CHIPTool/app/libs/jniLibs/*
run: rm -rf ./out examples/tv-app/android/App/app/libs/jniLibs/* examples/tv-app/android/App/app/libs/*.jar
- name: Build Android arm64-tv-casting-app
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --target android-arm64-tv-casting-app build"
- name: Clean out build output
run: rm -rf ./out examples/android/CHIPTool/app/libs/jniLibs/*
run: rm -rf ./out examples/tv-casting-app/android/app/libs/jniLibs/* examples/android/CHIPTool/app/libs/*.jar
- name: Build Android arm64-tv-server
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --target android-arm64-tv-server build"
- name: Clean out build output
run: rm -rf ./out examples/android/CHIPTool/app/libs/jniLibs/*
run: rm -rf ./out examples/tv-app/android/App/app/libs/jniLibs/* examples/tv-app/android/App/app/libs/*.jar
- name: Build Android arm64-chip-tool
run: |
./scripts/run_in_build_env.sh \
Expand All @@ -98,7 +108,7 @@ jobs:
./scripts/run_in_build_env.sh \
"ninja -C out/android-arm64-chip-tool build/chip/java/tests:java_build_test"
- name: Clean out build output
run: rm -rf ./out examples/android/CHIPTool/app/libs/jniLibs/*
run: rm -rf ./out examples/android/CHIPTool/app/libs/jniLibs/* examples/android/CHIPTool/app/libs/*.jar
# - name: Build Android Studio build (arm64 only)
# run: |
# ./scripts/run_in_build_env.sh \
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/smoketest-android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ jobs:
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: android
- name: Cleanup pigweed CIPD packages
# This should not generally be needed, however android CI runs out of space
# We do not need pigweed cross compile here because we use android NDK
# compilers, so removing rust and arm compilers saves 2.5GB
run: |
du -sh .environment/cipd/packages/pigweed/rust \
.environment/cipd/packages/arm
rm -rf .environment/cipd/packages/pigweed/rust \
.environment/cipd/packages/arm
- name: Build Android CHIPTool and CHIPTest (ARM64)
run: |
Expand All @@ -58,12 +68,16 @@ jobs:
./scripts/run_in_build_env.sh \
"ninja -C out/android-arm64-chip-tool build/chip/java/tests:java_build_test"
- name: Clean out build output
run: rm -rf ./out examples/android/CHIPTool/app/libs/jniLibs/*
run: rm -rf ./out examples/android/CHIPTool/app/libs/jniLibs/* examples/android/CHIPTool/app/libs/*.jar
- name: Build Android arm64-tv-casting-app
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --target android-arm64-tv-casting-app build"
- name: Clean out build output
run: rm -rf ./out examples/tv-casting-app/android/App/app/libs/jniLibs/* examples/tv-casting-app/android/App/app/libs/*.jar
- name: Build Android arm64-tv-server
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --target android-arm64-tv-server build"
- name: Clean out build output
run: rm -rf ./out examples/tv-app/android/App/app/libs/jniLibs/* examples/tv-app/android/App/app/libs/*.jar
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ jobs:
"
- name: Build Apps
run: |
scripts/run_in_build_env.sh './scripts/build_python.sh --install_virtual_env out/venv --include_yamltests'
scripts/run_in_build_env.sh './scripts/build_python.sh --install_virtual_env out/venv'
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--target linux-x64-chip-tool${CHIP_TOOL_VARIANT}-${BUILD_VARIANT} \
Expand Down
5 changes: 2 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,5 @@
[submodule "third_party/st/STM32CubeWB"]
path = third_party/st/STM32CubeWB
url = https://github.com/STMicroelectronics/STM32CubeWB.git
branch = v1.17.0
platform = stm32

branch = v1.17.0
platforms = stm32
58 changes: 49 additions & 9 deletions config/telink/chip-module/Kconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ config B9X_BLE_CTRL_MASTER_MAX_NUM
config B9X_BLE_CTRL_SLAVE_MAX_NUM
default 1

config B9X_BLE_CTRL_RF_POWER
default 3 if PM
default 9

choice B9X_BLE_CTRL_MAC_TYPE
default B9X_BLE_CTRL_MAC_TYPE_RANDOM_STATIC
endchoice
Expand Down Expand Up @@ -220,6 +224,10 @@ config OPENTHREAD_SLAAC
config OPENTHREAD_MANUAL_START
default y

config OPENTHREAD_DEFAULT_TX_POWER
default 3 if PM
default 9

config NET_TX_STACK_SIZE
default 554 if PM

Expand Down Expand Up @@ -247,18 +255,50 @@ config MBEDTLS_USER_CONFIG_ENABLE
config MBEDTLS_USER_CONFIG_FILE
default "telink-mbedtls-config.h"

config MBEDTLS_ENABLE_HEAP
default y

# TBD: Something wrong with this heap. Need to be investigated. Cirrently just set minimal size
config MBEDTLS_HEAP_SIZE
default 0

config OPENTHREAD_EXTERNAL_HEAP
default y

# getopt version
config GETOPT_LONG
default y

# Disable not used shell modules

config SHELL_WILDCARD
default n

config SHELL_VT100_COLORS
default n

config SHELL_STATS
default n

config KERNEL_SHELL
default n

config SENSOR_SHELL
default n

config DEVICE_SHELL
default n

config DATE_SHELL
default n

config DEVMEM_SHELL
default n

config MCUBOOT_SHELL
default n

config FLASH_SHELL
default n

config HWINFO_SHELL
default n

config PWM_SHELL
default n

config OPENTHREAD_SHELL
default n

endif
1 change: 1 addition & 0 deletions docs/examples/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ tv-app/**/README
:maxdepth: 1
tv-casting-app/**/README
tv-casting-app/APIs.md
```

## Window example
Expand Down
Original file line number Diff line number Diff line change
@@ -1,38 +1,6 @@
// This IDL was generated automatically by ZAP.
// It is for view/code review purposes only.

struct ModeTagStruct {
optional vendor_id mfgCode = 0;
enum16 value = 1;
}

struct ModeOptionStruct {
char_string<64> label = 0;
int8u mode = 1;
ModeTagStruct modeTags[] = 2;
}

struct ApplicationStruct {
int16u catalogVendorID = 0;
char_string applicationID = 1;
}

struct ErrorStateStruct {
enum8 errorStateID = 0;
optional char_string<64> errorStateLabel = 1;
optional char_string<64> errorStateDetails = 2;
}

struct LabelStruct {
char_string<16> label = 0;
char_string<16> value = 1;
}

struct OperationalStateStruct {
enum8 operationalStateID = 0;
optional char_string<64> operationalStateLabel = 1;
}

/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
enum EffectIdentifierEnum : ENUM8 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class AirQualitySensorManager
{
public:
// Delete copy constructor and assignment operator.
AirQualitySensorManager(const AirQualitySensorManager &) = delete;
AirQualitySensorManager(const AirQualitySensorManager &&) = delete;
AirQualitySensorManager(const AirQualitySensorManager &) = delete;
AirQualitySensorManager(const AirQualitySensorManager &&) = delete;
AirQualitySensorManager & operator=(const AirQualitySensorManager &) = delete;

static void InitInstance(EndpointId aEndpointId = 1)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,38 +1,6 @@
// This IDL was generated automatically by ZAP.
// It is for view/code review purposes only.

struct ModeTagStruct {
optional vendor_id mfgCode = 0;
enum16 value = 1;
}

struct ModeOptionStruct {
char_string<64> label = 0;
int8u mode = 1;
ModeTagStruct modeTags[] = 2;
}

struct ApplicationStruct {
int16u catalogVendorID = 0;
char_string applicationID = 1;
}

struct ErrorStateStruct {
enum8 errorStateID = 0;
optional char_string<64> errorStateLabel = 1;
optional char_string<64> errorStateDetails = 2;
}

struct LabelStruct {
char_string<16> label = 0;
char_string<16> value = 1;
}

struct OperationalStateStruct {
enum8 operationalStateID = 0;
optional char_string<64> operationalStateLabel = 1;
}

/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
enum EffectIdentifierEnum : ENUM8 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ class DishwasherModeDelegate : public ModeBase::Delegate
using ModeTagStructType = detail::Structs::ModeTagStruct::Type;
ModeTagStructType modeTagsNormal[1] = { { .value = to_underlying(ModeTag::kNormal) } };
ModeTagStructType modeTagsHeavy[2] = { { .value = to_underlying(ModeBase::ModeTag::kMax) },
{ .value = to_underlying(ModeTag::kHeavy) } };
{ .value = to_underlying(ModeTag::kHeavy) } };
ModeTagStructType modeTagsLight[3] = { { .value = to_underlying(ModeTag::kLight) },
{ .value = to_underlying(ModeBase::ModeTag::kNight) },
{ .value = to_underlying(ModeBase::ModeTag::kQuiet) } };
{ .value = to_underlying(ModeBase::ModeTag::kNight) },
{ .value = to_underlying(ModeBase::ModeTag::kQuiet) } };

const detail::Structs::ModeOptionStruct::Type kModeOptions[3] = {
detail::Structs::ModeOptionStruct::Type{ .label = CharSpan::fromCharString("Normal"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class LaundryWasherModeDelegate : public ModeBase::Delegate
{ .value = to_underlying(ModeBase::ModeTag::kNight) },
{ .value = to_underlying(ModeBase::ModeTag::kQuiet) } };
ModeTagStructType modeTagsHeavy[2] = { { .value = to_underlying(ModeBase::ModeTag::kMax) },
{ .value = to_underlying(ModeTag::kHeavy) } };
{ .value = to_underlying(ModeTag::kHeavy) } };
ModeTagStructType modeTagsWhites[1] = { { .value = to_underlying(ModeTag::kWhites) } };

const detail::Structs::ModeOptionStruct::Type kModeOptions[4] = {
Expand Down
Loading

0 comments on commit dd99d76

Please sign in to comment.