⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 isa_dma.lst

📁 飞利浦usb D12芯片fireware 源程序
💻 LST
📖 第 1 页 / 共 2 页
字号:
C51 COMPILER V8.02   ISA_DMA                                                               07/24/2007 14:12:03 PAGE 1   


C51 COMPILER V8.02, COMPILATION OF MODULE ISA_DMA
OBJECT MODULE PLACED IN ISA_DMA.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE ISA_DMA.C LARGE BROWSE DEBUG OBJECTEXTEND CODE LISTINCLUDE SYMBOLS

line level    source

   1          /*
   2             //*************************************************************************
   3             //
   4             //                  P H I L I P S   P R O P R I E T A R Y
   5             //
   6             //           COPYRIGHT (c)   1997 BY PHILIPS SINGAPORE.
   7             //                     --  ALL RIGHTS RESERVED  --
   8             //
   9             // File Name:        ISADMA.C
  10             // Author:           Wenkai Du
  11             // Created:          16 Mar 97
  12             // Modified:
  13             // Revision:         1.1
  14             //
  15             //*************************************************************************
  16             //
  17             //*************************************************************************
  18             */
  19          
  20          #include <stdio.h>
   1      =1  /*--------------------------------------------------------------------------
   2      =1  STDIO.H
   3      =1  
   4      =1  Prototypes for standard I/O functions.
   5      =1  Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, Inc.
   6      =1  All rights reserved.
   7      =1  --------------------------------------------------------------------------*/
   8      =1  
   9      =1  #ifndef __STDIO_H__
  10      =1  #define __STDIO_H__
  11      =1  
  12      =1  #ifndef EOF
  13      =1   #define EOF -1
  14      =1  #endif
  15      =1  
  16      =1  #ifndef NULL
  17      =1   #define NULL ((void *) 0)
  18      =1  #endif
  19      =1  
  20      =1  #ifndef _SIZE_T
  21      =1   #define _SIZE_T
  22      =1   typedef unsigned int size_t;
  23      =1  #endif
  24      =1  
  25      =1  #pragma SAVE
  26      =1  #pragma REGPARMS
  27      =1  extern char _getkey (void);
  28      =1  extern char getchar (void);
  29      =1  extern char ungetchar (char);
  30      =1  extern char putchar (char);
  31      =1  extern int printf   (const char *, ...);
  32      =1  extern int sprintf  (char *, const char *, ...);
  33      =1  extern int vprintf  (const char *, char *);
  34      =1  extern int vsprintf (char *, const char *, char *);
  35      =1  extern char *gets (char *, int n);
C51 COMPILER V8.02   ISA_DMA                                                               07/24/2007 14:12:03 PAGE 2   

  36      =1  extern int scanf (const char *, ...);
  37      =1  extern int sscanf (char *, const char *, ...);
  38      =1  extern int puts (const char *);
  39      =1  
  40      =1  #pragma RESTORE
  41      =1  
  42      =1  #endif
  43      =1  
  21          #include <dos.h>
*** WARNING C318 IN LINE 21 OF ISA_DMA.C: can't open file 'dos.h'
  22          #include <bios.h>
*** WARNING C318 IN LINE 22 OF ISA_DMA.C: can't open file 'bios.h'
  23          #include <mem.h>
*** WARNING C318 IN LINE 23 OF ISA_DMA.C: can't open file 'mem.h'
  24          
  25          #include "mainloop.h"
   1      =1  /*
   2      =1     //*************************************************************************
   3      =1     //
   4      =1     //                  P H I L I P S   P R O P R I E T A R Y
   5      =1     //
   6      =1     //           COPYRIGHT (c)   1997 BY PHILIPS SINGAPORE.
   7      =1     //                     --  ALL RIGHTS RESERVED  --
   8      =1     //
   9      =1     // File Name:        MAINLOOP.H
  10      =1     // Author:           Wenkai Du
  11      =1     // Created:          19 Dec 97
  12      =1     // Modified:
  13      =1     // Revision:                 2.1
  14      =1     //
  15      =1     //*************************************************************************
  16      =1     //
  17      =1     // 98/11/25                  Added DMA disable bit. (WK)
  18      =1     //*************************************************************************
  19      =1     */
  20      =1  
  21      =1  
  22      =1  #ifndef __MAINLOOP_H__
  23      =1  #define __MAINLOOP_H__
  24      =1  
  25      =1  
  26      =1  /*
  27      =1     //*************************************************************************
  28      =1     // basic #defines
  29      =1     //*************************************************************************
  30      =1     */
  31      =1  #define MAX_ENDPOINTS      (unsigned char)0x3
  32      =1  
  33      =1  #define EP0_TX_FIFO_SIZE   16
  34      =1  #define EP0_RX_FIFO_SIZE   16
  35      =1  #define EP0_PACKET_SIZE    16
  36      =1  
  37      =1  #define EP1_TX_FIFO_SIZE   16
  38      =1  #define EP1_RX_FIFO_SIZE   16
  39      =1  #define EP1_PACKET_SIZE    16
  40      =1  
  41      =1  #define EP2_TX_FIFO_SIZE   64
  42      =1  #define EP2_RX_FIFO_SIZE   64
  43      =1  #define EP2_PACKET_SIZE    64
  44      =1  
  45      =1  
  46      =1  #define USB_IDLE           0
C51 COMPILER V8.02   ISA_DMA                                                               07/24/2007 14:12:03 PAGE 3   

  47      =1  #define USB_TRANSMIT       1
  48      =1  #define USB_RECEIVE        2
  49      =1  
  50      =1  #define USB_CLASS_CODE_TEST_CLASS_DEVICE                    0xdc
  51      =1  #define USB_SUBCLASS_CODE_TEST_CLASS_D12                    0xA0
  52      =1  #define USB_PROTOCOL_CODE_TEST_CLASS_D12                    0xB0
  53      =1  
  54      =1  /*
  55      =1     //*************************************************************************
  56      =1     // masks
  57      =1     //*************************************************************************
  58      =1  */
  59      =1  
  60      =1  #define USB_RECIPIENT            (unsigned char)0x1F
  61      =1  #define USB_RECIPIENT_DEVICE     (unsigned char)0x00
  62      =1  #define USB_RECIPIENT_INTERFACE  (unsigned char)0x01
  63      =1  #define USB_RECIPIENT_ENDPOINT   (unsigned char)0x02
  64      =1  
  65      =1  #define USB_REQUEST_TYPE_MASK    (unsigned char)0x60
  66      =1  #define USB_STANDARD_REQUEST     (unsigned char)0x00
  67      =1  #define USB_CLASS_REQUEST        (unsigned char)0x20
  68      =1  #define USB_VENDOR_REQUEST       (unsigned char)0x40
  69      =1  
  70      =1  #define USB_REQUEST_MASK         (unsigned char)0x0F
  71      =1  
  72      =1  #define DEVICE_ADDRESS_MASK      0x7F
  73      =1  
  74      =1  /*
  75      =1     //*************************************************************************
  76      =1     // macros
  77      =1     //*************************************************************************
  78      =1  */
  79      =1  #ifdef __C51__
  80      =1          #define SWAP(x)   ((((x) & 0xFF) << 8) | (((x) >> 8) & 0xFF))
  81      =1  #else
           =1         #define SWAP(x)   (x)
           =1         #define code
           =1         #define idata
           =1 #endif
  86      =1  
  87      =1  #define MSB(x)    (((x) >> 8) & 0xFF)
  88      =1  #define LSB(x)    ((x) & 0xFF)
  89      =1  
  90      =1  #define FALSE   0
  91      =1  #define TRUE    (!FALSE)
  92      =1  
  93      =1  /*
  94      =1     //*************************************************************************
  95      =1     // basic typedefs
  96      =1     //*************************************************************************
  97      =1  */
  98      =1  typedef unsigned char   UCHAR;
  99      =1  typedef unsigned short  USHORT;
 100      =1  typedef unsigned long   ULONG;
 101      =1  typedef unsigned char   BOOL;
 102      =1  
 103      =1  /*
 104      =1     //*************************************************************************
 105      =1     // structure and union definitions
 106      =1     //*************************************************************************
 107      =1  */
 108      =1  typedef union _epp_flags
C51 COMPILER V8.02   ISA_DMA                                                               07/24/2007 14:12:03 PAGE 4   

 109      =1  {
 110      =1          struct _flags
 111      =1          {
 112      =1                  unsigned char timer                     : 1;
 113      =1                  unsigned char bus_reset                 : 1;

⌨️ 快捷键说明

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