RE: CAN bus interrupts

"Chris Fox" <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <005e01c3e056$e43a4860$04c0a8c0@CHRIS>
I have made "event driven" stuff by making native code that sleeps the
calling thread until something happens. From Java, it is a function call
that blocks until some event occurs. However, since the thread is put to
sleep, it incurs very little overhead. When an interrupt or 4ms poll
decides that it is time, the thread is awakened and java processing in
that thread continues.

Chris

By the way: I still have three new TINI 72-Pin SIMMs with 1MB RAM to
sell. The price is $60 each. Write me off list if you are interested.



-----Original Message-----
From: tini-admin-6tN4nzCoH/[email protected] [mailto:[email protected]] On Behalf
Of Bryan Armstrong
Sent: Wednesday, January 21, 2004 10:39 AM
To: Qaisar Ahsan
Cc: tini-6tN4nzCoH/[email protected]
Subject: Re: [TINI]CAN bus interrupts


Qaisar Ahsan wrote:
> Can anybody guide me how to deal with CAN interrupts in a java program

> for TINI. I want to receive CAN messages but do not want to use 
> polling.

You could write an EventListener that blocks for CAN messages and fires 
CAN events to listening threads.  See the Java docs for 
java.util.EventListener.

-- 
--
Bryan Armstrong
bryan.armstrong-6tN4nzCoH/[email protected]


_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini


_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.