os.cfg

来自「< OSEKVDX汽车电子嵌入式软件编程技术>>配套光盘,搞汽」· CFG 代码 · 共 53 行

CFG
53
字号
/************************************************
*
*	$Copyright    2001 Joseph J. Lemieux  ALL RIGHTS RESERVED. $
*
*	$Filename: C:\OSEKBook\src\CH11\cfg\os.cfg $
*
*   Description:   This file defines the lists of OS portability
*                  functions that are used to make the application
*                  functions truly portable.
*
************************************************/
#ifndef OSCFG
#define OSCFG

/***
*
* Include header files defining registers and functions
*
***/

/************************************************
*
*   Define list of application mode to value mapping
*   for the application. The table will create three
*   things - the appmode_VALUE constant that is a valid
*   scalar value for the application mode, the appmode_MASK
*   mask that can be used to lookup in a table, and the
*   conversion table for application modes to scalar values. 
*
*   The macros used to define each list are as 
*   below. They must appear in the following 
*   order:
*
*   START_APPMODE_CONVERT_LIST(name,size)
*      Start list of application modes to be converted. name
*      will always be AppModeList. size is number
*       of add entries following.
*  ADD_APPMODE_CONVERT_LIST(appmode)
*      appmode is the name of the application mode as defined
*         in the configuration file.
*      As many as required are included.
*   END_APPMODE_CONVERT_LIST
*      End the list. Only one appears for each list.
*
************************************************/
START_APPMODE_CONVERT_LIST(AppModeList,3)
ADD_APPMODE_CONVERT_LIST(SINGLE_PLAYER)
ADD_APPMODE_CONVERT_LIST(HEAD_TO_HEAD)
ADD_APPMODE_CONVERT_LIST(TEST)
END_APPMODE_CONVERT_LIST

#endif /* OSCFG */

⌨️ 快捷键说明

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