📄 motfcc2local.h
字号:
/* motFcc2Local.h - Wrapper for motFcc2End.h *//* Copyright 1984-2004 Wind River Systems, Inc. *//*modification history--------------------01a,29oct04,dtr Created*//*DESCRIPTIONThis provides a wrapper for BSP specific compiliation.*/#undef INUM_FCC1#define INUM_FCC1 32#undef INUM_TO_IVEC#define INUM_TO_IVEC(x) (x)#define SYS_FCC_INT_CONNECT(pDrvCtrl, pFunc, arg, ret) \{ \IMPORT STATUS m85xxCpmIntConnect (VOIDFUNCPTR *, VOIDFUNCPTR, int); \ret = OK; \ \ pDrvCtrl->intrConnect = TRUE; \ ret = (m85xxCpmIntConnect) ((VOIDFUNCPTR*) MOT_FCC_IVEC (pDrvCtrl), \ (pFunc), (int) (arg)); \}#define SYS_FCC_INT_DISCONNECT(pDrvCtrl, pFunc, arg, ret) \{ \ret = OK; \ \if (MOT_FCC_IVEC (pDrvCtrl) && (_func_motFccIntDisconnect != NULL)) \ { \ pDrvCtrl->intrConnect = FALSE; \ ret = (*_func_motFccIntDisconnect) ((VOIDFUNCPTR*) MOT_FCC_IVEC (pDrvCtrl), \ (pFunc)); \ } \} #define SYS_FCC_INT_ENABLE(pDrvCtrl, ret) \{ \IMPORT int m85xxCpmIntEnable (int); \ret = OK; \ \if (MOT_FCC_INUM (pDrvCtrl)) \ ret = m85xxCpmIntEnable ((int) (MOT_FCC_INUM (pDrvCtrl))); \} #define SYS_FCC_INT_DISABLE(pDrvCtrl, ret) \{ \IMPORT int m85xxCpmIntDisable (int); \ret = OK; \ \if (MOT_FCC_INUM (pDrvCtrl)) \ ret = m85xxCpmIntDisable ((int) (MOT_FCC_INUM (pDrvCtrl))); \}#include "motFcc2End.h"FUNCPTR _func_motFccIntDisconnect = NULL; /* assign a proper disc routine */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -