#include #include int main(void) { int i; int quit=0; Print("Start!\n\r"); EnableWDT(); while(!quit) { Print("press any key to keep alive or re-start IView..."); i=Getch(); if((i=='q')||(i=='Q'))quit=1; else { RefreshWDT(); Print("alive\n\r"); } } DisableWDT(); return 0; }