diff options
| author | GuEe-GUI <[email protected]> | 2025-12-09 17:18:48 +0800 |
|---|---|---|
| committer | R b b666 <[email protected]> | 2025-12-09 21:04:16 +0800 |
| commit | c74148a8b3abb26b4d927f2143a8dc0027aec2fd (patch) | |
| tree | 71b112675e55cdbd7e803520a845989fd9cb043e /components/drivers | |
| parent | 944b974c1aa08b750f52364a86cae9d44ea3281d (diff) | |
[dm][core] add common stack size for DM
DM driver is public, they don't know the size of the thread stack default.
Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers')
| -rw-r--r-- | components/drivers/include/drivers/core/dm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/core/dm.h b/components/drivers/include/drivers/core/dm.h index b6cd70dcba..7743aa0bb2 100644 --- a/components/drivers/include/drivers/core/dm.h +++ b/components/drivers/include/drivers/core/dm.h @@ -31,6 +31,14 @@ extern int rt_hw_cpu_id(void); #define RT_MAX_IPI 0 #endif +#ifndef DM_THREAD_STACK_SIZE +#ifdef SYSTEM_THREAD_STACK_SIZE +#define DM_THREAD_STACK_SIZE SYSTEM_THREAD_STACK_SIZE +#else +#define DM_THREAD_STACK_SIZE IDLE_THREAD_STACK_SIZE +#endif +#endif + void rt_dm_secondary_cpu_init(void); /* ID Allocation */ |
