Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Using SPI on Linux/Darwin target #1094

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

Closed
botoxparty opened this issue Oct 19, 2023 · 3 comments
Closed

Using SPI on Linux/Darwin target #1094

botoxparty opened this issue Oct 19, 2023 · 3 comments

Comments

@botoxparty
Copy link

Hey,

I have some USB SPI devices, see https://spidriver.com/ or https://www.amazon.de/-/en/DSD-TECH-SH-U05A-UART-Converter/dp/B0BM9JQZB7/

How would I go about using these SPI interfaces with modm? I'm a bit lost.

Would appreciate any help.

@rleh
Copy link
Member

rleh commented Oct 19, 2023

Hi,
I'm not sure if I understand correctly what you want to do, but I assume you want to use these USB-SPI adapters to have a SPI master on hosted-linux/hosted-darwin to use (existing) modm drivers to control SPI peripherals (like sensors/displays)?

Therefor you would need to implement the SpiMaster interface in a SPI platform driver for the hosted-linux/hosted-darwin target (simlar to e.g. this one for STM32).
Looking at their C driver this should be possible.

I might be helpful to have a look at the modm:platform:canusb driver, that does something similar but for a USB-CAN adapter for hosted-linux target.

@botoxparty
Copy link
Author

Yeah you are understanding me perfectly :)

Sounds like a challenge, I'll see how far i can get with it.

@botoxparty
Copy link
Author

So I tried but I unfortunately don't have the in-depth knowledge of developing linux drivers to be able to refactor the existing linux driver to be compatible with the project.

If anyone would support me with developing this I would love to work together.

@modm-io modm-io locked and limited conversation to collaborators Jan 13, 2024
@salkinium salkinium converted this issue into discussion #1119 Jan 13, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Development

No branches or pull requests

2 participants