This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Regarding Problems with cyg_io_read and cyg_i



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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]