New answers tagged linux
You can use the platform library to run different commands based on which OS flavor and/or version it's running under.
I've had a similar, but simpler, situation with a C program running on different linux distros, and using maybe half a dozen command-line tools. What I did was write C functions char *whichpath(char *command), and similarly for locatepath(). The which version just does popen("which command","r") and reads the pipe, simply letting which find the (path to the) ...
First of all you need to worry about legalities only if you wish to distribute your code. If it is for personal use or for an internal app for your organization you can go ahead and make any changes and integration you wish. And even if you want to distribute your code, what you need to do is fine by GPLv2. To quote from the license ...
I have such a setup with Altera DE2 FPGA with C and assembly code writing to uart0 and I use minicom in Linux Ubuntu on another computer to read the data from the FPGA. You have to figure out how interrupts work with you system and how serial communication is done. I did it in C and assembly, but you can check how it is donoe in python
Top 50 recent answers are included