[riot-notifications] [RIOT-OS/RIOT] cpu/cc260x: add I2C implementation (#11306)

MrKevinWeiss notifications at github.com
Fri Mar 29 17:03:41 CET 2019


MrKevinWeiss commented on this pull request.



> +
+#include "cpu.h"
+#include "periph/i2c.h"
+
+#define ENABLE_DEBUG 0
+#include "debug.h"
+
+#define PREG(x) DEBUG("%s=0x%08x\n", #x, (unsigned)x);
+
+/**
+ * @brief Array holding one pre-initialized mutex for each I2C device
+ * @note  If multiple I2C devices are added locks must be an array for each one.
+ */
+static mutex_t _lock;
+
+static int _check_errors(void);

I think I like having the prototypes but I can move it up.

-- 
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/11306#discussion_r270475667
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190329/181b257c/attachment.html>


More information about the notifications mailing list