summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/modwebsocket.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-10-03 12:39:31 +1100
committerDamien George <damien.p.george@gmail.com>2016-10-03 12:39:31 +1100
commit5bb28c7f10ebd1036302cf7ac0b24a7a233de2aa (patch)
tree6f8546bc8346bee9193251443122212f76d2af94 /extmod/modwebsocket.h
parenta0d97fe40872b46872657bedc0e47cfd704c59aa (diff)
downloadmicropython-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/modwebsocket.h')
0 files changed, 0 insertions, 0 deletions