Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SpenceKonde authored and jvasileff committed Nov 13, 2024
1 parent 0f5a5ea commit 6454c0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions megaavr/cores/megatinycore/WInterrupts.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
SREG = oldSREG;
}
}
#if !defined(CORE_ATTACH_EARLYCLEAR)
#if !defined(CORE_ATTACH_EARLYCLEAR) // late clear.
void __attribute__((naked)) __attribute__((used)) __attribute__((noreturn)) isrBody() {
asm volatile (
"AttachedISR:" "\n\t" // as the scene opens, we have r16 on the stack already, portnumber x 2 in the r16
Expand Down Expand Up @@ -291,7 +291,7 @@
}
uint8_t port = digitalPinToPort(pin);
uint8_t p = (port << 5) + bitpos;
*(((volatile uint8_t*) &PORTA_PIN0CTRL) + p) &= 0xF1; // int off....
*(((volatile uint8_t*) &PORTA_PIN0CTRL) + p) &= 0xF8; // int off....
*((volatile uint8_t*) ((uint16_t)((port << 4) + 3))) = (1 << bitpos);// flag clear
intFunc[port][bitpos] = 0; // clear pointer
}
Expand Down Expand Up @@ -368,7 +368,7 @@
#endif
#else /* This is the old implementation, and it's copyright boilerplate. */
/* -*- mode: jde; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/* -*- mode: jde; c-basic-offset: 2; indent-tabs-mode: nil -*- */ //<---- FFS! That was in the original!
/*
Part of the Wiring project - http://wiring.uniandes.edu.co
Expand Down

0 comments on commit 6454c0c

Please sign in to comment.