Try ISR_ALIASOF for Endstop Interrupts

2.0.x
Scott Lahteine 6 years ago
parent c0d9058e25
commit bfcf570d68

@ -85,22 +85,21 @@ void pciSetup(const int8_t pin) {
SBI(PCICR, digitalPinToPCICRbit(pin)); // enable interrupt for the group SBI(PCICR, digitalPinToPCICRbit(pin)); // enable interrupt for the group
} }
// Handlers for pin change interrupts // Handlers for pin change interrupts
#ifdef PCINT0_vect #ifdef PCINT0_vect
ISR(PCINT0_vect) { endstop_ISR(); } ISR(PCINT0_vect) { endstop_ISR(); }
#endif #endif
#ifdef PCINT1_vect #ifdef PCINT1_vect
ISR(PCINT1_vect) { endstop_ISR(); } ISR(PCINT1_vect, ISR_ALIASOF(PCINT0_vect));
#endif #endif
#ifdef PCINT2_vect #ifdef PCINT2_vect
ISR(PCINT2_vect) { endstop_ISR(); } ISR(PCINT2_vect, ISR_ALIASOF(PCINT0_vect));
#endif #endif
#ifdef PCINT3_vect #ifdef PCINT3_vect
ISR(PCINT3_vect) { endstop_ISR(); } ISR(PCINT3_vect, ISR_ALIASOF(PCINT0_vect));
#endif #endif
void setup_endstop_interrupts( void ) { void setup_endstop_interrupts( void ) {

Loading…
Cancel
Save