This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
using semaphore with device drivers
- From: "Stefan Rosinger" <a_jedi_night4u at gmx dot at>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Fri, 11 Feb 2005 19:00:06 +0100 (MET)
- Subject: [ECOS] using semaphore with device drivers
Hi all!
Based on an interrupt serial driver I want to build a device driver for a
touch screen which work with rs232 over a small protocol.
here the devio table of the touch driver:
static DEVIO_TABLE(edip_devio,
edip_write,
edip_read,
edip_select,
edip_get_config,
edip_set_config
);
DEVTAB_ENTRY(edip_io0,
"/dev/edip0", //eDip Name
"/dev/ser1", //based default on the /dev/ser1 driver
&edip_devio,
edip_init,
edip_lookup, // Execute this when device is being looked
up
&edip_private_info0);
writing packages works fine from the application over cyg_io_write().
but I have problem in receiving packages because of the interrupt driver.
now i want to install semaphore for signal receiving data.
How can i pass the semaphore object from the application to the touch driver
and to the serial driver(or other way around)?
thx 4 help
Stefan
--
DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen!
AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss