📄 isr.h
字号:
/******************************************************************************
* Filename: isr.h
* Author: Tan Dewen
* Date: 2004/06/26
******************************************************************************/
#ifndef __ISR_H__
#define __ISR_H__
#include "D12CI.h"
#define USB_TRANSMIT 2
#define USB_RECEIVE 1
#define USB_IDLE 0
typedef union _epp_flags
{
struct _flags
{
U8 timer;
U8 bus_reset;
U8 suspend;
U8 setup_packet;
U8 remote_wakeup;
U8 in_isr;
U8 control_state;
U8 configuration;
U8 verbose;
U8 ep1_rxdone;
U8 setup_dma;
U8 dma_state;
}bits;
U16 value;
}EPPFLAGS;
typedef struct _device_request
{
U8 bmRequestType;
U8 bRequest;
U16 wValue;
U16 wIndex;
U16 wLength;
} DEVICE_REQUEST;
typedef struct _control_xfer
{
DEVICE_REQUEST DeviceRequest;
U16 wLength;
U16 wCount;
U8 *pData;
U8 dataBuffer[EP0_MAX_PACKET_SIZE];
} CONTROL_XFER;
/* isr.c */
void fn_usb_isr(void);
void ep0_rxdone(void);
void ep0_txdone(void);
void ep1_rxdone(void);
void ep1_txdone(void);
void main_rxdone(void);
void main_txdone(void);
void dma_eot(void);
#endif /* __ISR_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -