summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseteiro <[email protected]>2026-11-12 14:01:11 +0800
committerRbb666 <[email protected]>2026-11-13 09:27:05 +0800
commitfddf97eaa140fc37f18b85b06a0d7ba77046b90d (patch)
treed0185f3b0c5b660504eb4418c75f532d62101ec1
parenta5a9242efb7c43b0dd264ec1e6d4046cdc67913b (diff)
[drivers][sdio] raise default sdio irq thread stack
Fix #11694 Give RT_SDIO_STACK_SIZE an independent default of 2048 instead of following IDLE_THREAD_STACK_SIZE. Keep the dev_sdio.c fallback in sync for configurations that do not define the option.
-rw-r--r--components/drivers/sdio/Kconfig2
-rw-r--r--components/drivers/sdio/dev_sdio.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/sdio/Kconfig b/components/drivers/sdio/Kconfig
index 232a65efd9..7bcd249b2b 100644
--- a/components/drivers/sdio/Kconfig
+++ b/components/drivers/sdio/Kconfig
@@ -6,7 +6,7 @@ menuconfig RT_USING_SDIO
if RT_USING_SDIO
config RT_SDIO_STACK_SIZE
int "The stack size for sdio irq thread"
- default IDLE_THREAD_STACK_SIZE
+ default 2048
config RT_SDIO_THREAD_PRIORITY
int "The priority level value of sdio irq thread"
diff --git a/components/drivers/sdio/dev_sdio.c b/components/drivers/sdio/dev_sdio.c
index ebbff7c3ab..94fa0e868d 100644
--- a/components/drivers/sdio/dev_sdio.c
+++ b/components/drivers/sdio/dev_sdio.c
@@ -23,7 +23,7 @@
#include <rtdbg.h>
#ifndef RT_SDIO_STACK_SIZE
-#define RT_SDIO_STACK_SIZE 512
+#define RT_SDIO_STACK_SIZE 2048
#endif
#ifndef RT_SDIO_THREAD_PRIORITY
#define RT_SDIO_THREAD_PRIORITY 0x40