C51 COMPILER V9.52.0.0   CRCCOMPUTE                                                        09/26/2018 11:33:36 PAGE 1   


C51 COMPILER V9.52.0.0, COMPILATION OF MODULE CRCCOMPUTE
OBJECT MODULE PLACED IN .\Output\CRCCompute.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE ..\User\Source\Function\CRCCompute.c LARGE OMF2 WARNINGLEVEL(0) OPTIMIZE(5,
                    -SPEED) BROWSE INCDIR(..\Library\FU68xx_Hardware_Driver\Include;..\User\Include) DEBUG PRINT(.\Listing\CRCCompute.lst) OB
                    -JECT(.\Output\CRCCompute.obj)

line level    source

   1          /**************************** (C) COPYRIGHT 2018 Fortiortech shenzhen *****************************
   2          * File Name          : CRCCompute.c
   3          * Author             : Cooper Fang, Fortiortech Appliction Team
   4          * Version            : V1.0
   5          * Date               : 2018-09-25
   6          * Description        : This file contains the function used for CRC-verifying.
   7          ***************************************************************************************************
   8          * All Rights Reserved
   9          **************************************************************************************************/
  10          
  11          /* Includes -------------------------------------------------------------------------------------*/
  12          #include <FU68xx_2.h>
  13          #include <Myproject.h>
  14          
  15          CRCDealType CRCDeal;                                                                                // ¶¨Ò
             -åÒ»¸öCRCÐ£Ñé±äÁ¿½á¹¹Ìå
  16          
  17          void CRC16Compute(uint8 CRCData[5])        
  18          {
  19   1              uint8 j = 0;
  20   1              
  21   1              ClrBit(CRC_CR, CRCVAL);                                                                         // CRCVAL
             -ÖÃ0£º½«CRC ½á¹û³õÊ¼»¯Îª 0x0000
  22   1              SetBit(CRC_CR, CRCDINI);                                                                        // CRC½á¹
             -û³õÊ¼»¯Ê¹ÄÜ£¬1£º³õÊ¼»¯ÓÐÐ§
  23   1              
  24   1              for( j = 0; j < 5; j++ )                                                                        // Ð´Èë´ý
             -½øÐÐCRC16¼ÆËãµÄÊý¾Ý
  25   1              {
  26   2                      CRC_DIN = CRCData[j];
  27   2              }
  28   1              
  29   1              SetBit(CRC_CR, CRCPNT);
  30   1              CRCDeal.CRCValueHigh = CRC_DR;                                                                  // ¶ÁÈ¡¼Æ
             -Ëã½á¹û¸ß°ËÎ»
  31   1              ClrBit(CRC_CR, CRCPNT);
  32   1              CRCDeal.CRCValueLow  = CRC_DR;                                                                  // ¶ÁÈ¡¼Æ
             -Ëã½á¹ûµÍ°ËÎ»
  33   1      }


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =     84    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =      2       3
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
   EDATA SIZE       =   ----    ----
   HDATA SIZE       =   ----    ----
   XDATA CONST SIZE =   ----    ----
   FAR CONST SIZE   =   ----    ----
C51 COMPILER V9.52.0.0   CRCCOMPUTE                                                        09/26/2018 11:33:36 PAGE 2   

END OF MODULE INFORMATION.


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