int main()
{
WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer
//初始化看门狗
WDTCTL = WDT_ARST_1000; // Set Watchdog Timer timeout 1s
while(1)
{
//喂狗
WDTCTL = WDTPW | WDTCNTCL;
}
}
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.
int main()
{
WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer
//初始化看门狗
WDTCTL = WDT_ARST_1000; // Set Watchdog Timer timeout 1s
while(1)
{
//喂狗
WDTCTL = WDTPW | WDTCNTCL;
}
}