gtmpscos.h

来自「Curtiss-Wright Controls Embedded Computi」· C头文件 代码 · 共 96 行

H
96
字号
/* gtMpscOS.h - header file for OS specific macros and functions *//********************************************************************** * *   Copyright (c) 2003-2004, Dy 4 Systems All rights reserved. *   This Source Code is the Property of Dy 4 Systems Inc. and can *   only be used in accordance with Source Code License *   Agreement of Dy 4 Systems Inc. dba (doing business as)  *   CURTISS-WRIGHT CONTROLS EMBEDDED COMPUTING, "CWCEC". * **********************************************************************//*modification history--------------------01a 01nov02, deb PTR release*/ /* The following line is for CVS. */ /*(#) $Id: Exp $ */ /*----------------------------------------------------------*/ /*    Copyright (C) 2002  Dy 4 Systems, Inc.                */ /*                                                          */ /*----------------------------------------------------------*/ /****************************************************************************** * begin_header: ******************************************************************************* * * Filename:  gtMpscOS.h * * Description: Offers OS specific macros and functions * * ******************************************************************************* * * revision log: * * 01nov02, deb    PTR Initial release * $Log: $ * ******************************************************************************* * end_header: ******************************************************************************/#ifndef GT_MPSCOS_H#define GT_MPSCOS_H#ifdef __cplusplusextern "C" {#endif /******************************** ********  INCLUDE FILES  ******** *********************************/#include <stdlib.h>#include <string.h>#include <stdio.h>#include <taskLib.h>#include <logLib.h>#include <cacheLib.h>#include "gtMpscErr.h" /******************************** ********  LOCAL DEFINES  ******** *********************************/#define GT_MPSC_WARN(A) (fprintf( stderr, "%s: %d: WARNING: %s\n", __FILE__, __LINE__, (A) ))#define GT_MPSC_ASSERT(A) if (!(A)) logMsg( "%s: %d: ASSERTION FAILED\n", (int)__FILE__, __LINE__, 0, 0, 0, 0 )#define GT_MPSC_LOG(A) logMsg( "%s: %d: LOG: %s\n", (int)__FILE__, __LINE__, (int)(A), 0, 0, 0 )/************************************************************** These features will be added as necessary to support * half duplex operations on the RHDLC Driver** * Timer definitions ** #define SCC_TMR       CNTMR_6* #define SCC_TMR_INT  CNTMR6_EXP** void gtMpscOSClkInit();* void gtMpscOSCldTime( int * seconds, int * microseconds );* void gtMpscOSInit();* void gtMpscClkStart(int chan, int cycles);* void gtMpscOSClkClose();*************************************************************/#ifdef __cplusplus}#endif#endif /* GT_MPSCOS_H */

⌨️ 快捷键说明

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