diff options
author | Arne Jansen <arne@die-jansens.de> | 2020-01-19 08:42:20 +0000 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2020-01-23 11:10:39 -0500 |
commit | a2c309a2b02d16ec15fee5702463621239261266 (patch) | |
tree | c6d3cd7503fe280654605b441ebfe3949800ad2e /src/stm32/serial.c | |
parent | ce35ee45d69a07d9ee6c90c667bb9d2afde8c009 (diff) | |
download | kutter-a2c309a2b02d16ec15fee5702463621239261266.tar.gz kutter-a2c309a2b02d16ec15fee5702463621239261266.tar.xz kutter-a2c309a2b02d16ec15fee5702463621239261266.zip |
stm32: performance improvement for spi on stm32f0
The stm32 has a small queue for spi tx/rx. The current code only uses the
spi with a single byte buffer, effectively waiting for each byte to complete
before starting the next transfer.
This patch changes the structure of spi_transfer() to make use of the queue
and achieve back-to-back transfer of bytes on spi.
Signed-off-by: Arne Jansen <arne@die-jansens.de>
Diffstat (limited to 'src/stm32/serial.c')
0 files changed, 0 insertions, 0 deletions