// filename COP12.H // Computer Operating Properly (COP) will cause // a reset after 2 seconds if your program does not // write 0x55 then write 0xAA to the COPRST port // COP reset could have been disabled by writing COPCTL=0; // In this module however, COP is active // Consequently, this module will create a TOF thread // to keep the active COP from generating a COP reset // Add COP12.H and COP12.C files to your application, and // call COPinit() after your initialization so that a // background TOF interrupt thread can handle COP // This module will also make Port T bit 6 an output, // and toggle its value // Last modified 8/17/00 by Jonathan W. Valvano // Copyright 2000 by Jonathan W. Valvano, valvano@uts.cc.utexas.edu // You may use, edit, run or distribute this file // as long as the above copyright notice remains // Initialize TOF interrupts, enable timer, // make PT6 an output, and enable interrupts void COPinit(void);