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

📄 serial.lst

📁 LPC2114 AD采集 uVison2环境编辑
💻 LST
字号:
ARM COMPILER V2.53,  Serial                                                                22/04/07  10:23:46  PAGE 1   


ARM COMPILER V2.53, COMPILATION OF MODULE Serial
OBJECT MODULE PLACED IN Serial.OBJ
COMPILER INVOKED BY: c:\Keil\ARM\BIN\CA.exe Serial.c THUMB DEBUG TABS(4) 

stmt  level    source

    1          /******************************************************************************/
    2          /*  This file is part of the uVision/ARM development tools                    */
    3          /*  Copyright KEIL ELEKTRONIK GmbH 2002-2004                                  */
    4          /******************************************************************************/
    5          /*                                                                            */
    6          /*  SERIAL.C:  Low Level Serial Routines                                      */
    7          /*                                                                            */
    8          /******************************************************************************/
    9          
   10          #include <LPC21xx.H>                     /* LPC21xx definitions               */
*** ERROR C318 IN LINE 10 OF Serial.c: can't open file 'LPC21xx.H'
   11          
   12          #define CR     0x0D
   13          
   14          
   15          void init_serial (void)  {               /* Initialize Serial Interface       */
   16   1        PINSEL0 = 0x00050000;                  /* Enable RxD1 and TxD1              */ 
*** ERROR C67 IN LINE 16 OF SERIAL.C: 'PINSEL0': undefined identifier
   17   1        U1LCR = 0x83;                      /* 8 bits, no Parity, 1 Stop bit     */
*** ERROR C67 IN LINE 17 OF SERIAL.C: 'U1LCR': undefined identifier
   18   1        U1DLL = 97;                        /* 9600 Baud Rate @ 15MHz VPB Clock  */
*** ERROR C67 IN LINE 18 OF SERIAL.C: 'U1DLL': undefined identifier
   19   1        U1LCR = 0x03;                      /* DLAB = 0                          */
*** ERROR C67 IN LINE 19 OF SERIAL.C: 'U1LCR': undefined identifier
   20   1      }
   21          
   22          
   23          int putchar (int ch)  {                  /* Write character to Serial Port    */
   24   1      
   25   1        if (ch == '\n')  {
   26   2          while (!(U1LSR & 0x20));
*** ERROR C67 IN LINE 26 OF SERIAL.C: 'U1LSR': undefined identifier
   27   2          U1THR = CR;                      /* output CR */
*** ERROR C67 IN LINE 27 OF SERIAL.C: 'U1THR': undefined identifier
   28   2        }
   29   1        while (!(U1LSR & 0x20));
*** ERROR C67 IN LINE 29 OF SERIAL.C: 'U1LSR': undefined identifier
   30   1        return (U1THR = ch);
*** ERROR C67 IN LINE 30 OF SERIAL.C: 'U1THR': undefined identifier
   31   1      }
   32          
   33          
   34          int getchar (void)  {                    /* Read character from Serial Port   */
   35   1      
   36   1        while (!(U1LSR & 0x01));
*** ERROR C67 IN LINE 36 OF SERIAL.C: 'U1LSR': undefined identifier
   37   1      
   38   1        return (U1RBR);
*** ERROR C67 IN LINE 38 OF SERIAL.C: 'U1RBR': undefined identifier
   39   1      }

ARM COMPILATION COMPLETE.  0 WARNING(S),  11 ERROR(S)

⌨️ 快捷键说明

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