This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: cyg_mbox_tryput in DSR?
- To: Nick Barnes <Nick dot Barnes at pobox dot com>
- Subject: RE: [ECOS] cyg_mbox_tryput in DSR?
- From: Gary Thomas <gthomas at redhat dot com>
- Date: Mon, 10 Jul 2000 06:43:28 -0600 (MDT)
- Cc: ecos-discuss at sourceware dot cygnus dot com
On 10-Jul-2000 Nick Barnes wrote:
> Can I use cyg_mbox_tryput() in a DSR?
>
> Keyboard driver for EDB7211. Using an alarm on the real-time clock to
> poll every centi-second (because the keyboard interrupt isn't
> generated for all the keys, as previously discussed). Want to use an
> mbox to notify the main code of keys pressed.
>
This function is certainly safe to use in a DSR.
An alternative which I have used for this device is a separate thread
which polls the keyboard and then pushes events into a message queue.
Have looked at this code? Does it not suit your purposes?