-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPI - Allow detaching of some SPI pins without stopping SPI #9117
Conversation
👋 Hello P-R-O-C-H-Y, we appreciate your contribution to this project! Click to see more instructions ...
Review and merge process you can expect ...
|
Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
tested on all chips with DC = MISO |
Description of Change
This PR adds a feature to allow detach of SS, MISO or MOSI without stopping the SPI.
This PR fixes issue, when spiStopBus() was called twice (by SPI.end and spiDetachBus), printing an error.
Also removed pin parameter from detaching functions, as the pins are now stored in the SPI structure.
Without this change, peripheral manager was able to set to INIT pin, which was already detached from SPI.
Tests scenarios
Tested on esp32-c3.
Related links
Closes #9036
Closes #9066