Skip to content
This repository was archived by the owner on Aug 9, 2022. It is now read-only.

Added SPI peripheral driver #43

Merged
merged 10 commits into from
Sep 11, 2020
Merged

Added SPI peripheral driver #43

merged 10 commits into from
Sep 11, 2020

Conversation

arjanmels
Copy link
Contributor

@arjanmels arjanmels commented Jul 14, 2020

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).

This was referenced Jul 15, 2020
@MabezDev
Copy link
Member

Very nice! Will try with a Ssd1351 Oled this weekend!

@arjanmels
Copy link
Contributor Author

@MabezDev Did it work for you, or you got distracted by other work?

@MabezDev
Copy link
Member

Hi @arjanmels , my deepest apologies for leaving this for so long.

I did get around to trying it out with the Ssd1351 today and it worked fantastically!!!

I've just released 0.7.0 for esp32 (again sorry for the delay!), I'll make the changes to this PR and merge this.

Thank you once again for your hard work!

@MabezDev MabezDev merged commit f6091ec into esp-rs:master Sep 11, 2020
@arjanmels
Copy link
Contributor Author

@MabezDev No worries, been busy over summer with other stuff myself as well. Thanks for the invite for joining.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants