This repository was archived by the owner on Aug 9, 2022. It is now read-only.
Added SPI peripheral driver #43
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SPI peripheral driver implements all basic SPI functionality at good speeds.
It implements optimized versions of the embedded_hal::blocking::spi traits using the ESP32 16 x int32 hardware buffer for chunked transfers and iterator evaluation is done overlapped with the transmissions to achieve ~ 2.5us overhead between chunks.
It includes an examples using ESP32 WROVER DEVKIT LCD screen (using Ili9341 chip).
It does not yet include DMA, half-duplex or Quad SPI support. (I don't plan to implement this in the near future either, so I would recommend to merge this PR as-is.)
It needs a change in esp32: esp-rs/esp32#37
Builds on PR #42 (although it is independent).