[riot-notifications] [RIOT-OS/RIOT] periph/gpio: add gpio_set_cb() function (#12082)

benpicco notifications at github.com
Tue Sep 17 16:57:02 CEST 2019

benpicco commented on this pull request.

> @@ -255,6 +272,31 @@ void gpio_toggle(gpio_t pin);
 void gpio_write(gpio_t pin, int value);
+ * @brief   Internal helper function to implement gpio_update_cb()
+ *          DO NOT USE outside of the periph_gpio implementation.
+ *
+ * @param[in] pin       the pin to set
+ * @param     cb_int    where to store the callback
+ * @param[in] cb        the new callback
+ */
+static inline void _gpio_update_cb(gpio_t pin, gpio_cb_t *cb_int, gpio_cb_t cb)

I can move this to a separate file not to clutter the `gpio.h` API.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190917/8ec953d8/attachment.htm>

More information about the notifications mailing list