C51 COMPILER V9.56.0.0   BSP_WDT                                                           02/14/2025 12:21:42 PAGE 1   


C51 COMPILER V9.56.0.0, COMPILATION OF MODULE BSP_WDT
OBJECT MODULE PLACED IN .\Objects\bsp_wdt.obj
COMPILER INVOKED BY: C:\Keil_v5\C51\BIN\C51.EXE ..\bsp\bsp_wdt.c LARGE OPTIMIZE(8,SPEED) BROWSE INCDIR(..\bsp;..\app) DE
                    -BUG OBJECTEXTEND PRINT(.\Listings\bsp_wdt.lst) TABS(2) OBJECT(.\Objects\bsp_wdt.obj)

line level    source

   1          #include "bsp.h"
   2          
   3          
   4          /*************************************************************
   5           * 看门狗功能
   6           *************************************************************/
   7          void hal_wdt_init(void)
   8          {
   9   1        WDTCCR = 0x00; // 将关闭WDT 功能（但不关闭内部低频RC），即相当于禁止WDT
  10   1        WDTC = 0x5F;   //  允许复位, 清零, 空闲/掉电模式下禁止WDT, 时钟1/1024分频
  11   1        WDTCCR = 0xFF; // 启动WDT 时间为0xFF*1024/44000, 约6s
  12   1      }
  13          
  14          void hal_feed_dog(void)
  15          {
  16   1          WDTC |= 0x10;                   // 清狗
  17   1      }
  18          


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


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