C51 COMPILER V9.01   SH_IEC60730B_8051F_CLOCK                                              10/11/2023 14:22:16 PAGE 1   


C51 COMPILER V9.01, COMPILATION OF MODULE SH_IEC60730B_8051F_CLOCK
OBJECT MODULE PLACED IN .\output\sh_iec60730b_8051f_clock.obj
COMPILER INVOKED BY: C:\Keil_v5\C51\BIN\C51.EXE code_classb\iec60730_lib\sh_iec60730b_8051f_clock.c LARGE OPTIMIZE(7,SIZ
                    -E) REGFILE(.\output\McuFlash_ISP.ORC) BROWSE INTVECTOR(0X1000) INCDIR(.\header_app;.\header_drv;.\code_gasguage) DEBUG O
                    -BJECTEXTEND PRINT(.\output\sh_iec60730b_8051f_clock.lst) OBJECT(.\output\sh_iec60730b_8051f_clock.obj)

line level    source

   1          /*
   2           * IEC60730 Class B Library for SINOWEALTH 8051 based ICs.
   3           * File:    sh_iec60730b_8051f_clock.c
   4           * Version: 1.0
   5           * Author:  Robin.zhang Chaoming.luo
   6           * Date:    04/21/2023
   7           * SINOWEALTH IS SUPPLYING THIS SOFTWARE FOR USE EXCLUSIVELY ON SINOWEALTH'S 
   8           * MICROCONTROLLER PRODUCTS. IT IS PROTECTED UNDER APPLICABLE COPYRIGHT LAWS. 
   9           * THIS SOFTWARE IS FOR GUIDANCE IN ORDER TO SAVE TIME. AS A RESULT, SINOWEALTH 
  10           * SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES 
  11           * WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR
  12           * THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN 
  13           * CONNECTION WITH THEIR PRODUCTS.
  14           *
  15          */
  16          
  17          
  18          #include "sh_iec60730b_8051f_cfg.h"
*** WARNING C318 IN LINE 18 OF code_classb\iec60730_lib\sh_iec60730b_8051f_clock.c: can't open file 'sh_iec60730b_8051f_
             -cfg.h'
  19          
  20          #if SH_CHK_CLOCK_EN == 1
*** WARNING C322 IN LINE 20 OF code_classb\iec60730_lib\sh_iec60730b_8051f_clock.c: unknown identifier
              SHT_U16 __iec60730b_clk_context;
              SHT_U16 __iec60730b_clk_limit_low;
              SHT_U16 __iec60730b_clk_limit_high;
               /********************************************************************************
               *
               * @brief    Function checks if the testContext value is within the defined limits.
               *
               * @param    void
               *
               * @return   SH_CHK_PASS         - testContext fit into limits.
               *           SH_CHK_FAIL_CLK     - testContext value doesn't fit into limits.
               *           SH_CHK_FAIL_CLK_PROGRESS - reference counter value not read yet.
               *
               *
               ******************************************************************************/
              SHT_RESULT sh_8051f_clk_check()
              {
                  if((__iec60730b_clk_context+1) == 0)
                      return SH_CHK_FAIL_CLK_PROGRESS;
              
                  if(__iec60730b_clk_context >= __iec60730b_clk_limit_high)
                      return SH_CHK_FAIL_CLK;
                  
                  if(__iec60730b_clk_context <= __iec60730b_clk_limit_low)
                      return SH_CHK_FAIL_CLK;
                 
                  return SH_CHK_PASS;
              }
              
              /*******************************************************************************
C51 COMPILER V9.01   SH_IEC60730B_8051F_CLOCK                                              10/11/2023 14:22:16 PAGE 2   

               *
               * @brief    Function initializes the clock test.
               *
               * @param    *pTestContext - pointer to the variable which holds
               *                           captured timer value.
               *
               * @return   void
               *
               ******************************************************************************/
              void sh_8051f_clk_init()
              {
                  __iec60730b_clk_context = 0xFFFFF;
              }
              
              #endif


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =   ----    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


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