Skip to content

Commit c74148a

Browse files
GuEe-GUIRbb666
authored andcommitted
[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]>
1 parent 944b974 commit c74148a

File tree

1 file changed

+8
-0
lines changed
  • components/drivers/include/drivers/core

1 file changed

+8
-0
lines changed

components/drivers/include/drivers/core/dm.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ extern int rt_hw_cpu_id(void);
3131
#define RT_MAX_IPI 0
3232
#endif
3333

34+
#ifndef DM_THREAD_STACK_SIZE
35+
#ifdef SYSTEM_THREAD_STACK_SIZE
36+
#define DM_THREAD_STACK_SIZE SYSTEM_THREAD_STACK_SIZE
37+
#else
38+
#define DM_THREAD_STACK_SIZE IDLE_THREAD_STACK_SIZE
39+
#endif
40+
#endif
41+
3442
void rt_dm_secondary_cpu_init(void);
3543

3644
/* ID Allocation */

0 commit comments

Comments
 (0)