[riot-notifications] [RIOT-OS/RIOT] drivers/lis2dh12: add I2C mode (#8419)

benpicco notifications at github.com
Mon Sep 23 18:03:17 CEST 2019

benpicco commented on this pull request.

> +/* and now the I2C specific part of the driver */
+/* I2C config */
+#define BUS_CLK             I2C_SPEED_FAST
+#define BUS_OK              (0)
+/* I2C shortcuts */
+#define BUS                 (dev->p->i2c)
+#define ADDR                (dev->p->addr)
+/* flag for enabling address auto-incrementation */
+#define FLAG_AINC           (0x80)
+static int _init_bus(const lis2dh12_t *dev)
+    /* for I2C, we initialize the bus in master mode */
+    if (i2c_init_master(BUS, BUS_CLK) != BUS_OK) {

This function does not exist anymore.

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/20190923/28895ea8/attachment.htm>

More information about the notifications mailing list