3
I am aware of the existence of the Microsoft Win32 API, which allows the programmer to manipulate low-level resources such as serial ports, memories, CPU, GPU, etc. However I work with Linux environments and I want to access the hardware on Linux using the C language.
I’ve read a lot on the web about syscall, and I can’t understand anything :/ I just see people talking about functions like Fork(), and I don’t even know the basics.
– Gabriel
People who worked with parallel ports, who used parallel pins to control hardware directly, needed to access only I/O ports, and there are ways to do this right on Linux and Windows, without needing a device driver. To this end, document http://tldp.org/HOWTO/IO-Port-Programming-2.html may help. But I believe it is a totally obsolete solution. Using an Arduino to control hardware I/O, and communicate with the PC via USB serial, is best in every respect.
– epx