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

Igor Knippenberg notifications at github.com
Wed Feb 27 13:53:39 CET 2019

skullbox305 commented on this pull request.

> +
+/* off by default, so it won't reset your previous calibration */
+#define CALIBRATION_TEST_ENABLED    (false)
+static ph_oem_t dev;
+static void interrupt_pin_cb(void *arg)
+    puts("\n[IRQ - Reading done]");
+    /* stop pH sensor from taking further readings*/
+    ph_oem_set_device_state(&dev, PH_OEM_STOP_READINGS);
+    /* reset interrupt pin in case of falling or rising flank */
+    if (dev.params.irq_option != PH_OEM_IRQ_BOTH) {
+        ph_oem_reset_interrupt_pin(&dev);

You are right, haven't thought about that. I added an event queue which gets claimed from a dedicated thread that loops the event queue. An event will be posted in the interrupt callback.

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/20190227/40916156/attachment.html>

More information about the notifications mailing list