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]
Other format: [Raw text]

RE: short accurate delay in DSR or startup


Please copy replies to the mailing list so that all may benefit.  
Private email support is available under contract only.

On Tue, 2004-07-27 at 09:00, harmon wrote:
> Thank you for your response to my question.  
> 
> However, when I try to use the CYGACC_CALL_IF_DELAY_US call, my library
> builds, but the application does not link.
> 
> /ecos-c/cygwin/opt/ecos/ecos-2.0/packages/devs/usb/Nc2270/v2_0/src/usbs_
> Nc2270.c
> :3378: undefined reference to `CYGACC_CALL_IF_DELAY_US'
> 
> Is this an option that needs enabled??

You need this line in your code:

  #include <cyg/hal/hal_if.h>

> 
> Larry
> 
> -----Original Message-----
> From: ecos-discuss-owner@ecos.sourceware.org
> [mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Gary Thomas
> Sent: Monday, July 26, 2004 8:22 PM
> To: harmon
> Cc: ecos-discuss@sources.redhat.com
> Subject: Re: [ECOS] short accurate delay in DSR or startup
> 
> On Mon, 2004-07-26 at 17:53, harmon wrote:
> > When initializing a chip, I need to delay for ~ 1 millisecond.  I
> can't
> > use any blocking calls, so I am now using a simple for loop to eat up
> > time.  Is there a portable, accurate way to delay within a DSR or
> > initialization code?
> 
> #include <cyg/hal/hal_if.h>
> 
> CYGACC_CALL_IF_DELAY_US(_n_ms);
> 
> -- 
> Gary Thomas <gary@mlbassoc.com>
> MLB Associates
-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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