You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/07/29 07:28:20 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #1473: Kinetis:Add compatible gpiosetevent interface

xiaoxiang781216 commented on a change in pull request #1473:
URL: https://github.com/apache/incubator-nuttx/pull/1473#discussion_r461996633



##########
File path: arch/arm/src/kinetis/kinetis_pinirq.c
##########
@@ -459,4 +475,56 @@ void kinetis_pinirqdisable(uint32_t pinset)
     }
 #endif /* HAVE_PORTINTS */
 }
+
+/****************************************************************************
+ * Name: kinetis_gpiosetevent
+ *
+ * Description:
+ *   Sets/clears GPIO based event and interrupt triggers.
+ *
+ * Input Parameters:
+ *  - pinset: gpio pin configuration
+ *  - rising/falling edge: enables
+ *  - event:  generate event when set
+ *  - func:   when non-NULL, generate interrupt
+ *  - arg:    Argument passed to the interrupt callback
+ *
+ * Returned Value:
+ *   Zero (OK) on success; a negated errno value on failure indicating the
+ *   nature of the failure.
+ *
+ ****************************************************************************/
+
+int kinetis_gpiosetevent(uint32_t pinset, bool risingedge, bool fallingedge,

Review comment:
       But I can't see any place use this new function.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org