interrupt programming
Hello,
I've written a programm to communicate with a external UART device through /dev/ttyS0. I use POSIX and Timer but unfortunately is not working well.
Is it possible to use Interrupt to read and write datas through the serial port?
I'm very thankfull for any hints
best regards
sayangoin
_________________________________________________________________
Wußten Sie, daß Sie Ihren Hotmail-Posteingang auch über den MSN Messenger abrufen können? http://www.msn.de/messenger Jetzt kostenlos downloaden und einfach testen!
On Thu, 2004-07-22 12:02:37 +0200, Sayang Oin <[email protected]> wrote in message <[email protected]>:
Quoted 3 lines
I've written a programm to communicate with a external UART device through
/dev/ttyS0.
I use POSIX and Timer but unfortunately is not working well.
What do you need timers for? If you're waiting for data, just use select(). That even allows you to perform other actions every now and then.
Quoted 2 lines
Is it possible to use Interrupt to read and write datas through the serial port?
Linux' serial driver should work interrupt-driven most of the time. Only in rare cases it'll poll the serial chip, but I think that's not really your problem.
Please tell us what you *really* need to do. Then, we'd help you. Sources of your application to comment on weren't wrong, too...
MfG, JBG
Signature · 4 lines
Jan-Benedict Glaw [email protected] . +49-172-7608481 _ O _ "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));