[riot-notifications] [RIOT] drivers/spi: updated SPI driver interface (#3216)
notifications at github.com
Thu Jun 18 13:35:09 CEST 2015
> -int spi_transfer_byte(spi_t dev, char out, char *in);
> +void spi_transfer_byte(spi_t dev, char out, char *in);
I would prefer to have in as the return value instead of a pointer. If
nothing else it will allow the compiler to reduce stack usage by placing
the value in a register instead of RAM.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications