[riot-notifications] [RIOT-OS/RIOT] Driver for AT24CXXX EEPROM (#11929)

fabian18 notifications at github.com
Mon Jul 29 23:19:33 CEST 2019


fabian18 commented on this pull request.



> +    if (check < 0) {
+        //check is a negative errno value
+        return check;
+    }
+
+    //sequential read
+    check = i2c_read_bytes(dev->params.i2c, dev->params.dev_addr, data, len, 0);
+    DEBUG("read check: %d\n", check);
+    if (check < 0) {
+        //check is a negative errno value
+        return check;
+    }
+    return len;
+}
+
+static int _write_byte(const at24cxxx_t *dev, uint32_t pos,  uint8_t data)

How about `_write_byte()` calling `i2c_write_reg()`, while it also polls for the EEPROM to respond?

-- 
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/11929#discussion_r308442576
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190729/a5812406/attachment-0001.htm>


More information about the notifications mailing list