@BinaryDinosaurs
Nice thing of pinctrl is, main() is a demo for what it can do and the rest is in C files that you can just compile in to your project. And it'll work for GPIO on all generations of Pi. Without passing through the Linux kernel ❤️
Adapted my
#PiDP11
to accept the new Pi 5.
To use Pi 5's new RP1, I hated the bloated GPIO libs.
Just pushing simple bits, so why 1000s of instructions & object-oriented conceptual crap through Linux kernel?
But pinctrl sources are nice! Easy to reuse:
@BinaryDinosaurs
I am biased & use GPIO for basic stuff. So I absolutely balk when I see a 'customer-client' object model. When all it used to take to flip a GPIO bit is a single LDR instruction.
Depends on perspective but Pi's are drifting very far from being 'microcontroller with Linux'.