Newer
Older
// This module uses PIN CHANGE INTERRUPT INT3
#include <avr/interrupt.h>
#include <avr/io.h>
#include "timer_1.h"
//initialize pin change interrupt and data directions
inline void init_pc(void) {
// setup output ports
// toggle full port to not waste time on bit masking
// enable interrupt
EICRA |= (1<<ISC30)|(1<<ISC31);
EIMSK |= (1<<INT3);
}