
/*************************** End of Interrupts **************************/

/************************** Includes ************************************/
//#include <stdio.h>
#include <tjpbase.h>
//#include <isrdecl.h>
#include <analog.h>
#include <vectors.h>
#include <mil.h>
#include <hc11.h>
/************************ End of includes *******************************/
//#define pulse_handler TOC2_isr
#define tolerance 10 
#define valve_sensor analog(1)
/**************************** End of Constants **************************/

/*************************** Interrupts *********************************/
//#pragma interrupt_handler TOC2_isr
#pragma interrupt_handler TOC2_isr
/************************** Global Variables*****************************/
unsigned int duty_cycle;	//duty_cycle in e clocks
unsigned int period;		//period in e clocks
/************************ End of Global Variables ***********************/



void TOC2_isr();	//This is the function executed at each TOC2_isr
/******************** End of Function Declarations  *********************/


void TOC2_isr()
{printf("hi\n");
 CLEAR_FLAG(TFLG1,0x40);
 }