📄 os.cfg
字号:
/************************************************
*
* $Copyright 2001 Joseph J. Lemieux ALL RIGHTS RESERVED. $
*
* $Filename: C:\OSEKBook\src\CH13\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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -