[riot-notifications] [RIOT-OS/RIOT] ds323x: Minimal driver for DS323x extremely accurate RTC (#9838)

Leandro Lanzieri notifications at github.com
Mon Feb 18 11:01:18 CET 2019


leandrolanzieri commented on this pull request.



> +        return -EIO;
+    }
+
+    if (ENABLE_DEBUG) {
+        for (int k = 0; k <= 0x19; ++k) {
+            uint8_t dbg_reg = 0;
+            ds3234_read_reg(dev, k, 1, &dbg_reg);
+            print_byte_hex(k);
+            print_str(": ");
+            print_byte_hex(dbg_reg);
+            print_str("\n");
+        }
+    }
+    uint8_t reg = 0;
+    ds3234_read_reg(dev, DS323X_REG_CONTROL, 1, &reg);
+    reg &= ~(DS323X_REG_CONTROL_EOSC_MASK | DS323X_REG_CONTROL_INTCN_MASK |

Added a comment

-- 
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/9838#discussion_r257627145
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190218/598d31c7/attachment.html>


More information about the notifications mailing list