[riot-notifications] [RIOT-OS/RIOT] sys/arduino: Added SPI interface (#12118)
notifications at github.com
Sat Sep 7 22:14:23 CEST 2019
keestux 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::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)
Using `SPI_NUMOF` in a preproc expression gives a compilation error for me because it is defined as:
#define SPI_NUMOF ARRAY_SIZE(spi_config)
and `ARRAY_SIZE` is defined in`kernel_defines` as
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a))
If I remember well you can't use `sizeof` in preproc expressions.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications