Frank 4 years ago
parent
commit
f13e79eee2
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      teensy4/interrupt.c

+ 1
- 1
teensy4/interrupt.c View File

gpio[EDGE_INDEX] |= mask; gpio[EDGE_INDEX] |= mask;
} else { } else {
gpio[EDGE_INDEX] &= ~mask; gpio[EDGE_INDEX] &= ~mask;
if (index < 15) {
if (index < 16) {
uint32_t shift = index * 2; uint32_t shift = index * 2;
gpio[ICR1_INDEX] = (gpio[ICR1_INDEX] & ~(3 << shift)) | (icr << shift); gpio[ICR1_INDEX] = (gpio[ICR1_INDEX] & ~(3 << shift)) | (icr << shift);
} else { } else {

Loading…
Cancel
Save