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

📄 lpc2103_paypass_ttal1_functions.lst

📁 读RF卡的源代码
💻 LST
📖 第 1 页 / 共 3 页
字号:
ARM COMPILER V2.40e,  LPC2103_PayPass_TTAL1_functions                                      12/12/07  14:35:10  PAGE 1   


ARM COMPILER V2.40e, COMPILATION OF MODULE LPC2103_PayPass_TTAL1_functions
OBJECT MODULE PLACED IN .\LPC2103_PayPass_TTAL1_functions.obj
COMPILER INVOKED BY: C:\DEV\Tools\Keil\ARM\BIN\CA.exe ..\..\..\..\LIB\TARGETS\LPC2103\PAYPASS_TTAL1\sources\LPC2103_PayP
                    -ass_TTAL1_functions.c THUMB DEBUG PRINT(.\LISTING\LPC2103_PAYPASS_TTAL1_FUNCTIONS.LST) TABS(4) PREPRINT(.\LISTING\LPC210
                    -3_PAYPASS_TTAL1_FUNCTIONS.I) OBJECT(.\LPC2103_PayPass_TTAL1_functions.obj) 

stmt  level    source

    1          //=============================================================================
    2          //                  Copyright (C) INSIDE Contactless 1998-2005
    3          //
    4          // INSIDE Contactless reserves the right to make changes, without notice,
    5          // to any product (including application note) herein to improve
    6          // reliability, functionality, or design. INSIDE Contactless advises its
    7          // customers to obtain the latest version of device data sheets to verify,
    8          // before placing orders, that the information being relied upon by the
    9          // customer is current.
   10          //
   11          // INSIDE Contactless makes no warranty that the use will not infringe any
   12          // third party patent, copyright or trademark.
   13          //
   14          // Information furnished by INSIDE Contactless is believed to be accurate
   15          // and reliable. However, INSIDE Contactless does not assume any liability
   16          // resulting from the application or use of any product described within.
   17          //
   18          // All rights are reserved. Reproduction in whole or in part is prohibited
   19          // without the written consent of the copyright owner.
   20          //
   21          //      Bat 11a,
   22          //      Parc Club du Golf,
   23          //      Z.A.C. du Pichaury                      Tel :   +33 (0)4.42.39.33.00
   24          //      13856 Aix-en-Provence Cedex 3           Fax :   +33 (0)4.42.39.63.19
   25          //      FRANCE                                  Email : info@insidefr.com
   26          //
   27          //-----------------------------------------------------------------------------
   28          // Project Code : PAYPASS LIBRARY
   29          // Project Name : PAYPASS LIBRARY
   30          // Module Name  : LPC2103_PayPass_functions.c
   31          // Platform dev : Keil 礦ision 3 (IDE ) + Keil ARM Compiler
   32          // Target       : LPC2103 (ARM7TDMI Core)
   33          // Language     : C ANSI
   34          // Revision     : 1.0
   35          // Description  : Special functions requiring to be modified according to the target and the user needs (
             -i.e Choice of IO for the SPI)
   36          //                also SDO_MASK SDI_MASK SCK_MASK and CS_MASK must be modified according to 
   37          //                IOs choosen for SPI communication
   38          //=============================================================================
   39          // When     Who Ver     What
   40          // 06-05-12 FPK 1.2     creation
   41          //=============================================================================
   42          
   43          
   44          // Defines for common C writting
   45          #include "Defines_C.h"              // TRUE, FALSE, etc
*** ERROR C318 IN LINE 45 OF ..\..\..\..\LIB\TARGETS\LPC2103\PAYPASS_TTAL1\sources\LPC2103_PayPass_TTAL1_functions.c: ca
             -n't open file 'Defines_C.h'
   46          
   47          // Defines for PicoRead
   48          #include "PRD_PicoReadRF_Pages_Parameters.h" // Definition of PicoRead chip registers
*** ERROR C318 IN LINE 48 OF ..\..\..\..\LIB\TARGETS\LPC2103\PAYPASS_TTAL1\sources\LPC2103_PayPass_TTAL1_functions.c: ca
             -n't open file 'PRD_PicoReadRF_Pages_Parameters.h'
   49          
   50          #include "TARGET.h"
*** ERROR C318 IN LINE 50 OF ..\..\..\..\LIB\TARGETS\LPC2103\PAYPASS_TTAL1\sources\LPC2103_PayPass_TTAL1_functions.c: ca
             -n't open file 'TARGET.h'
ARM COMPILER V2.40e,  LPC2103_PayPass_TTAL1_functions                                      12/12/07  14:35:10  PAGE 2   

   51          
   52          unsigned char APBDivider;
   53          
   54          //-----------------------------------------------------------------------------
   55          // Function name : kbhit
   56          //-----------------------------------------------------------------------------
   57          // Description : Detect if a button is pressed.
   58          //
   59          // IN       :   - none -
   60          // OUT      :   - none -
   61          // RETURN   :   '0' if no button pressed, '1' if button pressed
   62          // Notes    :   Not used in this application note
   63          //-----------------------------------------------------------------------------
   64          int kbhit()
   65          { 
   66   1          return (U0LSR & 0x01);
*** ERROR C67 IN LINE 66 OF ..\..\..\..\LIB\TARGETS\LPC2103\PAYPASS_TTAL1\SOURCES\LPC2103_PAYPASS_TTAL1_FUNCTIONS.C: 'U0
             -LSR': undefined identifier
   67   1      }
   68          
   69          //-----------------------------------------------------------------------------
   70          // Function name : bit_testChar
   71          //-----------------------------------------------------------------------------
   72          // Description : This function test a bit of an unsigned char 
   73          //
   74          // IN       :   RegisterAdd : Address of an unsigned char
   75          //              bitNumber : Number of the bit to set
   76          // OUT      :   - none -
   77          // RETURN   :   - none -
   78          // Notes    :   - none -
   79          //-----------------------------------------------------------------------------
   80          unsigned char bit_testChar(unsigned char* RegisterAdd,unsigned int bitNumber)
   81          {
   82   1        if(((*RegisterAdd) & (1<<bitNumber))>0)
   83   1        {
   84   2          return 0x01;
   85   2        }
   86   1        else
   87   1        {
   88   2          return 0x00;
   89   2        }
   90   1      
   91   1      }
   92          
   93          
   94          //-----------------------------------------------------------------------------
   95          // Function name : bit_setChar
   96          //-----------------------------------------------------------------------------
   97          // Description : This function set a bit of an unsigned char 
   98          //
   99          // IN       :   RegisterAdd : Address of an unsigned char
  100          //              bitNumber : Number of the bit to set
  101          // OUT      :   - none -
  102          // RETURN   :   - none -
  103          // Notes    :   - none -
  104          //-----------------------------------------------------------------------------
  105          void bit_setChar(unsigned char* RegisterAdd,unsigned int bitNumber)
  106          {
  107   1          *RegisterAdd |= (1<<bitNumber); 
  108   1      }
  109          
  110          
  111          //-----------------------------------------------------------------------------
  112          // Function name : bit_clearChar
  113          //-----------------------------------------------------------------------------
  114          // Description : This function clear a bit of an unsigned char
ARM COMPILER V2.40e,  LPC2103_PayPass_TTAL1_functions                                      12/12/07  14:35:10  PAGE 3   

  115          //
  116          // IN       :   RegisterAdd : Address of an unsigned char
  117          //              bitNumber : Number of the bit to clear
  118          // OUT      :   - none -
  119          // RETURN   :   - none -
  120          // Notes    :   - none -
  121          //-----------------------------------------------------------------------------
  122          void bit_clearChar(unsigned char* RegisterAdd,unsigned int bitNumber)
  123          {
  124   1          *RegisterAdd &= 0xFFFFFFFF^(1<<bitNumber);  
  125   1      }
  126          
  127          
  128          //-----------------------------------------------------------------------------
  129          // Function name : bit_setREG
  130          //-----------------------------------------------------------------------------
  131          // Description : This function set a of an unsigned long 
  132          //
  133          // IN       :   RegisterAdd : Address of an unsigned char
  134          //              bitNumber : Number of the bit to clear
  135          // OUT      :   - none -
  136          // RETURN   :   - none -
  137          // Notes    :   - none -
  138          //-----------------------------------------------------------------------------
  139          void bit_setREG(unsigned long* RegisterAdd,unsigned int bitNumber)
  140          {
  141   1          *RegisterAdd |= (1<<bitNumber);
  142   1      }
  143          
  144          
  145          //-----------------------------------------------------------------------------
  146          // Function name : bit_testREG
  147          //-----------------------------------------------------------------------------
  148          // Description : This function test a bit of an unsigned long (commonly used to clear a register bit)
  149          //
  150          // IN       :   RegisterAdd : Address of an unsigned long
  151          //              bitMask : Mask of the bit to test (i.e to test bit 3 : bitMask=0x08)
  152          // OUT      :   - none -
  153          // RETURN   :   The value of the focused bit (0 or 1)
  154          // Notes    :   - none -
  155          //
  156          //
  157          //
  158          //  i.e :   bit_testREG(&TOIR,0x00000001);    Test the bit 0 of the register TOIR
  159          //          bit_testREG(&TOIR,0x00000002);    Test the bit 1 of the register TOIR
  160          //          bit_testREG(&TOIR,0x00000004);    Test the bit 2 of the register TOIR
  161          //          bit_testREG(&TOIR,0x00000008);    Test the bit 3 of the register TOIR
  162          //
  163          //-----------------------------------------------------------------------------
  164          unsigned char bit_testREG(unsigned long* RegisterAdd,unsigned long bitMask)
  165          {
  166   1          if ((*(unsigned long*)RegisterAdd & bitMask)!=0)
  167   1          {
  168   2              return (TRUE);  
*** ERROR C67 IN LINE 168 OF ..\..\..\..\LIB\TARGETS\LPC2103\PAYPASS_TTAL1\SOURCES\LPC2103_PAYPASS_TTAL1_FUNCTIONS.C: 'T
             -RUE': undefined identifier
  169   2          }  
  170   1          else 
  171   1          {
  172   2              return(FALSE);
*** ERROR C67 IN LINE 172 OF ..\..\..\..\LIB\TARGETS\LPC2103\PAYPASS_TTAL1\SOURCES\LPC2103_PAYPASS_TTAL1_FUNCTIONS.C: 'F
             -ALSE': undefined identifier
  173   2          }
  174   1      }
  175          
  176           
ARM COMPILER V2.40e,  LPC2103_PayPass_TTAL1_functions                                      12/12/07  14:35:10  PAGE 4   

  177          //-----------------------------------------------------------------------------
  178          // Function name : delay_us
  179          //-----------------------------------------------------------------------------
  180          // Description : This function waits X 祍    
  181          //
  182          // IN       :   delayus : Number of 祍 to wait  (here MINIMUM IS 50)

⌨️ 快捷键说明

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