?? upsd_usb.h
字號:
/////////////////////////////////////////////////////////////////////////////
// upsd_usb.h
//
// Prototypes and constants for USB driver module.
//
// Author: Jon Moore
//
// Revision History:
//
// 07/22/02 (JAM) Initial coding.
/*---------------------------------------------------------------------------
Copyright (c) 2002 ST Microelectronics
This example demo code is provided as is and has no warranty,
implied or otherwise. You are free to use/modify any of the provided
code at your own risk in your applications with the expressed limitation
of liability (see below) so long as your product using the code contains
at least one uPSD products (device).
LIMITATION OF LIABILITY: NEITHER STMicroelectronics NOR ITS VENDORS OR
AGENTS SHALL BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF USE, LOSS OF DATA,
INTERRUPTION OF BUSINESS, NOR FOR INDIRECT, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES OF ANY KIND WHETHER UNDER THIS AGREEMENT OR
OTHERWISE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
--------------------------------------------------------------------------*/
#ifndef UPSD_USB_H
#define UPSD_USB_H
#include "usb.h"
#define EP0_SIZE 8
#define EP1_SIZE 8
#define EP2_SIZE 8
extern volatile uchar idata usbState;
extern setup_buffer setupPacket;
extern void UsbInitialize();
extern BOOL ReadSetupPacket();
extern void OnSetupPacket();
extern void BaseEp0TxHandler();
extern void BaseUsbIsr();
extern void TransmitDataEP0(uchar* pData, int nBytes);
extern void TransmitDataEPx(int x, uchar* pData, int nBytes);
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -