USB-BDI
|
00001 /* USB-BDI Used for programming and debugging a MPC555 over USB 00002 * 00003 * Copyright 2005 NTB Interstate University of Applied Sciences of Technology Buchs 00004 * 00005 * This program is free software: you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation, either version 3 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 */ 00015 00024 #ifndef _TIMER_H_ 00025 #define _TIMER_H_ 00026 00027 /* 00028 * Arrange to have isr_tick_handler called at 100 Hz 00029 */ 00030 void hook_timer_tick (unsigned short isr_tick_handler); 00031 00035 #define clear_timer_irq() \ 00036 TF2 = 0 /* clear overflow flag */ 00037 00038 00039 #endif /* _TIMER_H_ */