Skip to content
Snippets Groups Projects
Commit 5bb28c7f authored by Damien George's avatar Damien George
Browse files

extmod/machine_spi: Simplify SPI xfer function to only take one buf len.

There is no need to take src_len and dest_len arguments.  The case of
reading-only with a single output byte (originally src_len=1, dest_len>1)
is now handled by using the output buffer as the input buffer, and using
memset to fill the output byte into this buffer.  This simplifies the
implementations of the spi_transfer protocol function.
parent a0d97fe4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment