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

📄 spiisr.lst

📁 pulse width modulation code using servo motor
💻 LST
字号:
ARM COMPILER V2.32a,  spiisr                                                               20/03/09  12:45:54  PAGE 1   


ARM COMPILER V2.32a, COMPILATION OF MODULE spiisr
OBJECT MODULE PLACED IN spiisr.OBJ
COMPILER INVOKED BY: C:\Keil\ARM\BIN\CA.exe spiisr.c THUMB BROWSE DEBUG TABS(4) 

stmt  level    source

    1             Void init_mcu_port (void)
    2          {
*** ERROR C42 IN LINE 2 OF SPIISR.C: 'init_mcu_port': not in formal parameter list
*** ERROR C25 IN LINE 2 OF SPIISR.C: syntax error near '{'
    3          // SPI port: P0.4=SCK0, P0.5=MISO0, P0.6=MOSI0, P0.7=SSEL0
    4          PINSEL0 |= 0x20001500; // set SCK0, MISO0, SSEL0, EINT1
*** WARNING C34 IN LINE 4 OF SPIISR.C: 'PINSEL0': missing declaration specifiers
*** ERROR C42 IN LINE 4 OF SPIISR.C: 'PINSEL0': not in formal parameter list
    5          // Bit 29:28 = p0.14 => 10=EINT1
    6          // Bit 15:8 = p0.4-7 => SPIO0 (SCLK, MISO, MOSI)
    7          VICIntSelect |= 0x00008000; // enable a VIC Channel as FIQ
*** WARNING C34 IN LINE 7 OF SPIISR.C: 'VICIntSelect': missing declaration specifiers
*** ERROR C42 IN LINE 7 OF SPIISR.C: 'VICIntSelect': not in formal parameter list
    8          VICIntEnable |= 0x00008000; // enable EINT1
*** WARNING C34 IN LINE 8 OF SPIISR.C: 'VICIntEnable': missing declaration specifiers
*** ERROR C42 IN LINE 8 OF SPIISR.C: 'VICIntEnable': not in formal parameter list
    9          // Bit 17-14 = EINT3-0
   10          VICDefVectAddr = (unsigned long) DefaultIRQ; // set Default interrupt vector
*** ERROR C142 IN LINE 10 OF SPIISR.C: illegal initialization
*** ERROR C67 IN LINE 10 OF SPIISR.C: 'DefaultIRQ': undefined identifier
   11          // GPIO direction
   12          IO0DIR |= 0x000000D0; // set SCK0, MOSI0, SSEL0 as output and MISO0 as input
*** WARNING C34 IN LINE 12 OF SPIISR.C: 'IO0DIR': missing declaration specifiers
*** ERROR C42 IN LINE 12 OF SPIISR.C: 'IO0DIR': not in formal parameter list
*** ERROR C25 IN LINE 12 OF SPIISR.C: syntax error near '|='
   13          // Bit 29:28 = p0.14 (set EINT1 as input)
   14          // Bit 15:8 = p0.7-4 (SSEL0, MOS10, MISO0, SCK0)
   15          // GPIO setting
   16          IO0SET |= 0x00000080; // set p0.7 (SSEL0) to high (disable SPI slave chip select)
*** WARNING C34 IN LINE 16 OF SPIISR.C: 'IO0SET': missing declaration specifiers
*** ERROR C42 IN LINE 16 OF SPIISR.C: 'IO0SET': not in formal parameter list
   17          // Control the rate of the APB clock in relation to the processor clock
   18          VPBDIV = 0x1; // set APB clock to same as processor clock
*** ERROR C142 IN LINE 18 OF SPIISR.C: illegal initialization
   19          // SPI Clock Counter Register to control the frequency of master抯 clock
   20          S0SPCCR = 0x6; // set SCLK (SPI clock)
*** ERROR C142 IN LINE 20 OF SPIISR.C: illegal initialization
   21          // SPI Control Register to control the SPI operation
   22          S0SPCR = 0x20; // set SPI mode 0 (CPHA=0, CPOL=0), master mode, MSB first
*** ERROR C142 IN LINE 22 OF SPIISR.C: illegal initialization
   23          // set SPI interrupt enabled, 8 bits of SPI data per transfer
   24          
   25          }
*** ERROR C25 IN LINE 25 OF SPIISR.C: syntax error near '}'
   26          
   27          
   28             Void SC16IS752_Init_ChA (void) // program channel A for SPI-UART
   29          { // set 115200 baud, 8N1
*** ERROR C42 IN LINE 29 OF SPIISR.C: 'SC16IS752_Init_ChA': not in formal parameter list
*** ERROR C25 IN LINE 29 OF SPIISR.C: syntax error near '{'
   30          SPI_wr_752 (LCR, 0x80, 0); // 0x80 to program baud rate
*** ERROR C25 IN LINE 30 OF SPIISR.C: syntax error near '0x80'
*** ERROR C42 IN LINE 30 OF SPIISR.C: 'SPI_wr_752': not in formal parameter list
   31          SPI_wr_752 (DLL, 0x08, 0); // 0x08 = 115.2K with X1 = 14.7456 MHz
*** ERROR C25 IN LINE 31 OF SPIISR.C: syntax error near '0x08'
*** ERROR C42 IN LINE 31 OF SPIISR.C: 'SPI_wr_752': not in formal parameter list
   32          SPI_wr_752 (DLM, 0x00, 0); // divisor = 0x0008 for 115200 bps
*** ERROR C25 IN LINE 32 OF SPIISR.C: syntax error near '0x00'
*** ERROR C42 IN LINE 32 OF SPIISR.C: 'SPI_wr_752': not in formal parameter list
ARM COMPILER V2.32a,  spiisr                                                               20/03/09  12:45:54  PAGE 2   

   33          SPI_wr_752 (LCR, 0xBF, 0); // access EFR register
*** ERROR C25 IN LINE 33 OF SPIISR.C: syntax error near '0xBF'
*** ERROR C42 IN LINE 33 OF SPIISR.C: 'SPI_wr_752': not in formal parameter list
   34          SPI_wr_752 (EFR, 0X10, 0); // enable enhanced registers
*** ERROR C25 IN LINE 34 OF SPIISR.C: syntax error near '0X10'
*** ERROR C42 IN LINE 34 OF SPIISR.C: 'SPI_wr_752': not in formal parameter list
   35          SPI_wr_752 (LCR,0x03, 0); // 8 data bit, 1 stop bit, no parity
*** ERROR C25 IN LINE 35 OF SPIISR.C: syntax error near '0x03'
*** ERROR C42 IN LINE 35 OF SPIISR.C: 'SPI_wr_752': not in formal parameter list
   36          //SPI_wr_752 (FCR, 0x01, 0); // enable FIFO mode
   37          /SPI_wr_752 (IODIR, 0xFF, 0); // set GPIO [7:0] to output
*** ERROR C25 IN LINE 37 OF SPIISR.C: syntax error near '/'
*** ERROR C7 IN LINE 37 OF SPIISR.C: compilation aborted

ARM COMPILATION COMPLETE.  5 WARNING(S),  30 ERROR(S)

⌨️ 快捷键说明

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