[riot-notifications] [RIOT-OS/RIOT] sys/arduino: Added SPI interface (#12118)

Marian Buschsieweke notifications at github.com
Sun Sep 8 10:16:34 CEST 2019


maribu commented on this pull request.



> +                             settings.mode, settings.clock);
+    /* No support for exceptions (at least on AVR), resort to assert() */
+    assert(retval == SPI_OK);
+}
+
+void SPIClass::endTransaction()
+{
+    spi_release(spi_dev);
+}
+
+void SPIClass::transfer(void *buf, size_t count)
+{
+    spi_transfer_bytes(spi_dev, SPI_CS_UNDEF, false, buf, buf, count);
+}
+
+#if defined(SPI_NUMOF) && (SPI_NUMOF >= 1)

Yes, indeed. On ATmega it is defined to the literal `1` and worked there therefore

-- 
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/12118#discussion_r321996916
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190908/dacd4ac8/attachment.htm>


More information about the notifications mailing list