📄 mscangvlite.c
字号:
/******************************************************************************
Copyright (c) Motorola 2000
File Name : $RCSfile: msCANgvlite.c,v $
Engineer : $Author: r52458 $
Location : EKB
Date Created : 30/11/98
Current Revision : $Revision: 1.0 $
Notes : msCAN lite driver global variables.
*******************************************************************************
Motorola reserves the right to make changes without further notice to any
product herein to improve reliability, function or design. Motorola does
not assume any liability arising out ot the application or use of any
product, circuit, or software described herein; neither does it convey any
license under its patent rights nor the rights of others. Motorola products
are not designed, intended, or authorized for use as components in systems
intended for surgical implant into the body, or other applications intended
to support life, or for any other application in which the failure of the
Motorola product could create a situation where personal injury or death may
occur. Should Buyer purchase or use Motorola products for any such unintended
or unauthorized application, Buyer shall idemnify and hold Motorola and its
officers, employees, subsidiaries, affiliates, and distributors harmless
against all claims costs, damages, and expenses, and reasonable attorney fees
arising out of, directly or indirectly, any claim of personal injury or death
associated with such unintended or unathorized use, even if such claim alleges
that Motorola was negligent regarding the design or manufacture of the part.
Motorola and the Motorola logo* are registered trademarks of Motorola Ltd.
******************************************************************************/
#ifndef MSCANGVLITE_C
#define MSCANGVLITE_C /* this file */
#include "msCANstd.h"
#include "msCANdrv.h"
#include "msCAN0drv.h"
#include "msCAN0ID.h"
/******************************************************************************
Global Variables
******************************************************************************/
const UINT8 NoOfMB = NO_OF_MB_CAN0;
const UINT8 NoOfID = NO_OF_ID_CAN0;
const UINT8 TimeStampOption = TIMESTAMP_CAN0;
const UINT8 CANCTL0_Def = CANCTL0_CAN0;
const UINT8 CANCTL1_Def = CANCTL1_CAN0;
const UINT8 CANBTR0_Def = CANBTR0_CAN0;
const UINT8 CANBTR1_Def = CANBTR1_CAN0;
const UINT8 CANIDAC_Def = ACC_FILTER_CAN0;
const UINT8 CANIDFilter_Def[] = {ID_CODE0_CAN0
,ID_CODE1_CAN0
,ID_CODE2_CAN0
,ID_CODE3_CAN0
,ID_MASK0_CAN0
,ID_MASK1_CAN0
,ID_MASK2_CAN0
,ID_MASK3_CAN0
,ID_CODE4_CAN0
,ID_CODE5_CAN0
,ID_CODE6_CAN0
,ID_CODE7_CAN0
,ID_MASK4_CAN0
,ID_MASK5_CAN0
,ID_MASK6_CAN0
,ID_MASK7_CAN0
};
/* msCAN0 Message Buffer arrays */
UINT8 BufferID_Ref_CAN0[NO_OF_MB_CAN0];
UINT8 BufferMode_CAN0[NO_OF_MB_CAN0];
UINT8 BufferStatus_CAN0[NO_OF_MB_CAN0];
UINT8 BufferDLC_CAN0[NO_OF_MB_CAN0];
UINT8 BufferData_CAN0[NO_OF_MB_CAN0][8];
/* BufferTimeStamp_CAN0[]: msCAN0 MB time stamp array */
#if TIMESTAMP_CAN0
wordType BufferTimeStamp_CAN0[NO_OF_MB_CAN0];
#else
wordType *BufferTimeStamp_CAN0; /* unused pointer */
#endif /* TIMESTAMP_CAN0 */
/*****************************************************************************/
#endif /* end MSCANGVLITE_C */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -