Skip to content
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

Multiple SPI device support #39

Open
saawsm opened this issue Jun 17, 2023 · 2 comments
Open

Multiple SPI device support #39

saawsm opened this issue Jun 17, 2023 · 2 comments

Comments

@saawsm
Copy link

saawsm commented Jun 17, 2023

It seems multiple SPI devices on the same bus aren't supported, as the bus is acquired without a way of releasing it.

spi_device_acquire_bus(*spi, portMAX_DELAY);

mipi_display_close() has the corresponding release function, but isn't usable since the spi_device_handle is static.

Is this something that is planned, or is it already supported, and I'm missing something?

@dizcza
Copy link

dizcza commented Feb 3, 2024

@saawsm I see you've been trying to work around the multiple SPI bus issue in your fork. Have you solved it?

@saawsm
Copy link
Author

saawsm commented May 21, 2024

@dizcza Yeah, I ended up adding a MIPI_DISPLAY_EXCLUSIVE_BUS option that, if false, will release the bus after each display flush.

saawsm@cdc5bd4
saawsm/hagl@eb5b48e

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

No branches or pull requests

2 participants