CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2000
    Posts
    54

    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

  2. #2
    Join Date
    Jun 2002
    Location
    Letchworth, UK
    Posts
    1,020
    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
  •  





Click Here to Expand Forum to Full Width

Featured