📄 usr_var.c
字号:
/**************** (c) 1998 STMicroelectronics **********************
PROJECT : USB - ST7
COMPILER : ST7 HICROSS C (HIWARE)
MODULE : usr_var.c
VERSION : V 1.1
CREATION DATE : 25/05/98
AUTHOR : / MICROCONTROLLER DIVISION / ST Rousset
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
DESCRIPTION : ST7263 USB Application variables.
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
MODIFICATIONS :
Rev. 1.1 23/09/98
Added:
#include "usr_var.h"
******************************************************************************/
#include "hidef.h"
#include "usr_var.h"
#pragma DATA_SEG SHORT DEFAULT
//Byte Pressed; // used to not send every time the button value
int UsbCounter; // used to blink the LED
Byte TEMP; // temporary use
Byte TEMP1;
Byte TEMP2;
Byte D1;
Byte D2;
Byte D3;
//Byte NewConversion; // ADC new conversion
// User Input/Output variables
Byte ADCsel; // used to select the pin for S&H
int ADCtemp;
Byte ADCvalue;
// Byte ADCresult;
//Byte ModeLEDstate; // used to store the state of the Mode LED
Byte AutofireLEDstate; // used to store the state of the Autofire LED
Byte AutofireFlash; // used to store the flashing state of the Autofire LED
Byte AutofireEnable; // used to store the state of autofire state of any button
Byte PadID; // store the PadID
Byte ControllerID;
Byte AutofireState1;
Byte AutofireState2;
// SCI Communication
Byte Buff[7];
Byte Mess_TXD[7];
Byte Mess_RXD[7];
// Internal variables
Byte ReportIdNumber; // used to know the ReportID number
Byte ReportIdArray[8]; // used to send Report data
Byte ReportIdLength; // Length of Report to send
Byte FeatureArray[4];
Byte RTFlash; // used to count flash
Byte RT500ms; // used to count 500ms
Byte RT2s; // used to count 2s
int RT5s; // used to count 5s
Byte RTPRO; // used to count 400ms for button profile editor
Byte PadTotal; // store the total number of pad
Byte PadCount;
Byte BitCount;
Byte ByteCount;
Byte RXTimeCount;
Byte Timer;
unsigned int delay;
int TimeOut;
int MidiTimeOut;
const Byte Character[] = { // For SV-239
0x3f, 0x6, 0x5b, 0x4f, 0x66 ,0x6D, 0x7d, 7,
0x7f, 0x6f, 0x77, 0x7c, 0x39, 0x5e // 1-26-00
};
Byte MidiCmdFlag;
Byte Toggle;
Byte LEDToggle;
Byte bmCopyRequest;
Byte bmRequest;
/* This bit-mapped SW register describes the current GET/SET_REPORT request state.
It is written when a USB CTR interrupt occurs.
-------------------------------------------------------------
| Bit7 | Bit6 | Bit5 | Bit4 | Bit3 | Bit2 | Bit1 | Bit0 |
-------------------------------------------------------------
| - | - | - | SET | GET | FEATURE| INPUT| OUTPUT |
-------------------------------------------------------------
*/
#pragma DATA_SEG DEFAULT
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -