Skip to content

Commit

Permalink
Merge branch 'master' into pr-26506
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple committed May 18, 2023
2 parents 3d17673 + a295e01 commit 966eec1
Show file tree
Hide file tree
Showing 132 changed files with 16,696 additions and 8,227 deletions.
6 changes: 0 additions & 6 deletions build/chip/chip_codegen.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -162,19 +162,13 @@ function(chip_zapgen TARGET_NAME)
# out links of template files and zap files and such
SET(EXTRA_DEPENDENCIES
"${CHIP_ROOT}/src/app/zap-templates/partials/header.zapt"
"${CHIP_ROOT}/src/app/zap-templates/partials/idl/command_request_response.zapt"
"${CHIP_ROOT}/src/app/zap-templates/partials/idl/command_request_struct.zapt"
"${CHIP_ROOT}/src/app/zap-templates/partials/idl/command_response_struct.zapt"
"${CHIP_ROOT}/src/app/zap-templates/partials/idl/structure_definition.zapt"
"${CHIP_ROOT}/src/app/zap-templates/partials/idl/structure_member.zapt"
"${CHIP_ROOT}/src/app/zap-templates/partials/im_command_handler_cluster_commands.zapt"
"${CHIP_ROOT}/src/app/zap-templates/templates/app/access.zapt"
"${CHIP_ROOT}/src/app/zap-templates/templates/app/CHIPClientCallbacks.zapt"
"${CHIP_ROOT}/src/app/zap-templates/templates/app/CHIPClusters.zapt"
"${CHIP_ROOT}/src/app/zap-templates/templates/app/endpoint_config.zapt"
"${CHIP_ROOT}/src/app/zap-templates/templates/app/gen_config.zapt"
"${CHIP_ROOT}/src/app/zap-templates/templates/app/im-cluster-command-handler.zapt"
"${CHIP_ROOT}/src/app/zap-templates/templates/app/MatterIDL.zapt"
)
SET(OUTPUT_SUBDIR "zap-generated")
else()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2361,6 +2361,7 @@ server cluster DoorLock = 257 {
kNotFullyLocked = 0;
kLocked = 1;
kUnlocked = 2;
kUnlatched = 3;
}

enum DlLockType : ENUM8 {
Expand All @@ -2375,6 +2376,7 @@ server cluster DoorLock = 257 {
kInterconnectedLock = 8;
kDeadLatch = 9;
kDoorFurniture = 10;
kEurocylinder = 11;
}

enum DlStatus : ENUM8 {
Expand Down Expand Up @@ -2466,6 +2468,7 @@ server cluster DoorLock = 257 {
kUnlock = 1;
kNonAccessUserEvent = 2;
kForcedUserEvent = 3;
kUnlatch = 4;
}

enum OperatingModeEnum : ENUM8 {
Expand Down Expand Up @@ -2654,6 +2657,7 @@ server cluster DoorLock = 257 {
kNotification = 0x200;
kYearDayAccessSchedules = 0x400;
kHolidaySchedules = 0x800;
kUnbolt = 0x1000;
}

struct CredentialStruct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2091,6 +2091,7 @@ server cluster DoorLock = 257 {
kNotFullyLocked = 0;
kLocked = 1;
kUnlocked = 2;
kUnlatched = 3;
}

enum DlLockType : ENUM8 {
Expand All @@ -2105,6 +2106,7 @@ server cluster DoorLock = 257 {
kInterconnectedLock = 8;
kDeadLatch = 9;
kDoorFurniture = 10;
kEurocylinder = 11;
}

enum DlStatus : ENUM8 {
Expand Down Expand Up @@ -2196,6 +2198,7 @@ server cluster DoorLock = 257 {
kUnlock = 1;
kNonAccessUserEvent = 2;
kForcedUserEvent = 3;
kUnlatch = 4;
}

enum OperatingModeEnum : ENUM8 {
Expand Down Expand Up @@ -2384,6 +2387,7 @@ server cluster DoorLock = 257 {
kNotification = 0x200;
kYearDayAccessSchedules = 0x400;
kHolidaySchedules = 0x800;
kUnbolt = 0x1000;
}

struct CredentialStruct {
Expand Down
4 changes: 4 additions & 0 deletions examples/android/CHIPTool/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ android {
targetCompatibility JavaVersion.VERSION_1_8
}

packagingOptions {
exclude 'META-INF/main.kotlin_module'
}

buildFeatures {
viewBinding = true
}
Expand Down
4 changes: 4 additions & 0 deletions examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1231,6 +1231,7 @@ server cluster DoorLock = 257 {
kNotFullyLocked = 0;
kLocked = 1;
kUnlocked = 2;
kUnlatched = 3;
}

enum DlLockType : ENUM8 {
Expand All @@ -1245,6 +1246,7 @@ server cluster DoorLock = 257 {
kInterconnectedLock = 8;
kDeadLatch = 9;
kDoorFurniture = 10;
kEurocylinder = 11;
}

enum DlStatus : ENUM8 {
Expand Down Expand Up @@ -1336,6 +1338,7 @@ server cluster DoorLock = 257 {
kUnlock = 1;
kNonAccessUserEvent = 2;
kForcedUserEvent = 3;
kUnlatch = 4;
}

enum OperatingModeEnum : ENUM8 {
Expand Down Expand Up @@ -1524,6 +1527,7 @@ server cluster DoorLock = 257 {
kNotification = 0x200;
kYearDayAccessSchedules = 0x400;
kHolidaySchedules = 0x800;
kUnbolt = 0x1000;
}

struct CredentialStruct {
Expand Down
8 changes: 0 additions & 8 deletions examples/chip-tool/templates/ComplexArgumentParser-src.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,8 @@

#include <commands/clusters/ComplexArgument.h>

{{#zcl_structs}}
{{#if has_more_than_one_cluster}}
{{> struct_parser_impl namespace="detail"}}
{{/if}}
{{/zcl_structs}}

{{#zcl_clusters}}
{{#zcl_structs}}
{{#unless has_more_than_one_cluster}}
{{> struct_parser_impl namespace=(as_camel_cased ../name false)}}
{{/unless}}
{{/zcl_structs}}
{{/zcl_clusters}}
8 changes: 0 additions & 8 deletions examples/chip-tool/templates/ComplexArgumentParser.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,8 @@
#include <lib/core/CHIPError.h>
#include <app-common/zap-generated/cluster-objects.h>

{{#zcl_structs}}
{{#if has_more_than_one_cluster}}
{{> struct_parser_decl namespace="detail"}}
{{/if}}
{{/zcl_structs}}

{{#zcl_clusters}}
{{#zcl_structs}}
{{#unless has_more_than_one_cluster}}
{{> struct_parser_decl namespace=(as_camel_cased ../name false)}}
{{/unless}}
{{/zcl_structs}}
{{/zcl_clusters}}
8 changes: 0 additions & 8 deletions examples/chip-tool/templates/logging/DataModelLogger-src.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,9 @@

using namespace chip::app::Clusters;

{{#zcl_structs}}
{{#if has_more_than_one_cluster}}
{{> struct_logger_impl namespace="detail"}}
{{/if}}
{{/zcl_structs}}

{{#zcl_clusters}}
{{#zcl_structs}}
{{#unless has_more_than_one_cluster}}
{{> struct_logger_impl namespace=(as_camel_cased ../name false)}}
{{/unless}}
{{/zcl_structs}}
{{/zcl_clusters}}

Expand Down
8 changes: 0 additions & 8 deletions examples/chip-tool/templates/logging/DataModelLogger.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,9 @@
#include <lib/core/CHIPError.h>
#include <app-common/zap-generated/cluster-objects.h>

{{#zcl_structs}}
{{#if has_more_than_one_cluster}}
{{> struct_logger_decl namespace="detail"}}
{{/if}}
{{/zcl_structs}}

{{#zcl_clusters}}
{{#zcl_structs}}
{{#unless has_more_than_one_cluster}}
{{> struct_logger_decl namespace=(as_camel_cased ../name false)}}
{{/unless}}
{{/zcl_structs}}
{{/zcl_clusters}}

Expand Down
2 changes: 2 additions & 0 deletions examples/lock-app/genio/src/LockManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,8 @@ const char * LockManager::lockStateToString(DlLockState lockState) const
return "Locked";
case DlLockState::kUnlocked:
return "Unlocked";
case DlLockState::kUnlatched:
return "Unlatched";
case DlLockState::kUnknownEnumValue:
break;
}
Expand Down
2 changes: 2 additions & 0 deletions examples/lock-app/infineon/cyw30739/src/LockManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,8 @@ const char * LockManager::lockStateToString(DlLockState lockState) const
return "Locked";
case DlLockState::kUnlocked:
return "Unlocked";
case DlLockState::kUnlatched:
return "Unlatched";
case DlLockState::kUnknownEnumValue:
break;
}
Expand Down
2 changes: 2 additions & 0 deletions examples/lock-app/infineon/psoc6/src/LockManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,8 @@ const char * LockManager::lockStateToString(DlLockState lockState) const
return "Locked";
case DlLockState::kUnlocked:
return "Unlocked";
case DlLockState::kUnlatched:
return "Unlatched";
case DlLockState::kUnknownEnumValue:
break;
}
Expand Down
4 changes: 4 additions & 0 deletions examples/lock-app/lock-common/lock-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1678,6 +1678,7 @@ server cluster DoorLock = 257 {
kNotFullyLocked = 0;
kLocked = 1;
kUnlocked = 2;
kUnlatched = 3;
}

enum DlLockType : ENUM8 {
Expand All @@ -1692,6 +1693,7 @@ server cluster DoorLock = 257 {
kInterconnectedLock = 8;
kDeadLatch = 9;
kDoorFurniture = 10;
kEurocylinder = 11;
}

enum DlStatus : ENUM8 {
Expand Down Expand Up @@ -1783,6 +1785,7 @@ server cluster DoorLock = 257 {
kUnlock = 1;
kNonAccessUserEvent = 2;
kForcedUserEvent = 3;
kUnlatch = 4;
}

enum OperatingModeEnum : ENUM8 {
Expand Down Expand Up @@ -1971,6 +1974,7 @@ server cluster DoorLock = 257 {
kNotification = 0x200;
kYearDayAccessSchedules = 0x400;
kHolidaySchedules = 0x800;
kUnbolt = 0x1000;
}

struct CredentialStruct {
Expand Down
2 changes: 2 additions & 0 deletions examples/lock-app/lock-common/src/LockEndpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,8 @@ const char * LockEndpoint::lockStateToString(DlLockState lockState) const
return "Locked";
case DlLockState::kUnlocked:
return "Unlocked";
case DlLockState::kUnlatched:
return "Unlatched";
case DlLockState::kUnknownEnumValue:
break;
}
Expand Down
4 changes: 4 additions & 0 deletions examples/lock-app/nxp/zap/lock-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,7 @@ server cluster DoorLock = 257 {
kNotFullyLocked = 0;
kLocked = 1;
kUnlocked = 2;
kUnlatched = 3;
}

enum DlLockType : ENUM8 {
Expand All @@ -995,6 +996,7 @@ server cluster DoorLock = 257 {
kInterconnectedLock = 8;
kDeadLatch = 9;
kDoorFurniture = 10;
kEurocylinder = 11;
}

enum DlStatus : ENUM8 {
Expand Down Expand Up @@ -1086,6 +1088,7 @@ server cluster DoorLock = 257 {
kUnlock = 1;
kNonAccessUserEvent = 2;
kForcedUserEvent = 3;
kUnlatch = 4;
}

enum OperatingModeEnum : ENUM8 {
Expand Down Expand Up @@ -1274,6 +1277,7 @@ server cluster DoorLock = 257 {
kNotification = 0x200;
kYearDayAccessSchedules = 0x400;
kHolidaySchedules = 0x800;
kUnbolt = 0x1000;
}

struct CredentialStruct {
Expand Down
4 changes: 4 additions & 0 deletions examples/lock-app/qpg/zap/lock.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1290,6 +1290,7 @@ server cluster DoorLock = 257 {
kNotFullyLocked = 0;
kLocked = 1;
kUnlocked = 2;
kUnlatched = 3;
}

enum DlLockType : ENUM8 {
Expand All @@ -1304,6 +1305,7 @@ server cluster DoorLock = 257 {
kInterconnectedLock = 8;
kDeadLatch = 9;
kDoorFurniture = 10;
kEurocylinder = 11;
}

enum DlStatus : ENUM8 {
Expand Down Expand Up @@ -1395,6 +1397,7 @@ server cluster DoorLock = 257 {
kUnlock = 1;
kNonAccessUserEvent = 2;
kForcedUserEvent = 3;
kUnlatch = 4;
}

enum OperatingModeEnum : ENUM8 {
Expand Down Expand Up @@ -1583,6 +1586,7 @@ server cluster DoorLock = 257 {
kNotification = 0x200;
kYearDayAccessSchedules = 0x400;
kHolidaySchedules = 0x800;
kUnbolt = 0x1000;
}

struct CredentialStruct {
Expand Down
2 changes: 2 additions & 0 deletions examples/lock-app/silabs/SiWx917/src/LockManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,8 @@ const char * LockManager::lockStateToString(DlLockState lockState) const
return "Locked";
case DlLockState::kUnlocked:
return "Unlocked";
case DlLockState::kUnlatched:
return "Unlatched";
case DlLockState::kUnknownEnumValue:
break;
}
Expand Down
2 changes: 2 additions & 0 deletions examples/lock-app/silabs/efr32/src/LockManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,8 @@ const char * LockManager::lockStateToString(DlLockState lockState) const
return "Locked";
case DlLockState::kUnlocked:
return "Unlocked";
case DlLockState::kUnlatched:
return "Unlatched";
case DlLockState::kUnknownEnumValue:
break;
}
Expand Down
2 changes: 2 additions & 0 deletions examples/platform/esp32/lock/BoltLockManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,8 @@ const char * BoltLockManager::lockStateToString(DlLockState lockState) const
return "Locked";
case DlLockState::kUnlocked:
return "Unlocked";
case DlLockState::kUnlatched:
return "Unlatched";
case DlLockState::kUnknownEnumValue:
break;
}
Expand Down
2 changes: 2 additions & 0 deletions examples/platform/silabs/SiWx917/SiWx917/rsi_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
#include "rsi_driver.h"
#include "rsi_wlan_non_rom.h"

#include "silabs_utils.h"

#include "rsi_bootup_config.h"
#include "rsi_common_apis.h"
#include "rsi_data_types.h"
Expand Down
2 changes: 2 additions & 0 deletions examples/platform/silabs/SiWx917/SiWx917/wfx_rsi_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

#include "sl_status.h"

#include "silabs_utils.h"

#include "FreeRTOS.h"
#include "event_groups.h"
#include "task.h"
Expand Down
2 changes: 0 additions & 2 deletions examples/platform/silabs/silabs_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
*/

#include "silabs_utils.h"
#include "init_efrPlatform.h"
#include "sl_system_kernel.h"

#include <matter_config.h>

Expand Down
2 changes: 1 addition & 1 deletion integrations/docker/images/chip-cert-bins/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ARG COMMITHASH=7b99e6399c6069037c613782d78132c69b9dcabb
# ZAP Development install, so that it runs on both x64 and arm64
# Generally this should match with the ZAP version that is used for codegen within the
# specified SHA
ARG ZAP_VERSION=v2023.04.27-nightly
ARG ZAP_VERSION=v2023.05.16-nightly

# Ensure TARGETPLATFORM is set
RUN case ${TARGETPLATFORM} in \
Expand Down
Loading

0 comments on commit 966eec1

Please sign in to comment.