zap_generated: Add support to change the dynamic endpoint count through menuconfig

Added some menuconfig options which can be helpful for memory optimisations.
This commit is contained in:
Chirag Atal
2023-03-06 13:15:10 +05:30
parent d886f9c765
commit 1856e151b8
8 changed files with 67 additions and 28 deletions
@@ -21,6 +21,7 @@
#pragma once
#include <lib/core/CHIPConfig.h>
#include <sdkconfig.h>
#define GENERATED_ATTRIBUTES \
{}
@@ -46,7 +47,7 @@ static_assert(ATTRIBUTE_LARGEST <= CHIP_CONFIG_MAX_ATTRIBUTE_STORE_ELEMENT_SIZE,
#ifdef CHIP_DEVICE_CONFIG_DYNAMIC_ENDPOINT_COUNT
#undef CHIP_DEVICE_CONFIG_DYNAMIC_ENDPOINT_COUNT
#endif
#define CHIP_DEVICE_CONFIG_DYNAMIC_ENDPOINT_COUNT (16)
#define CHIP_DEVICE_CONFIG_DYNAMIC_ENDPOINT_COUNT CONFIG_ESP_MATTER_MAX_DYNAMIC_ENDPOINT_COUNT
// Array of endpoints that are supported, the data inside
// the array is the endpoint number.