C GPIO, SPI, and UART library

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

C GPIO, SPI, and UART library

Post by /RaspberryPi »

I'm looking for 2022 suggestions on what to use library wise. I'm using a 2W for a coil controller, and am trying to determine the most efficient library to use with C code. This tight loop will run on a core by itself.
I need to be able to quickly scan for input state changes as well as toggle GPIO pins on and off (using the pi_microsleep_hard library for short duration 5-20 uS timing in between).
I also need SPI functionality to read an A/D chip quickly.
UART output can be slower as it is just occasional write to a NFC device to update an eInk screen on a separate thread.
I've looked at pigpio as well as bcm2835. Open to suggestions from people who have used these in time critical applications.

submitted by /u/hallkbrdz
[link] [comments]

More...
Post Reply

Return to “Raspberry Pi Forum”