File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
megaavr/cores/megatinycore Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 109
109
SREG = oldSREG ;
110
110
}
111
111
}
112
- #if !defined(CORE_ATTACH_EARLYCLEAR )
112
+ #if !defined(CORE_ATTACH_EARLYCLEAR ) // late clear.
113
113
void __attribute__((naked )) __attribute__((used )) __attribute__((noreturn )) isrBody () {
114
114
asm volatile (
115
115
"AttachedISR:" "\n\t" // as the scene opens, we have r16 on the stack already, portnumber x 2 in the r16
291
291
}
292
292
uint8_t port = digitalPinToPort (pin );
293
293
uint8_t p = (port << 5 ) + bitpos ;
294
- * (((volatile uint8_t * ) & PORTA_PIN0CTRL ) + p ) &= 0xF1 ; // int off....
294
+ * (((volatile uint8_t * ) & PORTA_PIN0CTRL ) + p ) &= 0xF8 ; // int off....
295
295
* ((volatile uint8_t * ) ((uint16_t )((port << 4 ) + 3 ))) = (1 << bitpos );// flag clear
296
296
intFunc [port ][bitpos ] = 0 ; // clear pointer
297
297
}
368
368
#endif
369
369
#else /* This is the old implementation, and it's copyright boilerplate. */
370
370
371
- /* -*- mode: jde; c-basic-offset: 2; indent-tabs-mode: nil -*- */
371
+ /* -*- mode: jde; c-basic-offset: 2; indent-tabs-mode: nil -*- */ //<---- FFS! That was in the original!
372
372
373
373
/*
374
374
Part of the Wiring project - http://wiring.uniandes.edu.co
You can’t perform that action at this time.
0 commit comments