This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
about at91 serial device drivers
- From: "Marc Pignat" <marc dot pignat at hevs dot ch>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Mon, 15 Apr 2002 14:29:16 +0200
- Subject: [ECOS] about at91 serial device drivers
As said in the comments, the getc must wait.
In the source code of the at91 serial device drivers, this function is not blocking. Is this a bug ?
// Fetch a character from the device input buffer, waiting if necessary
static unsigned char
at91_serial_getc(serial_channel *chan)
{
at91_serial_info *at91_chan = (at91_serial_info *)chan->dev_priv;
CYG_ADDRWORD base = at91_chan->base;
cyg_uint32 c;
// Read data
HAL_READ_UINT32(base+AT91_US_RHR, c);
return c;
}
Marc
=====================================================================
Marc Pignat - Collaborateur Scientifique (Système Intégrés)
Haute Ecole valaisanne
Rte du Rawyl 47
1950 Sion
=====================================================================
Bureau : A306 tél : +41 27 606 8748 fax : +41 27 606 8715 mail : marc.pignat@hevs.ch
Privé : +41 79 678 71 13
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss