⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cxconfig.h

📁 上传一个带源代码的嵌入式实时多任务操作系统CMX
💻 H
字号:
/*********************************************************************
 The following will be included when the cmx_init.c program gets
 compiled. These are set the maximums for a variety of things. This way
 CMX can pre-allocate the needed memory to accomplish the user
 needs. This is so no memory allocation functions are needed by
 CMX, and no delays are introduced to obtain the needed memory during
 run time.

 The user is free to make a copy of this file for each application
 program, so each application program will have their own "cxconfig.h"
 file. Also the user should probally copy the cmx_init.c file to a "user
 name file", for each application program. This way the user does not
 have to change "this" file each time a different application program
 is worked with. Just remember to make sure you change the 
 #include <cxconfig.h> line in the user named ("cmx_init.c") file
 to include the proper user named "cxconfig.h" file.

 Also if any of these defines ARE changed, then the user must be
 sure to compile the cmx_init.c file (or equalivent user file)
 so these NEW values take effect.
*********************************************************************/
#define C_MAX_TASKS 10	/* Maximum number of tasks for this program. */
#define C_MAX_RESOURCES 3	/* Maximum number of resources. */
#define C_MAX_CYCLIC_TIMERS 5	/* Maximum number of cyclic timers. */
#define C_MAX_MESSAGES 10	/* Maximum number of messages. */
#define C_MAX_QUEUES 5	/* Maximum number of queues. */
#define C_MAX_MAILBOXES 5	/* Maximum number of mailboxes. */
#define C_MAX_SEMAPHORES 3	/* Maximum number of mailboxes. */
#define C_TASK_STK_SIZE 2560	/* Maximum stack size of ALL tasks stacks
										added together, does NOT include timer task */
#define C_INTERRUPT_SIZE 256	/* Size of interrupt stack. The CMX timer task
											K_I_Scheduler, and K_I_Intrp_Pipe_Out function use this. */
#define C_RTC_SCALE 1		/* number of timer interrupt ticks, before CMX 
										tick. All time counters based on this.  */
#define C_TSLICE_SCALE 4	/* The number of timer interrupt ticks, before
										forcing task to do time slice task switch. */

#define C_PIPE_SIZE 32		/* the size of the interrupt pipe. up to 255 big. */

#define CMXBUG_ENABLE 0		/* ENABLE or DISABLE CMXBug(TM) inclusion.
									Set to 1 to ENABLE, set to 0 (zero) to DISABLE.
									The use still must link in cmxbug.obj, for the 
									CMXBug code to be functional */

#define CMXTRACKER_ENABLE 0 	/* ENABLE or DISABLE CMXTracker(TM) inclusion.
									Set to 1 to ENABLE, set to 0 (zero) to DISABLE */

#define CMXTRACKER_TICK_UPDATE 1	/* Set to 1 to have SYSTEM TICK update
												CMXTracker 'track_tick_count' */

#define CMXTRACKER_SIZE 4096 	/* SIZE IN BYTES of the buffer to hold the 
									CMXTracker COMPRESSED information. */

#define CMX_RAM_INIT 1		/* ENABLE or DISABLE the initialization of CMX RAM
									variables. Usually done by Compiler start up code
									in most cases. If not, MUST be ENABLED. Normally
									compiler code will set GLOBAL variables that are
									initialized and set non-initialize variables to
									0 (zero). Set to 1 to ENABLE CMX code to initialize
									it's variables, set to 0 (zero) to DISABLE */


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -