globals.cxgate
来自「关于XD256的应用实例,用于汽车电子开发之用」· CXGATE 代码 · 共 46 行
CXGATE
46 行
/*****************************************************
globals.cxgate - definition of shared variables
-----------------------------------------------------
These variables that are allocated in XGATE space but
can be refered by the HC12 too.
Note: pointers defined in the shared RAM are unique to
the core and cannot be shared. Define in this
module all the variables that contain addresses
into the XGATE address space.
*****************************************************/
#include "VTypes.h"
#include "Globals.h"
#pragma DATA_SEG SHARED_DATA
/* VFD Variables */
uchar GBuffer[ScreenBuffSize]; /* logical grafic buffer (horizontal scan lines) */
uchar ScreenBuff[ScreenBuffSize]; /* physical scsreen buffer (double vertical scan lines) */
uchar GridData[8];
VFDDataType VFData = {(uchar*)ScreenBuff, (uchar*)GridData, 0, 7, 16, 8, 0, 0};
STDataType STData;
/* GDIC Variables */
GDICDataType GDICData;
/* Switch/LED data */
SwLEDDataType SwLEDData;
/* CAN Variables */
uint CANMsgID;
uchar CANDataLen;
uchar CANMsgData[8];
/* latency measurement */
uint newTime, oldTime, maxDt;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?