diff options
Diffstat (limited to 'nuttx/arch/arm/src/kinetis/kinetis_pinirq.c')
-rw-r--r-- | nuttx/arch/arm/src/kinetis/kinetis_pinirq.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/nuttx/arch/arm/src/kinetis/kinetis_pinirq.c b/nuttx/arch/arm/src/kinetis/kinetis_pinirq.c index 9829d2266..1ed9092e2 100644 --- a/nuttx/arch/arm/src/kinetis/kinetis_pinirq.c +++ b/nuttx/arch/arm/src/kinetis/kinetis_pinirq.c @@ -241,11 +241,15 @@ void kinetis_pinirqinitialize(void) } /**************************************************************************** - * Name: kinetis_pinirqconfig + * Name: kinetis_pinirqattach * * Description: - * Sets/clears PIN and interrupt triggers. On return PIN interrupts are - * always disabled. + * Attach a pin interrupt handler. The normal initalization sequence is: + * + * 1. Call kinetis_pinconfig() to configure the interrupting pin (pin interrupts + * will be disabled. + * 2. Call kinetis_pinirqattach() to attach the pin interrupt handling function. + * 3. Call kinetis_pinirqenable() to enable interrupts on the pin. * * Parameters: * - pinset: Pin configuration @@ -258,7 +262,7 @@ void kinetis_pinirqinitialize(void) * ****************************************************************************/ -xcpt_t kinetis_pinirqconfig(uint32_t pinset, xcpt_t pinisr) +xcpt_t kinetis_pinirqattach(uint32_t pinset, xcpt_t pinisr) { #ifdef HAVE_PORTINTS xcpt_t *isrtab; |