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

📄 z85230os.h

📁 Curtiss-Wright Controls Embedded Computing公司的cw183板bsp源代码
💻 H
字号:
/* z85230OS.h - header file for z85230OS module *//* Copyright 2000-2002 Dy 4 Systems, Inc. *//*modification history--------------------01b 07jun05,dle support 183 Serial IPM V201a 12aug02, aak timer definitions*/#ifndef Z85230OS_H#define Z85230OS_H#ifdef __cplusplusextern "C" {#endif#include <stdlib.h>#include <string.h>#include <stdio.h>#include <taskLib.h>#include <logLib.h>#include <cacheLib.h>#include "boardName.h"#include "h/drv/sio/z85230Err.h"#define Z85230_WARN(A) (fprintf( stderr, "%s: %d: WARNING: %s\n", __FILE__, __LINE__, (A) ))#define Z85230_ASSERT(A) if (!(A)) logMsg( "%s: %d: ASSERTION FAILED\n", (int)__FILE__, __LINE__, 0, 0, 0, 0 )#define Z85230_DEBUG z85230OSIntLock();printf( "Debug: %s: %d\n", __FILE__, __LINE__ );z85230OSIntUnlock()#define Z85230_LOG(A) logMsg( "%s: %d: LOG: %s\n", (int)__FILE__, __LINE__, (int)(A), 0, 0, 0 )#ifdef VME_181#define z85230OSMalloc(A)       (cacheDmaMalloc(A))#else#define z85230OSMalloc(A)       (malloc(A))#endif#define z85230OSFree(A)         (free(A))#define z85230OSMemcpy(A,B,C)   (memcpy((A),(B),(C)))#define z85230OSMemset(A,B,C)   (memset((A),(B),(C)))#define z85230OSSleep(A)        (taskDelay((A)*60))/* Timer definitions */#define SCC_TMR		 CNTMR_7#define SCC_TMR_INT  CNTMR7_EXPvoid z85230OSClkInit();void z85230OSCldTime( int * seconds, int * microseconds );void z85230OSInit();void z85230ClkStart(int chan, int cycles);void z85230OSClkClose();#ifdef __cplusplus}#endif#endif /* Z85230OS_H */

⌨️ 快捷键说明

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