Skip to content
Snippets Groups Projects
Commit bfcf570d authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Try ISR_ALIASOF for Endstop Interrupts

parent c0d9058e
Branches
Tags
No related merge requests found
...@@ -85,22 +85,21 @@ void pciSetup(const int8_t pin) { ...@@ -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 ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment