C51 COMPILER V9.54   LPFINIT                                                               08/25/2015 15:24:24 PAGE 1   


C51 COMPILER V9.54, COMPILATION OF MODULE LPFINIT
OBJECT MODULE PLACED IN .\Output\LPFInit.obj
COMPILER INVOKED BY: C:\Keil_v5\C51\BIN\C51.EXE ..\User\Source\LPFInit.c LARGE OMF2 WARNINGLEVEL(0) OPTIMIZE(8,SPEED) BR
                    -OWSE INCDIR(..\Library\FU68xx_Hardware_Driver\Include;..\User\Include) DEBUG PRINT(.\Listing\LPFInit.lst) TABS(2) OBJECT
                    -(.\Output\LPFInit.obj)

line level    source

   1          #include <FTC68xx.h>
   2          #include <Myproject.h>
*** ERROR C141 IN LINE 33 OF ..\User\Include\MotorControl.h: syntax error near 'uint8'
*** ERROR C129 IN LINE 33 OF ..\User\Include\MotorControl.h: missing ';' before 'FlagFO'
   3          
   4          // uint16 LPF(uint16 Xn1, uint16 Xn0, uint16 K)
   5          // {
   6          //  uint16 Temp16 = 0;
   7          //  uint32 Temp32 = 0;
   8          //  
   9          //  Temp32 = (((uint32)Xn1 - (uint32)Xn0) * (uint32)K) >> 15;
  10          //  Temp16 = Xn0 + (uint16)Temp32;
  11          //  return Temp16;
  12          // }
  13          
  14          
  15          uint16 LPF(uint16 Xn1, uint16 Xn0, uint16 K)
  16          { 
  17            LPF_K = K;
  18            LPF_X = Xn1;
  19            LPF_Y = Xn0;  
  20            SetBit(SV_CR, LPFSTA, 1);
  21            _nop_();
  22            _nop_();
  23            _nop_();
  24            _nop_();
  25            _nop_();
  26            _nop_();
  27            _nop_();
  28            _nop_();
  29            _nop_();
  30            _nop_();  
  31            return LPF_Y;
  32          }

C51 COMPILATION COMPLETE.  0 WARNING(S),  2 ERROR(S)
