Skip to content

Commit 5568430

Browse files
shubhamdppull[bot]
authored andcommitted
[ESP32] options to configure bg task priority, size, event queue size (#27448)
I missed adding them in #27348
1 parent 5debc6b commit 5568430

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

config/esp32/components/chip/Kconfig

+25
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,31 @@ menu "CHIP Device Layer"
288288
When this option is enabled, the main matter task can delegate some
289289
time consuming operations to a background task so that the main matter
290290
task is not blocked and can process other work.
291+
292+
config BG_CHIP_TASK_STACK_SIZE
293+
depends on ENABLE_BG_EVENT_PROCESSING
294+
int "Background CHIP Task Stack Size"
295+
range 0 8192
296+
default 6144
297+
help
298+
The size (in bytes) of the background CHIP task stack.
299+
300+
config BG_CHIP_TASK_PRIORITY
301+
depends on ENABLE_BG_EVENT_PROCESSING
302+
int "Background CHIP Task Priority"
303+
range 0 256
304+
default 1
305+
help
306+
The priority of the background CHIP task.
307+
308+
config BG_MAX_EVENT_QUEUE_SIZE
309+
depends on ENABLE_BG_EVENT_PROCESSING
310+
int "Max Event Queue Size"
311+
range 1 8
312+
default 1
313+
help
314+
The maximum number of events that can be held in the background CHIP Platform event queue.
315+
291316
endmenu
292317

293318
menu "Device Identification Options"

src/platform/ESP32/CHIPDevicePlatformConfig.h

+5
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,9 @@
100100
#define CHIP_DEVICE_CONFIG_ENABLE_DEVICE_INSTANCE_INFO_PROVIDER CONFIG_ENABLE_ESP32_DEVICE_INSTANCE_INFO_PROVIDER
101101
#define CHIP_DEVICE_CONFIG_DISCOVERY_TIMEOUT_SECS CONFIG_CHIP_DISCOVERY_TIMEOUT_SECS
102102
#define CHIP_DEVICE_CONFIG_ENABLE_BOTH_COMMISSIONER_AND_COMMISSIONEE CONFIG_ENABLE_ESP32_BLE_CONTROLLER
103+
104+
// Options for background chip task
103105
#define CHIP_DEVICE_CONFIG_ENABLE_BG_EVENT_PROCESSING CONFIG_ENABLE_BG_EVENT_PROCESSING
106+
#define CHIP_DEVICE_CONFIG_BG_TASK_PRIORITY CONFIG_BG_CHIP_TASK_PRIORITY
107+
#define CHIP_DEVICE_CONFIG_BG_MAX_EVENT_QUEUE_SIZE CONFIG_BG_MAX_EVENT_QUEUE_SIZE
108+
#define CHIP_DEVICE_CONFIG_BG_TASK_STACK_SIZE CONFIG_BG_CHIP_TASK_STACK_SIZE

0 commit comments

Comments
 (0)