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

How to use SPI with gpio_cdev #116

Open
patrickelectric opened this issue Nov 28, 2024 · 1 comment
Open

How to use SPI with gpio_cdev #116

patrickelectric opened this issue Nov 28, 2024 · 1 comment

Comments

@patrickelectric
Copy link

Using gpio_cdev the line handler return Error { kind: Ioctl { kind: LineHandle, cause: EBUSY } } when requesting a pin configured as SPI chip select.

In my case, when running a raspberry pi 5:
line 16: "GPIO16" "spi1 CS2" output active-low [used]

ls /dev/spidev*
/dev/spidev0.0  /dev/spidev1.0  /dev/spidev10.0  /dev/spidev1.1  /dev/spidev1.2

Any suggestion or example of how to use chip selects with the new API ?
It appears to run fine in a Raspberry Pi 4.
line 16: "GPIO16" unused output active-high

ls /dev/spidev
spidev0.0  spidev1.0  spidev1.1  spidev1.2
@patrickelectric
Copy link
Author

any suggestion @eldruin ?

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

1 participant