Martin Schell
June 14th, 2002, 04:27 AM
Hello!
Can someone tell my how to run my own method in an C++ class as Interruptserviceroutine in Linux?
(For use as Timer)
Thanks for all help says: Martin :)
cup
June 25th, 2002, 12:53 AM
I'll tell you as much as I know (which isn't very much).
If you wish to access the RS232 ports, it will probably have to be a kernel type thing: through one of the devices in /dev/tty. Make sure the port is not being serviced for logins. If it is, you won't be able to use it. The rest of it is basically ioctls on the appropriate device.
Timers: you could use the alarm clock signal but that only works if the program is not multi-threaded. If it is, then spin a separate thread for it.
Best look up the device driver stuff in the Linux doco. That is about the limit of my knowledge on the subject.