📄 mscanvarlite.c
字号:
/******************************************************************************
MOTOROLA INTERNAL USE ONLY
Copyright (c) Motorola 2000
File Name : $RCSfile: msCANvarlite.c,v $
Engineer : $Author: r52458 $
Location : EKB
Date Created : 09/06/98
Current Revision : $Revision: 1.0 $
Notes : msCAN driver lite 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 MSCANVARLITE_C
#define MSCANVARLITE_C /* this file */
#include "msCANstd.h" /* Standard defines */
#include "msCANdrv.h" /* General defines, enums, prototypes */
#include "msCANinc.h" /* Internal typedefs, prototypes */
/*****************************************************************************
Global Variables : static
*****************************************************************************/
#ifdef HICROSS
//#pragma DATA_SEG MSCAN0 Commented by rc574c, 6.12.2005
//static UINT8 msCAN0Start; Commented by rc574c, 6.12.2005
#pragma DATA_SEG DEFAULT
static UINT8 CCRcopy;
#pragma DATA_SEG DEFAULT
#endif /* HICROSS */
static UINT8 MB_MSCAN[NO_OF_MSCAN_TXBUFFER]; /* Records which MB is in msCAN Transmit buffers */
static UINT8 MBP_MSCAN[NO_OF_MSCAN_TXBUFFER]; /* Records the Priority of each msCAN Transmit buffer */
static UINT8 DriverFlags; /* flags for driver */
static UINT8 LowestQueuedBuffer = 0xff; /* the number of the lowest queued message for transmission */
static UINT8 AbortMessage = 0xff; /* the number of the message that caused the abort */
static const UINT8 TX_BUFF0 = 0x01;
static const UINT8 TX_BUFF1 = 0x02;
static const UINT8 TX_BUFF2 = 0x04;
/*****************************************************************************
Global Variables : external
*****************************************************************************/
#ifdef COSMIC
extern UINT8 msCAN0Start;
UINT8 CCRcopy;
#endif /* COSMIC */
extern const UINT8 NoOfMB;
extern const UINT8 NoOfID;
extern const UINT8 TimeStampOption;
extern const UINT8 CANCTL0_Def;
extern const UINT8 CANCTL1_Def;
extern const UINT8 CANBTR0_Def;
extern const UINT8 CANBTR1_Def;
extern const UINT8 CANIDAC_Def;
extern const UINT8 CANIDFilter_Def[];
extern const UINT8 M_IdentifierType_CAN0[];
extern const UINT32 M_Identifier_CAN0[];
extern UINT16 BufferTimeStamp_CAN0[];
extern UINT8 BufferID_Ref_CAN0[];
extern UINT8 BufferMode_CAN0[];
extern UINT8 BufferStatus_CAN0[];
extern UINT8 BufferDLC_CAN0[];
extern UINT8 BufferData_CAN0[][8];
/*****************************************************************************/
#endif /* end MSCANVARLITE_C */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -