[riot-notifications] [RIOT] drivers/spi: updated SPI driver interface (#3216)

Joakim Gebart 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:
https://github.com/RIOT-OS/RIOT/pull/3216/files#r32720797
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150618/c4b82e83/attachment.html>


More information about the notifications mailing list