Hi,
in this forum I found code examples for using the comparator in a Teensy 3.5.
For comparator 1 a code example used
The macro name says that it is an enable function. The comment says that with this macro cmp1_isr() is attached to the interrupt.
In kinetis.h I found the definition of NVIC_ENABLE_IRQ but I don't understand what's going on there.
Performs this macro both, enable and attach, or only one of it?
in this forum I found code examples for using the comparator in a Teensy 3.5.
For comparator 1 a code example used
Code:
NVIC_ENABLE_IRQ(IRQ_CMP1); // handler is now cmp1_isr()
In kinetis.h I found the definition of NVIC_ENABLE_IRQ but I don't understand what's going on there.
Performs this macro both, enable and attach, or only one of it?