/********************************************************
	header file to timer_dealy.c
********************************************************/



#ifndef _TIMER_DELAY_H
	#define _TIMER_DELAY_H

	// only one of these defines should be defined
	//#define _TIMER0
	#define _TIMER1
	//#define _TIMER2

	#ifdef _TIMER0
		#define TIM_CONST 98  	// 1 system tick is aproximately 10ms
	#endif
	
	#ifdef _TIMER1
		#define TIM_CONST 64911  	// 1 system tick is aproximately 10ms
	#endif

	#ifdef _TIMER2
		#define TIM_CONST 98  	// 1 system tick is aproximately 10ms
	#endif

	void timer_delay_init(void);
	unsigned int sys_time(void);

#endif
