[riot-notifications] [RIOT-OS/RIOT] sys/arduino: Added Wire (I2C) interface (#10592)

Gunar Schorcht notifications at github.com
Thu Sep 19 19:08:42 CEST 2019


gschorcht commented on this pull request.



> +#include <stdlib.h>
+#include <string.h>
+#include <inttypes.h>
+#include <errno.h>
+}
+
+#include "Wire.h"
+
+#include "log.h"
+#include "panic.h"
+#include "periph/i2c.h"
+
+#define ENABLE_DEBUG    (0)
+#include "debug.h"
+
+#define WIRE_PORT_OK                    (0)

I haven't use enum due to compatibility reasons. As declared in the copyright notice, the implementation is an adaptation of the original Arduino Wire library. These defines are from this original implementation. Therefore, I would prefer to leave it as it is.

-- 
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/10592#discussion_r326286211
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190919/fca0f7b7/attachment.htm>


More information about the notifications mailing list