usb_var.h

来自「ST72T63游戏杆源程序」· C头文件 代码 · 共 84 行

H
84
字号
/**************** (c) 1998            STMicroelectronics **********************

PROJECT : USB - ST7
COMPILER : ST7 HICROSS C (HIWARE)

MODULE  :  usb_var.h
VERSION :  V 1.0

CREATION DATE :  25/05/98

AUTHOR : / MICROCONTROLLER DIVISION / ST Rousset

-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

DESCRIPTION : ST7263 USB variables.

-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

MODIFICATIONS :


******************************************************************************/

#ifndef VARIABLE_H
#define VARIABLE_H

#include "hidef.h"
#include "condcomp.h"

#pragma DATA_SEG SHORT MY_RAM0
extern Byte bmUsbIntFlag;
extern Byte UsbCtrStatus;
extern Byte UsbImr;
extern Byte bmUsbState;

extern Byte UsbbmRequestType;
extern Byte UsbbRequest;
extern Byte UsbwValue[2];
extern Byte UsbwIndex[2];
extern unsigned int CurrentUsbbLength;
extern unsigned int CurrentDescAddPointer;

extern Byte UsbDataTrDir;
extern Byte UsbEndpNumber;

extern Byte InterfaceValue;
extern Byte ConfigurationValue;
extern Byte InterfacebmAttributes;

extern struct endpoint
  {
        Byte Rx[8];
        Byte Tx[8];
  };
  

#pragma DATA_SEG DMA_CTRL
extern struct endpoint Endpoint0;

#ifdef USE_ENDPOINT1
#pragma DATA_SEG DMA_IN1
extern Byte Endpoint1[8];
#endif

#ifdef USE_ENDPOINT2
#pragma DATA_SEG DMA_IN2
extern Byte Endpoint2[8];
#endif

#pragma DATA_SEG DEFAULT
extern Byte DeviceStatusInfo;
extern Byte Endpoint0StatusInfo;
#ifdef USE_ENDPOINT1
extern Byte Endpoint1StatusInfo;
#endif
#ifdef USE_ENDPOINT2
extern Byte Endpoint2StatusInfo;
#endif
extern Byte Protocol;
extern Byte Idle;
#pragma DATA_SEG DEFAULT

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?