[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 11:33:10 CET 2019


PeterKietzmann commented on this pull request.



> +
+/**
+ * @brief   Get the number of configured SHT2X devices
+ */
+#define SHT2X_NUMOF       (sizeof(sht2x_params) / sizeof(sht2x_params[0]))
+
+/**
+ * @brief   Configuration details of SAUL registry entries
+ *
+ * This array contains static details of the sensors
+ * for each device. Please be aware that the indexes are used in
+ * auto_init_sht2x, so make sure the indexes match.
+ */
+static const saul_reg_info_t sht2x_saul_reg_info[SHT2X_NUMOF] =
+{
+        { .name = "sht2x" },

Many drivers make the saul name over-writable as well. I'd do the same here

-- 
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-199519339
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190204/8ceac574/attachment.html>


More information about the notifications mailing list