00001 /***************************************************************************** 00002 * timer.h: Header file for Philips LPC214x Family Microprocessors 00003 * 00004 * Copyright(C) 2006, Philips Semiconductor 00005 * All rights reserved. 00006 * 00007 * History 00008 * 2005.10.01 ver 1.00 Prelimnary version, first Release 00009 * 00010 ******************************************************************************/ 00011 #ifndef __TIMER_H 00012 #define __TIMER_H 00013 00014 #define INTERVAL_10MS 149999 /* 10mSec = 150.000-1 counts */ 00015 00016 extern DWORD init_timer(void); 00017 extern void enable_timer( BYTE timer_num ); 00018 extern void disable_timer( BYTE timer_num ); 00019 extern void reset_timer( BYTE timer_num ); 00020 00021 extern volatile DWORD timer_counter; 00022 00023 #endif /* end __TIMER_H */ 00024 /***************************************************************************** 00025 ** End Of File 00026 ******************************************************************************/