diff options
author | Damien George <damien.p.george@gmail.com> | 2016-10-03 12:39:31 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-10-03 12:39:31 +1100 |
commit | 5bb28c7f10ebd1036302cf7ac0b24a7a233de2aa (patch) | |
tree | 6f8546bc8346bee9193251443122212f76d2af94 /extmod/machine_mem.c | |
parent | a0d97fe40872b46872657bedc0e47cfd704c59aa (diff) | |
download | micropython-5bb28c7f10ebd1036302cf7ac0b24a7a233de2aa.tar.gz micropython-5bb28c7f10ebd1036302cf7ac0b24a7a233de2aa.zip |
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.
Diffstat (limited to 'extmod/machine_mem.c')
0 files changed, 0 insertions, 0 deletions