aboutsummaryrefslogtreecommitdiffstats
path: root/src/stepper.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2022-02-09 13:07:32 -0500
committerKevin O'Connor <kevin@koconnor.net>2022-02-10 17:27:55 -0500
commit99d55185a21703611b862f6ce4b80bba70a9c4b5 (patch)
tree2159421ee428817056729fa086c3ed8abf9e6f62 /src/stepper.c
parent1c594ef27a252a844c22cdbeffc839292155134a (diff)
downloadkutter-99d55185a21703611b862f6ce4b80bba70a9c4b5.tar.gz
kutter-99d55185a21703611b862f6ce4b80bba70a9c4b5.tar.xz
kutter-99d55185a21703611b862f6ce4b80bba70a9c4b5.zip
stm32: Wait for transmission to complete before returning from spi_transfer()
It's possible for the SCLK pin to still be updating even after the last byte of data has been read from the receive pin. (In particular in spi mode 0 and 1.) Exiting early from spi_transfer() in this case could result in the CS pin being raised before the final updates to SCLK pin. Add an additional wait at the end of spi_transfer() to avoid this issue. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stepper.c')
0 files changed, 0 insertions, 0 deletions