其实很简单;

首先 定义 看门狗的初始化

/*
WDCTL = 0x00; //Turn on IDLE to set the watchdog
WDCTL |= 0x08;//The timer interval is set to one second
*/
#define HAL_SYSTEM_WATCH_DOG_1000MS() st(WDCTL = 0x00;WDCTL |=0x08;)

 

然后是调用看门狗,找到一个好的位置,初始化和喂狗

在函数void osal_start_system( void )中

CC2540 看门狗使用

即可

相关文章:

  • 2022-01-07
  • 2021-09-21
  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-04
  • 2022-12-23
  • 2021-05-24
  • 2021-12-09
  • 2021-11-24
  • 2021-08-24
  • 2021-12-05
相关资源
相似解决方案