1 #include "gpsim_assert.h"
4 /* configword.c - illustrates how the configuration word can
7 unsigned char failures=0;
11 typedef unsigned int word;
12 static word __at(0x2007) _config = _WDT_OFF & _PWRTE_ON;
14 static __code char __at(__CONFIG2L) _conf2l = _PUT_ON_2L;
15 static __code char __at(__CONFIG2H) _conf2h = _WDT_OFF_2H;
18 /* TODO -- write a test that puts the PIC to sleep,
19 * and verify that the WDT wakes it up */
24 ASSERT(MANGLE(failures) == 0);