As mentioned you can use the linux/spi/spidev.h header and implementation for SPI through, e.g. /dev/spidev0.0. If you need GPIO, then GPIO Character Device Userspace API is the key. There is a libgpiod library making full use of the new uABI. Those should both be fine Pi5 as they are kernel provided. I'm not sure what else your e-device needs, but let us know. You can see the past few threads in this forum discussing the GPIO interface in more depth.. It also looks like the Linux kernel in 6.10 will provide a new PWM interface as well. I saw patches come through yesterday on the kernel-GPIO list.
Statistics: Posted by drankinatty — Thu Jun 06, 2024 8:01 am