📄 usr_var.h
字号:
/**************** (c) 1998 STMicroelectronics **********************
PROJECT : USB - ST7
COMPILER : ST7 HICROSS C (HIWARE)
MODULE : usr_var.h
VERSION : V 1.0
CREATION DATE : 25/05/98
AUTHOR : / MICROCONTROLLER DIVISION / ST Rousset
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
DESCRIPTION : ST7263 USB Application variables.
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
MODIFICATIONS :
******************************************************************************/
#ifndef USR_VAR_H
#define USR_VAR_H
#include "hidef.h"
#pragma DATA_SEG DEFAULT
//extern Byte Pressed;
extern int UsbCounter;
extern Byte TEMP;
extern Byte TEMP1;
extern Byte TEMP2;
extern Byte D1;
extern Byte D2;
extern Byte D3;
// Internal variables
extern Byte ReportIdNumber;
extern Byte ReportIdArray[8];
extern Byte ReportIdLength;
extern Byte FeatureArray[4];
//tern Byte NewConversion;
extern Byte RTFlash; // used to count flash
extern Byte RT500ms; // used to count 500ms
extern Byte RT2s; // used to count 2s
extern int RT5s; // used to count 5s
extern Byte RTPRO; // used to count 400ms for button profile editor
extern Byte PadTotal; // store the total number of pad
extern Byte PadCount;
extern Byte BitCount;
extern Byte ByteCount;
extern Byte RXTimeCount;
extern Byte Timer;
extern unsigned int delay;
extern int TimeOut;
extern int MidiTimeOut;
extern const Byte Character[];
extern Byte MidiCmdFlag;
extern Byte Toggle;
extern Byte LEDToggle;
// SCI Communication
extern Byte Buff[7];
extern Byte Mess_TXD[7];
extern Byte Mess_RXD[7];
struct DataPacket
{
Byte Packet[4];
}Data_storage;
struct DataPacket A_DATA[4];
struct DataPacket B_DATA[4];
struct DataPacket D_DATA[4];
struct ADC
{
Byte Current; // store the current reading of the ADC outputs
Byte Initial; // store the initial reading of the ADC outputs
Byte Record[3];
}Axis_settings;
struct ADC AXIS[4];
// User Input/Output variables
extern Byte ADCsel;
extern int ADCtemp;
extern Byte ADCvalue;
extern Byte ADC[4];
//extern Byte ModeLEDstate; // used to store the state of the Mode LED
extern Byte AutofireLEDstate;// used to store the state of the Autofire LED
extern Byte AutofireFlash; // used to store the flashing state of the Autofire LED
extern Byte AutofireEnable; // used to store the state of autofire state of any button
extern Byte PadID; // store the display number
extern Byte ControllerID;
extern Byte AutofireState1;
extern Byte AutofireState2;
#define Deadband 14
#define Vrange 85
#define HWVersion1 0x3
#define HWVersion2 0x0
#define FWVersion1 0x10
#define FWVersion2 0x01 //6-23-00 Version: 1.01
#define PTLVersion 0x10
//#pragma DATA_SEG _ZEROPAGE
struct Button
{
Byte pressed;
Byte autofire;
Byte report;
}Key_input;
struct Button A;
struct Button B;
struct Button C;
struct Button D;
struct Button MODESW;
struct Button E;
struct Button F;
struct Button L;
struct Button R;
struct Button UP;
struct Button DOWN;
struct Button LEFT;
struct Button RIGHT;
struct Button MODE;
struct Button PROFEDIT;
struct Button L1;
struct Button R1;
#pragma DATA_SEG DEFAULT
// USB
extern Byte bmRequest;
extern Byte bmCopyRequest;
// A/D Converter
#define COCO 0x80 // Bit conversion complete
#define END_CONVERSION 0x80
// PWM Conversion
#define PWMConversion 0.243 // Convert the PWM value 8 bits in 6 bits
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -