Skip to content

Commit

Permalink
Merge branch 'master' into esp32/test-event-trigger-enable-key
Browse files Browse the repository at this point in the history
  • Loading branch information
wqx6 authored Sep 26, 2022
2 parents 6b38a48 + dc66d4e commit 5f7be02
Show file tree
Hide file tree
Showing 181 changed files with 10,323 additions and 10,880 deletions.
12 changes: 9 additions & 3 deletions config/esp32/components/chip/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -520,32 +520,38 @@ menu "CHIP Device Layer"
visible if ENABLE_ETHERNET_TELEMETRY

config GPIO_RANGE_MIN
int
int
depends on ENABLE_ETHERNET_TELEMETRY
default 0

config GPIO_RANGE_MAX
int
int
depends on ENABLE_ETHERNET_TELEMETRY
default 33 if IDF_TARGET_ESP32
default 46 if IDF_TARGET_ESP32S2
default 19 if IDF_TARGET_ESP32C3
default 48 if IDF_TARGET_ESP32S3
default 26 if IDF_TARGET_ESP32H2

config ETH_MDC_GPIO
int "SMI MDC GPIO number"
depends on ENABLE_ETHERNET_TELEMETRY
range GPIO_RANGE_MIN GPIO_RANGE_MAX
default 23 if ENABLE_ETHERNET_TELEMETRY
default 23 if ENABLE_ETHERNET_TELEMETRY
help
Set the GPIO number used by SMI MDC.

config ETH_MDIO_GPIO
int "SMI MDIO GPIO number"
depends on ENABLE_ETHERNET_TELEMETRY
range GPIO_RANGE_MIN GPIO_RANGE_MAX
default 18 if ENABLE_ETHERNET_TELEMETRY
help
Set the GPIO number used by SMI MDIO.

config ETH_PHY_RST_GPIO
int "PHY Reset GPIO number"
depends on ENABLE_ETHERNET_TELEMETRY
range -1 GPIO_RANGE_MAX
default 5 if ENABLE_ETHERNET_TELEMETRY
help
Expand Down
5 changes: 4 additions & 1 deletion docs/guides/darwin.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,10 @@ requirements
[Release Notes](https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-15_6-release-notes)
for currently known issues.
- Please refer to the iOS/iPadOS 16.0
[Release Notes](https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-16-release-notes)
[Release Notes](https://developer.apple.com/documentation/ios-ipados-release-notes/ios-16-release-notes)
for currently known issues.
- Please refer to the iOS/iPadOS 16.1
[Release Notes](https://developer.apple.com/documentation/ios-ipados-release-notes/ios-16_1-release-notes)
for currently known issues.
- Further issues should be reported
[here](https://github.com/project-chip/connectedhomeip/issues)
Original file line number Diff line number Diff line change
Expand Up @@ -1475,6 +1475,14 @@ server cluster EthernetNetworkDiagnostics = 55 {
}

server cluster Switch = 59 {
bitmap SwitchFeature : BITMAP32 {
kLatchingSwitch = 0x1;
kMomentarySwitch = 0x2;
kMomentarySwitchRelease = 0x4;
kMomentarySwitchLongPress = 0x8;
kMomentarySwitchMultiPress = 0x10;
}

info event SwitchLatched = 0 {
INT8U newPosition = 0;
}
Expand Down Expand Up @@ -3168,6 +3176,11 @@ server cluster MediaPlayback = 1286 {
kBuffering = 3;
}

bitmap MediaPlaybackFeature : BITMAP32 {
kAdvancedSeek = 0x1;
kVariableSpeed = 0x2;
}

readonly attribute PlaybackStateEnum currentState = 0;
readonly attribute nullable epoch_us startTime = 1;
readonly attribute nullable int64u duration = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1326,6 +1326,14 @@ server cluster EthernetNetworkDiagnostics = 55 {
}

server cluster Switch = 59 {
bitmap SwitchFeature : BITMAP32 {
kLatchingSwitch = 0x1;
kMomentarySwitch = 0x2;
kMomentarySwitchRelease = 0x4;
kMomentarySwitchLongPress = 0x8;
kMomentarySwitchMultiPress = 0x10;
}

info event SwitchLatched = 0 {
INT8U newPosition = 0;
}
Expand Down Expand Up @@ -2565,6 +2573,11 @@ server cluster MediaPlayback = 1286 {
kBuffering = 3;
}

bitmap MediaPlaybackFeature : BITMAP32 {
kAdvancedSeek = 0x1;
kVariableSpeed = 0x2;
}

readonly attribute PlaybackStateEnum currentState = 0;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
Expand Down
8 changes: 8 additions & 0 deletions examples/bridge-app/bridge-common/bridge-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1162,6 +1162,14 @@ server cluster EthernetNetworkDiagnostics = 55 {
}

server cluster Switch = 59 {
bitmap SwitchFeature : BITMAP32 {
kLatchingSwitch = 0x1;
kMomentarySwitch = 0x2;
kMomentarySwitchRelease = 0x4;
kMomentarySwitchLongPress = 0x8;
kMomentarySwitchMultiPress = 0x10;
}

info event SwitchLatched = 0 {
INT8U newPosition = 0;
}
Expand Down
8 changes: 3 additions & 5 deletions examples/bridge-app/linux/Device.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
*
* Copyright (c) 2021 Project CHIP Authors
* Copyright (c) 2021-2022 Project CHIP Authors
* Copyright (c) 2019 Google LLC.
* All rights reserved.
*
Expand All @@ -24,11 +24,9 @@

using namespace chip::app::Clusters::Actions;

// LightingManager LightingManager::sLight;

Device::Device(const char * szDeviceName, std::string szLocation)
{
strncpy(mName, szDeviceName, sizeof(mName));
chip::Platform::CopyString(mName, szDeviceName);
mLocation = szLocation;
mReachable = false;
mEndpointId = 0;
Expand Down Expand Up @@ -66,7 +64,7 @@ void Device::SetName(const char * szName)

ChipLogProgress(DeviceLayer, "Device[%s]: New Name=\"%s\"", mName, szName);

strncpy(mName, szName, sizeof(mName));
chip::Platform::CopyString(mName, szName);

if (changed)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1136,6 +1136,14 @@ server cluster EthernetNetworkDiagnostics = 55 {
}

server cluster Switch = 59 {
bitmap SwitchFeature : BITMAP32 {
kLatchingSwitch = 0x1;
kMomentarySwitch = 0x2;
kMomentarySwitchRelease = 0x4;
kMomentarySwitchLongPress = 0x8;
kMomentarySwitchMultiPress = 0x10;
}

info event SwitchLatched = 0 {
INT8U newPosition = 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1015,6 +1015,14 @@ server cluster EthernetNetworkDiagnostics = 55 {
}

server cluster Switch = 59 {
bitmap SwitchFeature : BITMAP32 {
kLatchingSwitch = 0x1;
kMomentarySwitch = 0x2;
kMomentarySwitchRelease = 0x4;
kMomentarySwitchLongPress = 0x8;
kMomentarySwitchMultiPress = 0x10;
}

info event SwitchLatched = 0 {
INT8U newPosition = 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,14 @@ server cluster EthernetNetworkDiagnostics = 55 {
}

server cluster Switch = 59 {
bitmap SwitchFeature : BITMAP32 {
kLatchingSwitch = 0x1;
kMomentarySwitch = 0x2;
kMomentarySwitchRelease = 0x4;
kMomentarySwitchLongPress = 0x8;
kMomentarySwitchMultiPress = 0x10;
}

info event SwitchLatched = 0 {
INT8U newPosition = 0;
}
Expand Down
8 changes: 8 additions & 0 deletions examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,14 @@ server cluster EthernetNetworkDiagnostics = 55 {
}

server cluster Switch = 59 {
bitmap SwitchFeature : BITMAP32 {
kLatchingSwitch = 0x1;
kMomentarySwitch = 0x2;
kMomentarySwitchRelease = 0x4;
kMomentarySwitchLongPress = 0x8;
kMomentarySwitchMultiPress = 0x10;
}

info event SwitchLatched = 0 {
INT8U newPosition = 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,14 @@ server cluster EthernetNetworkDiagnostics = 55 {
}

server cluster Switch = 59 {
bitmap SwitchFeature : BITMAP32 {
kLatchingSwitch = 0x1;
kMomentarySwitch = 0x2;
kMomentarySwitchRelease = 0x4;
kMomentarySwitchLongPress = 0x8;
kMomentarySwitchMultiPress = 0x10;
}

info event SwitchLatched = 0 {
INT8U newPosition = 0;
}
Expand Down
8 changes: 8 additions & 0 deletions examples/chef/devices/rootnode_fan_7N2TobIlOX.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,14 @@ server cluster EthernetNetworkDiagnostics = 55 {
}

server cluster Switch = 59 {
bitmap SwitchFeature : BITMAP32 {
kLatchingSwitch = 0x1;
kMomentarySwitch = 0x2;
kMomentarySwitchRelease = 0x4;
kMomentarySwitchLongPress = 0x8;
kMomentarySwitchMultiPress = 0x10;
}

info event SwitchLatched = 0 {
INT8U newPosition = 0;
}
Expand Down
8 changes: 8 additions & 0 deletions examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,14 @@ server cluster EthernetNetworkDiagnostics = 55 {
}

server cluster Switch = 59 {
bitmap SwitchFeature : BITMAP32 {
kLatchingSwitch = 0x1;
kMomentarySwitch = 0x2;
kMomentarySwitchRelease = 0x4;
kMomentarySwitchLongPress = 0x8;
kMomentarySwitchMultiPress = 0x10;
}

info event SwitchLatched = 0 {
INT8U newPosition = 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,14 @@ server cluster EthernetNetworkDiagnostics = 55 {
}

server cluster Switch = 59 {
bitmap SwitchFeature : BITMAP32 {
kLatchingSwitch = 0x1;
kMomentarySwitch = 0x2;
kMomentarySwitchRelease = 0x4;
kMomentarySwitchLongPress = 0x8;
kMomentarySwitchMultiPress = 0x10;
}

info event SwitchLatched = 0 {
INT8U newPosition = 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,14 @@ server cluster EthernetNetworkDiagnostics = 55 {
}

server cluster Switch = 59 {
bitmap SwitchFeature : BITMAP32 {
kLatchingSwitch = 0x1;
kMomentarySwitch = 0x2;
kMomentarySwitchRelease = 0x4;
kMomentarySwitchLongPress = 0x8;
kMomentarySwitchMultiPress = 0x10;
}

info event SwitchLatched = 0 {
INT8U newPosition = 0;
}
Expand Down
8 changes: 8 additions & 0 deletions examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,14 @@ server cluster EthernetNetworkDiagnostics = 55 {
}

server cluster Switch = 59 {
bitmap SwitchFeature : BITMAP32 {
kLatchingSwitch = 0x1;
kMomentarySwitch = 0x2;
kMomentarySwitchRelease = 0x4;
kMomentarySwitchLongPress = 0x8;
kMomentarySwitchMultiPress = 0x10;
}

info event SwitchLatched = 0 {
INT8U newPosition = 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,14 @@ server cluster EthernetNetworkDiagnostics = 55 {
}

server cluster Switch = 59 {
bitmap SwitchFeature : BITMAP32 {
kLatchingSwitch = 0x1;
kMomentarySwitch = 0x2;
kMomentarySwitchRelease = 0x4;
kMomentarySwitchLongPress = 0x8;
kMomentarySwitchMultiPress = 0x10;
}

info event SwitchLatched = 0 {
INT8U newPosition = 0;
}
Expand Down
8 changes: 8 additions & 0 deletions examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,14 @@ server cluster EthernetNetworkDiagnostics = 55 {
}

server cluster Switch = 59 {
bitmap SwitchFeature : BITMAP32 {
kLatchingSwitch = 0x1;
kMomentarySwitch = 0x2;
kMomentarySwitchRelease = 0x4;
kMomentarySwitchLongPress = 0x8;
kMomentarySwitchMultiPress = 0x10;
}

info event SwitchLatched = 0 {
INT8U newPosition = 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1329,6 +1329,14 @@ server cluster EthernetNetworkDiagnostics = 55 {
}

server cluster Switch = 59 {
bitmap SwitchFeature : BITMAP32 {
kLatchingSwitch = 0x1;
kMomentarySwitch = 0x2;
kMomentarySwitchRelease = 0x4;
kMomentarySwitchLongPress = 0x8;
kMomentarySwitchMultiPress = 0x10;
}

info event SwitchLatched = 0 {
INT8U newPosition = 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,14 @@ server cluster EthernetNetworkDiagnostics = 55 {
}

server cluster Switch = 59 {
bitmap SwitchFeature : BITMAP32 {
kLatchingSwitch = 0x1;
kMomentarySwitch = 0x2;
kMomentarySwitchRelease = 0x4;
kMomentarySwitchLongPress = 0x8;
kMomentarySwitchMultiPress = 0x10;
}

info event SwitchLatched = 0 {
INT8U newPosition = 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,14 @@ server cluster EthernetNetworkDiagnostics = 55 {
}

server cluster Switch = 59 {
bitmap SwitchFeature : BITMAP32 {
kLatchingSwitch = 0x1;
kMomentarySwitch = 0x2;
kMomentarySwitchRelease = 0x4;
kMomentarySwitchLongPress = 0x8;
kMomentarySwitchMultiPress = 0x10;
}

info event SwitchLatched = 0 {
INT8U newPosition = 0;
}
Expand Down
8 changes: 8 additions & 0 deletions examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1150,6 +1150,14 @@ server cluster EthernetNetworkDiagnostics = 55 {
}

server cluster Switch = 59 {
bitmap SwitchFeature : BITMAP32 {
kLatchingSwitch = 0x1;
kMomentarySwitch = 0x2;
kMomentarySwitchRelease = 0x4;
kMomentarySwitchLongPress = 0x8;
kMomentarySwitchMultiPress = 0x10;
}

info event SwitchLatched = 0 {
INT8U newPosition = 0;
}
Expand Down
Loading

0 comments on commit 5f7be02

Please sign in to comment.