Teensy 4 GPIO flag reset

Status
Not open for further replies.

xenington

Well-known member
Hello, hopefully just a quick one :)

My understanding of interrupts is that most have their flags reset when the interrupt is started. Am I correct in thinking that this means the interrupt won't repeat until the trigger is seen again?

What about GPIO6 on the Teensy 4? Does this use flags? Or does it just keep repeating interrupts as fast as it can after the first trigger is seen?

Cheers
 
It uses a flag.Best is, to read them rference manual, and the sourcecode from attachInterrupt in interrup.c.
Unfortunately, GPIO6-GPIO9 use the same interrupt which makes things a bit complicated. Maybe it's possible to use the lower GPIOs which have more differentiated interrupts, but I have not tested this.
 
Status
Not open for further replies.
Back
Top