With regards to this post
I have found some neat libs for Dev-Cpp , that makes it possible to simulate some of the things we do in a Win32 platform.
These are verry "rude" examples i have snipped from some source i have made.
But i think you will find this timerlib usefull.
Again all is in "Pure C" , no C++
To install Dev-Cpp either use the wxWidget gui one ..
Or this Dev-Cpp only
Make a choice , because you will have to uninstall this one if you really wanted the one with wxWidgets devel , as the wxWidget comes with Dev-Cpp included.
Example of serial and timer threads
Needs you to have the dll from timdist.zip on the "dll" path.