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

Kaspar Schleiser notifications at github.com
Tue Sep 17 13:31:52 CEST 2019


please keep race conditions in mind.

```
...
config[int_num].cb = cb;
// GPIO TRIGGERS, new cb gets executed with old arg
config[int_num].arg = arg;
...
```

Guard with irq_disable/restore, or add a note that this should be done externally?

-- 
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-532180951
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190917/67db5729/attachment.htm>


More information about the notifications mailing list