stack.h
来自「ADS环境下的类似linux内核的操作系统」· C头文件 代码 · 共 29 行
H
29 行
/* MShowTec - www.mshowtec.com
** msLinux stack.h ver1.0
** 20051221 lmjx create limiao@mshowtec.com
**
*/
#ifndef MSLINUX_STACK_H
#define MSLINUX_STACK_H
#define ALIGN4B(a) ((a+3)&(~3))
#define DEFINE_TASK_STACK(name,sz) long name[ALIGN4B(sz)/4];unsigned char *task_##name = (unsigned char*)name
#define TASK0_STACK_SIZE (1024)
#define TASK_STACK_SIZE_0512 (0512)
#define TASK_STACK_SIZE_1024 (1024)
#define TASK_STACK_SIZE_2048 (2048)
#define TASK_STACK_SIZE_4096 (4096)
#define NR_STACKS (ALIGN4B(64))
#define STACK_0512_NB (10)
#define STACK_1024_NB (30)
#define STACK_2048_NB (20)
#define STACK_4096_NB (4)
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?