File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -279,22 +279,30 @@ config USE_EMOTION_REMOTE
279
279
280
280
config USE_AUDIO_CODEC_ENCODE_OPUS
281
281
depends on BOARD_TYPE_DOIT_AI_01_KIT || BOARD_TYPE_DOIT_AI_01_KIT_LCD || BOARD_TYPE_DOIT_AI_02_KIT_LCD
282
+ select USE_CUSTOM_TASK_STACK_SIZE
282
283
bool "use audio codec encode opus"
283
284
default y
284
285
285
286
config USE_AUDIO_CODEC_DECODE_OPUS
286
287
depends on BOARD_TYPE_DOIT_AI_01_KIT || BOARD_TYPE_DOIT_AI_01_KIT_LCD || BOARD_TYPE_DOIT_AI_02_KIT_LCD
288
+ select USE_CUSTOM_TASK_STACK_SIZE
287
289
bool "use audio codec decode opus"
288
290
default n
289
291
292
+ config USE_CUSTOM_TASK_STACK_SIZE
293
+ bool "use custom task stack size"
294
+ default n
295
+
290
296
config TACKGROUND_TASK_STACK_SIZE
297
+ depends on USE_CUSTOM_TASK_STACK_SIZE
291
298
int "background task stack size"
292
299
default 2048 if ((IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32C3) && (USE_AUDIO_CODEC_ENCODE_OPUS && USE_AUDIO_CODEC_DECODE_OPUS))
293
300
default 8960 if ((IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32C3) && (USE_AUDIO_CODEC_ENCODE_OPUS))
294
301
default 26624 if ((IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32C3))
295
302
default 32768
296
303
297
304
config AUDIO_LOOP_TASK_STACK_SIZE
305
+ depends on USE_CUSTOM_TASK_STACK_SIZE
298
306
int "audio_loop task stack size"
299
307
default 2048 if IDF_TARGET_ESP32C2
300
308
default 8192
Original file line number Diff line number Diff line change 28
28
#error "audoio_processor or wake_word_detect need opus encoder"
29
29
#endif
30
30
31
+ #ifndef CONFIG_TACKGROUND_TASK_STACK_SIZE
32
+ #define CONFIG_TACKGROUND_TASK_STACK_SIZE (4096 *8 )
33
+ #endif
34
+
35
+ #ifndef CONFIG_AUDIO_LOOP_TASK_STACK_SIZE
36
+ #define CONFIG_AUDIO_LOOP_TASK_STACK_SIZE (4096 *2 )
37
+ #endif
38
+
31
39
static const char * const STATE_STRINGS[] = {
32
40
" unknown" ,
33
41
" starting" ,
You can’t perform that action at this time.
0 commit comments