LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "hangtoo" <hangtoo@163.com>
To: "li yang-r58472" <leoli@freescale.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: RE: delay programming
Date: Thu, 25 May 2006 15:10:17 +0800 (CST)	[thread overview]
Message-ID: <44755859.0000CD.04146@bj163app85.163.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 998 bytes --]

hi,
    yes,you are right.the usleep didn't give out accurate delay.so I make a delay funtion to fix it.
   thank you for you help.:)
regards
tony
 


That depends on how accurate you want.  Sleep() functions can't be too accurate 
for Linux schedule characteristic.  To get best accuracy, you can use hardware
timer.  udelay() is a choice which reduces the overall system performance.

Best Regards,
Leo


> -----Original Message-----
> From: linuxppc-embedded-bounces+leoli=freescale.com@ozlabs.org
> [mailto:linuxppc-embedded-bounces+leoli=freescale.com@ozlabs.org] On Behalf
> Of tony
> Sent: Wednesday, May 24, 2006 5:24 PM
> To: linuxppc-embedded@ozlabs.org
> Subject: delay programming
> 
> 
> hi all
> 	I want to delay 1ms in the program,
> 	does usleep(1000) works accurate?
> 	any good idea?
> 
> regards
> tony
> 
> 
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded

[-- Attachment #2: Type: text/html, Size: 1839 bytes --]

                 reply	other threads:[~2006-05-25  7:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44755859.0000CD.04146@bj163app85.163.com \
    --to=hangtoo@163.com \
    --cc=leoli@freescale.com \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox