config.h
来自「一个小型的嵌入式操作系统内核,可用于多种硬件平台」· C头文件 代码 · 共 67 行
H
67 行
/**************************************************************************************************
EDL RTOS Kernel
(c) Copyright 2005, Wu Jun
All Rights Reserved
For further information, please visit http://www.enjoydigitallife.com
* Description: None
* History:
Date Remarks
2005-01-06 Created initial version
2005-12-12 Finished the version 2.01
**************************************************************************************************/
#ifndef CONFIG_H
#define CONFIG_H
/**************************************************************************************************
* Configuration for Task Management Component
**************************************************************************************************/
/* Specifies the max number of priorities, which ranges from 1 to 512 */
#define TSK_MAX_PRIO_NUM 64
/* Specifies the max number of Task Control Block */
#define TSK_MAX_NUM 10
/**************************************************************************************************
* Configuration for Semaphore Management Component
**************************************************************************************************/
/* Specifies the max number of Semaphore Control Block */
#define SEM_MAX_NUM 10
/**************************************************************************************************
* Configuration for Mutex Management Component
**************************************************************************************************/
/* Specifies the max number of Mutex Control Block */
#define MU_MAX_NUM 10
/**************************************************************************************************
* Configuration for Memory Management Component
**************************************************************************************************/
#define K_ALLOC_ZONE_ID 0
#define K_ALLOC_PAGE_NUM 4
/* The unit size must be the multiple of 4(bytes) and be greater than 24 (bytes) */
#define K_ALLOC_UNIT_SIZE 100
#define K_ALLOC_MAX_UNIT_NBR 20
#define MSG_ALLOC_ZONE_ID 0
#define MSG_ALLOC_PAGE_NUM 16
/* The unit size must be the multiple of 4(bytes) and be greater than 24 (bytes) */
#define MSG_ALLOC_UNIT_SIZE 48
#define MSG_ALLOC_MAX_UNIT_NBR 20
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?