// _HC12Setup.c #include <912d60.h> #include "kernel.h" void _HC12Setup(void) { // set the register base to 0x800 //*(volatile unsigned char *)0x0011 = 0x08; // set up the COP WATCHDOG clock monitor for 524.288 ms COPCTL = 0xC5; // COP on //COPCTL = 0x00; // COP off // set up the RTI INTERRUPT RTICTL = 0x86; // enable RTI at 65.536 msec. RTIFLG = 0x80; // clear real time interrupt flag INTR_OFF(); // disable/mask all maskable interrupts }