Files
school_archives/OSU SARL/Control Board Firmware/Dechorionator/Driver Board Revision 1.1/InterruptServiceRoutines.h
Corwin Perren b300c76103 Added old firmware and pcb design files
These are all design documents that I thought I had lost. It's may make
me cringe, but it's still cool to use it to see how far I've come.
2016-05-12 20:04:43 -07:00

46 lines
661 B
C

/*
* InterruptServiceRoutines.h
*
* Created: 8/4/2014 4:55:26 PM
* Author: corwin
*/
#ifndef INTERRUPTSERVICEROUTINES_H_
#define INTERRUPTSERVICEROUTINES_H_
extern SoftLCD LCD;
extern StepperClass Stepper;
extern int i;
extern int TimeCount;
ISR(TIMER2_OVF_vect){
static int CountDelay = 0;
CountDelay++;
if(CountDelay >= 61){
TimeCount++;
CountDelay = 0;
}
}
ISR(TIMER1_COMPA_vect){
Stepper.OneStep();
i++;
}
////////Pin change interrupt 2 is for pins pcint 23 to 16
////////
//Pin change interrupt 18 is on pin PORTD2
//ISR(){
//}
//Pin change interrupt 19 is on pin PORTD3
//ISR(){
//}
#endif /* INTERRUPTSERVICEROUTINES_H_ */