[riot-notifications] [RIOT-OS/RIOT] drivers: add support for SHT2x (I2C temp and humidity sensor) (#10750)

Peter Kietzmann notifications at github.com
Mon Feb 4 12:02:14 CET 2019


PeterKietzmann commented on this pull request.



> + */
+static sht2x_t sht2x_devs[SHT2X_NUMOF];
+
+/**
+ * @brief   Reference the driver structs.
+ * @{
+ */
+extern const saul_driver_t sht2x_temperature_saul_driver;
+extern const saul_driver_t sht2x_relative_humidity_saul_driver;
+/** @} */
+
+/**
+ * @brief   Memory for the SAUL registry entries
+ */
+#define SENSORS_NUMOF 2
+static saul_reg_t saul_entries[SHT2X_NUMOF * SENSORS_NUMOF];

Why *2?

-- 
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/10750#pullrequestreview-199531318
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190204/3d0e4360/attachment.html>


More information about the notifications mailing list