This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: FW: FW: ecos-discuss@ecos.sourceware.org
- From: Yong Chen Tan <oricon776 at hotmail dot com>
- To: "ecos-discuss at ecos dot sourceware dot org" <ecos-discuss at ecos dot sourceware dot org>
- Date: Fri, 27 Jun 2008 15:30:03 +0000
- Subject: RE: [ECOS] FW: [ECOS] FW: [ECOS] ecos-discuss@ecos.sourceware.org
> Date: Fri, 27 Jun 2008 17:23:18 +0200
> From: andrew@lunn.ch
> To: oricon776@hotmail.com
> CC: ecos-discuss@ecos.sourceware.org
> Subject: Re: [ECOS] FW: [ECOS] FW: [ECOS] ecos-discuss@ecos.sourceware.org
>
>> Hi there, yes I know the serial device driver is giving me
>> interrupts.. That brings back to my original problem, how is this
>> going to help me solve the multithreading problem stuck at scanf()?
>
> Because when you use this interrupt driver serial device driver, your
> scanf() will not block busy looping taking 100% of the CPU. It will
> just go to sleep until there is an interrupt saying a character has
> arrived. So your other threads get to use the CPU.
>
> Andrew
So this interrupt will give me interrupt whenever there is character sending out and in is it?
Because once I enable this serial drivers, the screen on my hyperterminal keeps displaying interrupt signals even though I never key in anything
My hyperterminal is to display my menu option for user to choose. Will that generates endless interrupts?
_________________________________________________________________
NEW! Get Windows Live FREE.
http://www.get.live.com/wl/all
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss