This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

请问如何在CC2538的Z-Stack上开启看门狗,编译未找到“WatchDogEnable”

Other Parts Discussed in Thread: CC2538, Z-STACK

硬件:CC2538

协议栈:Z-Stack Mesh 1.0.0

例程:GenericApp.eww

问题描述:

在ZMain.c中,有开启看门狗的语句,如下:

#ifdef WDT_IN_PM1
  /* If WDT is used, this is a good place to enable it. */
  WatchDogEnable( WDTIMX );
#endif

但是预编译WDT_IN_PM1后,提示:

Error[Pe223]: function "WatchDogEnable" declared implicitly D:\Z-Stack Mesh 1.0.0\Projects\zstack\ZMain\TI2538DB\ZMain.c 146

Error[Pe020]: identifier "WDTIMX" is undefined D:\Z-Stack Mesh 1.0.0\Projects\zstack\ZMain\TI2538DB\ZMain.c 146

请问如何解决??