Skip to content

Use SPI.transfer(wbuf,rbuf,count) also for read#145

Open
jayzakk wants to merge 1 commit intoarduino-libraries:masterfrom
jayzakk:SPI_HAS_TRANSFER_BUF-for-read
Open

Use SPI.transfer(wbuf,rbuf,count) also for read#145
jayzakk wants to merge 1 commit intoarduino-libraries:masterfrom
jayzakk:SPI_HAS_TRANSFER_BUF-for-read

Conversation

@jayzakk
Copy link
Copy Markdown

@jayzakk jayzakk commented Aug 17, 2020

While doing performance tests, I noticed that the special SPI.transfer(writebuf,readbuf,count) is only called for write, but not for read.
As this massively speeds up data throughput on supported MCUs, please accept this PR.

Here:
Optimized performance on LGT8F-MCUs (Nano/Atmega328p replacement), up to 14.1Mbit/s receive and 10.7Mbit/s send.
https://github.com/dbuezas/lgt8fx/wiki/Libraries-support

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 9, 2021

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

sophec added a commit to BloomyControls/BloomyEthernet that referenced this pull request Oct 11, 2022
Performance increase as suggested by @jayzakk here:
arduino-libraries#145
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants