Преглед изворни кода

Merge pull request #518 from FrankBoesing/patch-1

Fix for https://github.com/PaulStoffregen/cores/issues/499
teensy4-core
Paul Stoffregen пре 5 година
родитељ
комит
75405569b7
No account linked to committer's email address
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      teensy4/interrupt.c

+ 1
- 1
teensy4/interrupt.c Прегледај датотеку

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…
Откажи
Сачувај