USB_ISR_H.LST
上传用户:gxz1972
上传日期:2019-09-13
资源大小:323k
文件大小:4k
- C51 COMPILER V7.02b USB_ISR_H 08/06/2007 14:03:33 PAGE 1
- C51 COMPILER V7.02b, COMPILATION OF MODULE USB_ISR_H
- OBJECT MODULE PLACED IN USB_ISR_H.OBJ
- COMPILER INVOKED BY: C:KeilC51BINc51.exe USB_ISR_H.h DB OE
- stmt level source
- 1 //-----------------------------------------------------------------------------
- 2 // USB_ISR_H.h
- 3 //-----------------------------------------------------------------------------
- 4
- 5 // Copyright 2007 Vson Technology, Inc.
- 6 // http://www.usbmcu.com
- 7 //
- 8 // Program Description:
- 9 //
- 10 //
- 11 //
- 12 //
- 13 //
- 14 // MCU: C8051F347
- 15 // Tool chain: Keil C51 7.50 / Keil EVAL C51
- 16 // Silicon Laboratories IDE version 2.6
- 17 // Command Line:
- 18 // Project Name: TR1000
- 19 //
- 20 //
- 21 // Release 1.0
- 22 // -All changes by Brian Cai
- 23 // -24 JUL 2007
- 24 //
- 25 //
- 26
- 27 #include "USB_Structs_H.h"
- *** ERROR C141 IN LINE 57 OF USB_STRUCTS_H.H: syntax error near 'BYTE'
- *** ERROR C129 IN LINE 57 OF USB_STRUCTS_H.H: missing ';' before 'bNumAlts'
- 28
- 29 #ifndef _USB_ISR_H_
- 30 #define _USB_ISR_H_
- 31
- 32
- 33
- 34
- 35 //sbit sbitLed = P0^5; // These blink to indicate data transmission
- 36
- 37 //-----------------------------------------------------------------------------
- 38 // Global Constants
- 39 //-----------------------------------------------------------------------------
- 40
- 41 // Constants Definitions
- 42 #define NUM_STG_PAGES 20 // Total number of flash pages to
- 43 // be used for file storage
- 44 #define MAX_BLOCK_SIZE 64 // Use the maximum block size of 64
- 45 #define FLASH_PAGE_SIZE 512 // Size of each flash page
- 46 #define BLOCKS_PR_PAGE FLASH_PAGE_SIZE/MAX_BLOCK_SIZE
- 47 #define MAX_NUM_BLOCKS BLOCKS_PR_PAGE*NUM_STG_PAGES
- 48
- 49
- 50
- 51 // Message Types
- 52 #define READ_MSG 0x00 // Message types for communication with host
- 53 #define WRITE_MSG 0x01
- C51 COMPILER V7.02b USB_ISR_H 08/06/2007 14:03:33 PAGE 2
- 54 #define SIZE_MSG 0x02
- 55
- 56 // Machine States
- 57 #define WAIT_OPEN_DEVICE_STATUS 0x01 // Wait for application to open a device instanc
- -e
- 58 #define DEVICE_IDLE_STATUS 0x02 // Device is open, wait for Setup Message from host
- 59 #define RX_CONFIG_DATA_FROM_HOST_STATUS 0x03
- 60 #define TX_CONFIG_RESPONSE_TO_HOST_STATUS 0x04 // Received Setup Message, decode and wait for data
- 61 #define TX_KEY_DATA_TO_HOST_STATUS 0x08 // Receive file data from host
- 62 #define TX_TOUCHPAD_DATA_TO_HOST_STATUS 0x10 // Transmit file data to host
- 63 #define EP0_HANDLER_STATUS 0x20 // Transmit ACK 0xFF to host after every 8 packets
- 64 #define USB_RESET_STATUS 0x40
- 65 #define ERROR_STATUS 0x80 // Error state
- 66
- 67 //-----------------------------------------------------------------------------
- 68 // Function Prototypes
- 69 //-----------------------------------------------------------------------------
- 70 void USBReset ();
- 71 void Endpoint0 ();
- 72 void BulkOrInterruptOut(PEP_STATUS);
- 73 void BulkOrInterruptIn (PEP_STATUS, BYTE *,UINT );
- 74
- 75 #endif // F34x_USB_DESCRIPTORS_H
- 76
- 77 //-----------------------------------------------------------------------------
- 78 // End Of File
- 79 //-----------------------------------------------------------------------------
- C51 COMPILATION COMPLETE. 0 WARNING(S), 2 ERROR(S)