This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Regarding Problems with cyg_io_read and cyg_i
- To: Arif dot Abbas at combitechsystems dot com
- Subject: RE: [ECOS] Regarding [ECOS] Problems with cyg_io_read and cyg_i
- From: Gary Thomas <gthomas at cambridge dot redhat dot com>
- Date: Tue, 03 Jul 2001 06:50:58 -0600 (MDT)
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat, Inc.
On 03-Jul-2001 Arif.Abbas@combitechsystems.com wrote:
> Hi again!
> I think I have the solution to the problem I had before. Thought I'd just
> write it in if someone encounters the same problem:
> It seems like you have to have the functions above running in threads...
> When I started from the example called serial.c and then just changed
> some parts of it (such as reconfiguring port, using read/write etc etc)
> it worked just fine!
> But the question WHY you have to have them running in a thread I don't
> know...
Because the drivers (serial at least) are all interrupt driven. Until
you start the scheduler, interrupts are disabled.