This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Serial device driver problem.
- To: ecos-discuss at sources dot redhat dot com
- Subject: [ECOS] Serial device driver problem.
- From: "Dennis Ehlin (ECS)" <Dennis dot Ehlin at ecs dot ericsson dot se>
- Date: Tue, 29 May 2001 15:48:40 +0200
Hi,
I'm trying write a serial device to my ppc target, i'm using the generic 16x5x uart code.
I have the serial interrupts working and so on...
When i do a serial_read (located serial.c) everything seems to work ok, and i get to the
cyg_drv_cond_wait(&cbuf->wait) line and it stops there to wait for the cbuf->wait signal. ok.
Then i generate a serial receive interrupt and the serial_rcv_char function is called,
which sends the cbuf->wait signal with the line cyg_drv_cond_signal(&cbuf->wait).
But nothing happends?, the cyg_drv_cond_wait(&cbuf->wait) never continues, as if it never gets the
signal.
I suppose there's alot of things that can go wrong, but I dont have a clue of what is happening there.
Does anyone know of something that could cause this ?
(I use the serial_echo test to test this)
//Dennis