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

benpicco notifications at github.com
Tue Sep 17 12:08:04 CEST 2019


As to 1., I think I should name it `gpio_update_cb()` instead.
If we set the callback function to `NULL`, we would also have to disable the interrupt - and there is already a function for that.

The idea here is that the callback function might be static and in another compilation unit, but one still wants to update the callback argument.

As to 2., I can do it, but it seems a little overkill as this only provides a setter for two internal variables.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/12082#issuecomment-532154985
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190917/8dccf625/attachment.htm>


More information about the notifications mailing list