[riot-notifications] [RIOT-OS/RIOT] drivers/ph_oem: support for Atlas Scientific pH OEM sensor (#10983)

Igor Knippenberg notifications at github.com
Sat Feb 23 22:47:26 CET 2019


skullbox305 commented on this pull request.



> +}
+
+int ph_oem_enable_interrupt(ph_oem_t *dev, ph_oem_interrupt_pin_cb_t cb,
+                            void *arg, ph_oem_irq_option_t option)
+{
+    if (dev->params.interrupt_pin == GPIO_UNDEF) {
+        return PH_OEM_INTERRUPT_GPIO_UNDEF;
+    }
+
+    int gpio_flank = 0;
+    int gpio_mode = 0;
+
+    dev->arg = arg;
+    dev->cb = cb;
+
+    /* gpio_mode might be different for your microcontroller. Just GPIO_IN

Added a new parameter to this function to pass the gpio_mode

-- 
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/10983#discussion_r259594350
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190223/726755fa/attachment-0001.html>


More information about the notifications mailing list