Explorar el Código

Merge pull request #518 from FrankBoesing/patch-1

Fix for https://github.com/PaulStoffregen/cores/issues/499
main
Paul Stoffregen hace 4 años
padre
commit
75405569b7
Ninguna cuenta vinculada a la dirección de correo electrónico del committer
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      teensy4/interrupt.c

+ 1
- 1
teensy4/interrupt.c Ver fichero

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 {

Cargando…
Cancelar
Guardar