[riot-notifications] [RIOT-OS/RIOT] drivers/lm75: driver for the lm75 sensor and derivatives (#16678)

viktorbatista notifications at github.com
Tue Jul 27 11:46:32 CEST 2021

@viktorbatista commented on this pull request.

> +#include "lm75_regs.h"
+#include "lm75_params.h"
+#include "log.h"
+#include "kernel_defines.h"
+#include <stdint.h>
+#include <byteorder.h>
+#include "xtimer.h"
+#define I2C_BUS             dev->lm75_params.i2c_bus
+#define I2C_ADDR            dev->lm75_params.i2c_addr
+int lm75_init(lm75_t *dev, const lm75_params_t *params) {
+    /* Enable OS interrupt */
+    gpio_init_int(LM75_PARAM_INT, GPIO_IN_PU, GPIO_FALLING, __irq_os_cb, NULL);

The alarm function doesn't actually call any alarm, it only sets the temperature limits, i.e. Hysteresis/T-LOW and Over-temperature/T-HIGH temperatures. I will change the function name to better reflect this.

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/20210727/02f9927e/attachment.htm>

More information about the notifications mailing list