mirror of
https://github.com/caperren/school_archives.git
synced 2025-11-09 21:51:15 +00:00
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.
46 lines
661 B
C
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_ */ |