Skip to content

Commit af944bd

Browse files
authored
Merge branch 'master' into granbery/atomic_write
2 parents a3ec295 + 295ad53 commit af944bd

File tree

14 files changed

+1109
-86
lines changed

14 files changed

+1109
-86
lines changed

config/esp32/components/chip/CMakeLists.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,11 @@ if (CONFIG_ENABLE_ENCRYPTED_OTA)
466466
list(APPEND chip_libraries $<TARGET_FILE:${esp_encrypted_img_lib}>)
467467
endif()
468468

469-
idf_component_get_property(main_lib main COMPONENT_LIB)
469+
# Let user set EXECUTABLE_COMPONENT_NAME and defaults to main if not specified
470+
if (NOT EXECUTABLE_COMPONENT_NAME)
471+
set(EXECUTABLE_COMPONENT_NAME "main")
472+
endif()
473+
idf_component_get_property(main_lib ${EXECUTABLE_COMPONENT_NAME} COMPONENT_LIB)
470474
list(APPEND chip_libraries $<TARGET_FILE:${main_lib}>)
471475

472476
if (CONFIG_SEC_CERT_DAC_PROVIDER)

config/telink/chip-module/Kconfig.defaults

+2-2
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,10 @@ config NET_IPV6_NBR_CACHE
286286
default n
287287

288288
config NET_MAX_CONN
289-
default 1
289+
default 1 if !WIFI
290290

291291
config NET_MAX_CONTEXTS
292-
default 1
292+
default 1 if !WIFI
293293

294294
config NET_CONFIG_INIT_TIMEOUT
295295
default 0

docs/guides/esp32/config_options.md

+15
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,18 @@ Configure below options through `idf.py menuconfig` and build the app.
1111
CONFIG_DISABLE_IPV4=y
1212
CONFIG_LWIP_IPV4=n
1313
```
14+
15+
### Executable component not in "main" component
16+
17+
The ESP-IDF framework allows renaming the main component, which can be useful if
18+
you want to place the app_main() function in a different component.
19+
20+
For required changes in the executable component, please refer to the
21+
[esp-idf documentation](https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-guides/build-system.html#renaming-main-component).
22+
23+
If you're building applications that support Matter and want to place app_main()
24+
in a component other than main, use the following command:
25+
26+
```
27+
idf.py -DEXECUTABLE_COMPONENT_NAME="your_component" build
28+
```

examples/all-clusters-app/all-clusters-common/all-clusters-app.matter

+35
Original file line numberDiff line numberDiff line change
@@ -9389,6 +9389,41 @@ endpoint 3 {
93899389
ram attribute clusterRevision default = 2;
93909390
}
93919391
}
9392+
endpoint 4 {
9393+
device type ma_genericswitch = 15, version 3;
9394+
9395+
9396+
server cluster Identify {
9397+
ram attribute identifyTime default = 0x0000;
9398+
ram attribute identifyType default = 0x00;
9399+
callback attribute generatedCommandList;
9400+
callback attribute acceptedCommandList;
9401+
callback attribute attributeList;
9402+
ram attribute featureMap default = 0;
9403+
ram attribute clusterRevision default = 4;
9404+
}
9405+
9406+
server cluster Descriptor {
9407+
callback attribute deviceTypeList;
9408+
callback attribute serverList;
9409+
callback attribute clientList;
9410+
callback attribute partsList;
9411+
callback attribute tagList;
9412+
callback attribute generatedCommandList;
9413+
callback attribute acceptedCommandList;
9414+
callback attribute attributeList;
9415+
callback attribute featureMap;
9416+
callback attribute clusterRevision;
9417+
}
9418+
9419+
server cluster Switch {
9420+
ram attribute numberOfPositions default = 2;
9421+
ram attribute currentPosition default = 0;
9422+
ram attribute multiPressMax default = 3;
9423+
ram attribute featureMap default = 30;
9424+
ram attribute clusterRevision default = 2;
9425+
}
9426+
}
93929427
endpoint 65534 {
93939428
device type ma_secondary_network_interface = 25, version 1;
93949429

0 commit comments

Comments
 (0)