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

📄 emos_cfg.h

📁 emos是一个新的类似于ucos的内核
💻 H
字号:
/****************************************************************************
 *
 * (c) Copyright 2001,2008, EMB system, All Rights Reserved.
 * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF EMB SYSTEM, INC.
 * The copyright notice above does not evidence any actual or intended
 * publication of such source code. 
 *
 *  Subsystem:    EMOS
 *  File:         emos_cfg.h
 *  Author:       zenf zhao
 *  Description:  EMOS operation system config file
 *
 ****************************************************************************/
#ifndef  _EMOS_CFG_H_
#define  _EMOS_CFG_H_

#define  EMOS_OS_CPP_C  

#define EMOS_SIMULATION 

/**********************************************************************************************************
  EMOS  CONFIGURATION
 **********************************************************************************************************/

/* Max. number of event control blocks in your application, MUST be >= 2
   the MBox, emosQ, Semaphore will use the EVENT structure*/
#define EMOS_MAX_EVENTS  (2)
	
/* Max. number of queue control blocks in your application*/
#define EMOS_MAX_QS    (2)   

/* Max. number of MsgQ control blocks in your application,
   if you don't want to use Q, but want to use vxWorks like MSGQ, use this*/
#define EMOS_MAX_MSGQS  (2)

/* Max. number of memory partitions ... MUST be >= 2 */
#define EMOS_MAX_MEM_PART     (16)   

 /* Max. number of tasks in your application ... ... MUST be >= 2*/
#define EMOS_MAX_TASKS    (10)   

 /* Defines the lowest priority that can be assigned ...      
      ... MUST NEVER be higher than 63! task-62/63 is used by OS inner usage*/
#define EMOS_LOWEST_PRIO         (62)   

/* Idle task stack size (# of 16-bit wide entries)  */
#define EMOS_TASK_IDLE_STK_SIZE  (512)    

/* Enable (1) or Disable(0) the statistics task     */
#define EMOS_TASK_STAT_EN        (1)    

/* Statistics task stack size (# of 16-bit wide entries)  */
#define EMOS_TASK_STAT_STK_SIZE       (512)    

/* EMS OS hooks are found in the processor port files   */
#define EMOS_CPU_HOOKS_EN     (1)    

/* Include code for MAILBOXES refer to emos_mbox.c*/
#define EMOS_MBOX_EN       (1)    

/* Include code for MEMORY MANAGER (fixed sized memory blocks)
   refer to emos_mem.c*/
#define EMOS_MEM_EN    (1)

/* Include code for QUEUES
   refer to emos_msgq.c*/
#define EMOS_Q_EN    (1)    

/* Include code for SEMAPHORES refer to emos_sem.c*/
#define EMOS_SEM_EN     (1)    

/* Include code for EMS_OSTaskChangePrio()*/
#define EMOS_TASK_CHANGE_PRIO_EN  (1)

/* Include code for EMS_OSTaskCreate()*/
#define EMOS_TASK_CREATE_EN       (1)    

/* Include code for EMS_OSTaskCreateExt()*/
#define EMOS_TASK_CREATE_EXT_EN    (1)   

/* Include code for EMS_OSTaskDel()*/
#define EMOS_TASK_DEL_EN         (1)    

/* Include code for EMS_OSTaskSuspend() and EMS_OSTaskResume()*/
#define EMOS_TASK_SUSPEND_EN     (1)    

/* Set the number of ticks in one second*/
#define EMOS_TICKS_PER_SEC    (100)

#if CPU_STK_GROWTH
#define EMOS_STK_GROWTH      (1)
#else
#define EMOS_STK_GROWTH      (0)
#endif




/**************************************************
 Define the functions interface and class sub-function here
 Never used in configure file
  **************************************************/
#ifdef __cplusplus
 extern "C" {
#endif


/*..........................*/
#ifdef __cplusplus
	}
#endif


#endif
 /*
 * Please add "$" around "Id" and "Log".
 * $Id$
 * $Log$
 *
 */

⌨️ 快捷键说明

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