|
-
June 14th, 2002, 04:27 AM
#1
Interrupt Service Routine for Timer on Linux.
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
-
June 25th, 2002, 12:53 AM
#2
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.
Succinct is verbose for terse
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|