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

📄 f34x_msd_scsi.lst

📁 PC机通过USB识别仪器上的SD卡!可以满足仪器存储大量数据的要求!
💻 LST
📖 第 1 页 / 共 5 页
字号:
C51 COMPILER V7.50   F34X_MSD_SCSI                 11/28/2006 10:54:24 PAGE 1   


C51 COMPILER V7.50, COMPILATION OF MODULE F34X_MSD_SCSI
OBJECT MODULE PLACED IN F34x_MSD_Scsi.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\c51.exe F34x_MSD_Scsi.c PW(80) SB LC OT(9,S
                    -IZE) CD DB OE DF(__F340_VER__) LARGE

line level    source

   1          //----------------------------------------------------------------
             --------------
   2          // F34x_MSD_Scsi.c
   3          //----------------------------------------------------------------
             --------------
   4          // Copyright 2006 Silicon Laboratories, Inc.
   5          // http://www.silabs.com
   6          //
   7          // Program Description:
   8          //
   9          // This file contains functions which responses to requests from U
             -SB device
  10          //
  11          //
  12          //
  13          // How To Test:    See Readme.txt
  14          //
  15          //
  16          // FID:            34X000051
  17          // Target:         C8051F34x
  18          // Tool chain:     Keil
  19          // Command Line:   See Readme.txt
  20          // Project Name:   F34x_USB_MSD
  21          //
  22          // Release 1.1
  23          //    -All changes by PKC
  24          //    -09 JUN 2006
  25          //    -No changes; incremented revision number to match project re
             -vision
  26          //
  27          // Release 1.0
  28          //    -Initial Release
  29          //
  30          
  31          //----------------------------------------------------------------
             --------------
  32          // Includes
  33          //----------------------------------------------------------------
             --------------
  34          
  35          #include "F34x_MSD_Scsi.h"
   1      =1  //----------------------------------------------------------------
             --------------
   2      =1  // F34x_MSD_Scsi.h
   3      =1  //----------------------------------------------------------------
             --------------
   4      =1  // Copyright 2006 Silicon Laboratories, Inc.
   5      =1  // http://www.silabs.com
   6      =1  //
   7      =1  // Program Description:
   8      =1  //
   9      =1  // Header file with function prototypes relevant to F34x_Scsi.c
  10      =1  //
  11      =1  //
C51 COMPILER V7.50   F34X_MSD_SCSI                 11/28/2006 10:54:24 PAGE 2   

  12      =1  // FID:            34X000052
  13      =1  // Target:         C8051F34x
  14      =1  // Tool chain:     Keil
  15      =1  // Command Line:   See Readme.txt
  16      =1  // Project Name:   F34x_USB_MSD
  17      =1  //
  18      =1  // Release 1.1
  19      =1  //    -All changes by PKC
  20      =1  //    -09 JUN 2006
  21      =1  //    -No changes; incremented revision number to match project re
             -vision
  22      =1  //
  23      =1  // Release 1.0
  24      =1  //    -Initial Release
  25      =1  //
  26      =1  
  27      =1  //----------------------------------------------------------------
             --------------
  28      =1  // Header File Preprocessor Directive
  29      =1  //----------------------------------------------------------------
             --------------
  30      =1  
  31      =1  #ifndef _SCSI_H_
  32      =1  #define _SCSI_H_
  33      =1  
  34      =1  #include "F34x_MSD_USB_Main.h"
   1      =2  //----------------------------------------------------------------
             --------------
   2      =2  // F34x_MSD_USB_Main.h
   3      =2  //----------------------------------------------------------------
             --------------
   4      =2  // Copyright 2006 Silicon Laboratories, Inc.
   5      =2  // http://www.silabs.com
   6      =2  //
   7      =2  // Program Description:
   8      =2  //
   9      =2  // Main header file for USB firmware. Includes function prototypes
             -,
  10      =2  // standard constants, and configuration constants.//
  11      =2  //
  12      =2  // FID:            34X000063
  13      =2  // Target:         C8051F34x
  14      =2  // Tool chain:     Keil
  15      =2  // Command Line:   See Readme.txt
  16      =2  // Project Name:   F34x_USB_MSD
  17      =2  //
  18      =2  // Release 1.1
  19      =2  //    -All changes by PKC
  20      =2  //    -09 JUN 2006
  21      =2  //    -No changes; incremented revision number to match project re
             -vision
  22      =2  //
  23      =2  // Release 1.0
  24      =2  //    -Initial Release
  25      =2  //
  26      =2  // 11/22/02 - DM: 1. Updated function prototypes and added constan
             -ts
  27      =2  //                to F34x_USB_Main.h with sample interrupt firmwar
             -e.
  28      =2  
  29      =2  //----------------------------------------------------------------
             --------------
C51 COMPILER V7.50   F34X_MSD_SCSI                 11/28/2006 10:54:24 PAGE 3   

  30      =2  // Header File Preprocessor Directive
  31      =2  //----------------------------------------------------------------
             --------------
  32      =2  
  33      =2  #ifndef _USB_MAIN_H_
  34      =2  #define _USB_MAIN_H_
  35      =2  
  36      =2  #include "F34x_MSD_Definitions.h"
   1      =3  //----------------------------------------------------------------
             --------------
   2      =3  // F34x_MSD_Definitions.h
   3      =3  //----------------------------------------------------------------
             --------------
   4      =3  // Copyright 2006 Silicon Laboratories, Inc.
   5      =3  // http://www.silabs.com
   6      =3  //
   7      =3  // Program Description:
   8      =3  //
   9      =3  // Header file with all definitions.
  10      =3  //
  11      =3  //
  12      =3  // FID:            34X000032
  13      =3  // Target:         C8051F34x
  14      =3  // Tool chain:     Keil
  15      =3  // Command Line:   See Readme.txt
  16      =3  // Project Name:   F34x_USB_MSD
  17      =3  //
  18      =3  // Release 1.1
  19      =3  //    -All changes by PKC
  20      =3  //    -09 JUN 2006
  21      =3  //    -Replaced SFR definitions file "c8051f320.h" with "c8051f340
             -.h"
  22      =3  //
  23      =3  // Release 1.0
  24      =3  //    -Initial Release
  25      =3  //
  26      =3  
  27      =3  //----------------------------------------------------------------
             --------------
  28      =3  // Header File Preprocessor Directive
  29      =3  //----------------------------------------------------------------
             --------------
  30      =3  
  31      =3  #ifndef __DEFINITIONS_H__
  32      =3  #define __DEFINITIONS_H__
  33      =3  
  34      =3  #define DEBUG_TIMEOUTS
  35      =3  #include "c8051f340.h"
   1      =4  //----------------------------------------------------------------
             --------------
   2      =4  // C8051F340.h
   3      =4  //----------------------------------------------------------------
             --------------
   4      =4  // Copyright 2005 Silicon Laboratories, Inc.
   5      =4  // http://www.silabs.com
   6      =4  //
   7      =4  // Program Description:
   8      =4  //
   9      =4  // Register/bit definitions for the C8051F34x family.
  10      =4  //
  11      =4  //
  12      =4  // FID:            34X000002
C51 COMPILER V7.50   F34X_MSD_SCSI                 11/28/2006 10:54:24 PAGE 4   

  13      =4  // Target:         C8051F340, 'F341, 'F342, 'F343, 'F344, 'F345, '
             -F346, 'F347
  14      =4  // Tool chain:     Keil
  15      =4  // Command Line:   None
  16      =4  //
  17      =4  // Release 1.0
  18      =4  //    -Initial Release (GP\PKC)
  19      =4  //    -13 DEC 2005
  20      =4  
  21      =4  //----------------------------------------------------------------
             --------------
  22      =4  // Header File Preprocessor Directive
  23      =4  //----------------------------------------------------------------
             --------------
  24      =4  
  25      =4  #ifndef C8051F340_H
  26      =4  #define C8051F340_H
  27      =4  
  28      =4  //----------------------------------------------------------------
             --------------
  29      =4  // Byte Registers
  30      =4  //----------------------------------------------------------------
             --------------
  31      =4  
  32      =4  sfr  P0           =  0x80;             // Port 0 Latch
  33      =4  sfr  SP           =  0x81;             // Stack Pointer
  34      =4  sfr  DPL          =  0x82;             // Data Pointer Low
  35      =4  sfr  DPH          =  0x83;             // Data Pointer High
  36      =4  sfr  EMI0TC       =  0x84;             // EMIF Timing
  37      =4  sfr  EMI0CF       =  0x85;             // EMIF Configuration
  38      =4  sfr  OSCLCN       =  0x86;             // Internal Low-Freq Oscill
             -ator Control
  39      =4  sfr  PCON         =  0x87;             // Power Control
  40      =4  sfr  TCON         =  0x88;             // Timer/Counter Control
  41      =4  sfr  TMOD         =  0x89;             // Timer/Counter Mode
  42      =4  sfr  TL0          =  0x8A;             // Timer/Counter 0 Low
  43      =4  sfr  TL1          =  0x8B;             // Timer/Counter 1 Low
  44      =4  sfr  TH0          =  0x8C;             // Timer/Counter 0 High
  45      =4  sfr  TH1          =  0x8D;             // Timer/Counter 1 High
  46      =4  sfr  CKCON        =  0x8E;             // Clock Control
  47      =4  sfr  PSCTL        =  0x8F;             // Program Store R/W Contro
             -l
  48      =4  sfr  P1           =  0x90;             // Port 1 Latch
  49      =4  sfr  TMR3CN       =  0x91;             // Timer/Counter 3Control
  50      =4  sfr  TMR3RLL      =  0x92;             // Timer/Counter 3 Reload L
             -ow
  51      =4  sfr  TMR3RLH      =  0x93;             // Timer/Counter 3 Reload H
             -igh
  52      =4  sfr  TMR3L        =  0x94;             // Timer/Counter 3Low
  53      =4  sfr  TMR3H        =  0x95;             // Timer/Counter 3 High
  54      =4  sfr  USB0ADR      =  0x96;             // USB0 Indirect Address Re
             -gister
  55      =4  sfr  USB0DAT      =  0x97;             // USB0 Data Register
  56      =4  sfr  SCON0        =  0x98;             // UART0 Control
  57      =4  sfr  SBUF0        =  0x99;             // UART0 Data Buffer
  58      =4  sfr  CPT1CN       =  0x9A;             // Comparator1 Control
  59      =4  sfr  CPT0CN       =  0x9B;             // Comparator0 Control
  60      =4  sfr  CPT1MD       =  0x9C;             // Comparator1 Mode Selecti
             -on
  61      =4  sfr  CPT0MD       =  0x9D;             // Comparator0 Mode Selecti
             -on
  62      =4  sfr  CPT1MX       =  0x9E;             // Comparator1 MUX Selectio
C51 COMPILER V7.50   F34X_MSD_SCSI                 11/28/2006 10:54:24 PAGE 5   

             -n
  63      =4  sfr  CPT0MX       =  0x9F;             // Comparator0 MUX Selectio
             -n
  64      =4  sfr  P2           =  0xA0;             // Port 2 Latch
  65      =4  sfr  SPI0CFG      =  0xA1;             // SPI Configuration
  66      =4  sfr  SPI0CKR      =  0xA2;             // SPI Clock Rate Control
  67      =4  sfr  SPI0DAT      =  0xA3;             // SPI Data

⌨️ 快捷键说明

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