Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4875

Interfacing (DSI, CSI, I2C, etc.) • Re: MCP3008 with spidev.h doesn't bring CE/CS low

$
0
0
Yes, I saw and read that, but I didn't read into it "The chip select line chosen must be configured in as GPIO OUTPUT and not as SPI0_CE0_N (or likewise) as shown under the SPI0 Pin Mappings above."

I get it. If you are steeped in SPI and GPIO understanding, "The driver does not make use of the hardware chip select lines because of some limitations." may make that clear to you, but the Pi has never been targeted at users with that level of kernel spidev and Pi gpio understanding. I still think a short concise note there would eliminate a bulk of questions and at least provide ammunition for a clean "did you RTFM?" inquiry.

You guys get to make the call, but an extra sentence would at least eliminate questions from those diligent enough to read the manual. Thank you for your help with this and in nailing down where the issue was.

I'll just write a function to set the proper gpio config no matter what the initial state and then restore the original on interrupt or exit. Should do that anyway..

Statistics: Posted by drankinatty — Tue Apr 09, 2024 11:20 pm



Viewing all articles
Browse latest Browse all 4875

Trending Articles