All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Margraf <m_margraf@web.de>
To: linux-omap-open-source@linux.omap.com
Subject: setting omap into idle for some ms
Date: Tue, 27 Jun 2006 10:39:53 +0200	[thread overview]
Message-ID: <968054735@web.de> (raw)

hi,

i try to set the osk5912 Rev. D with 2.6.16.18 for 5 ms into idle.
i looked for this and found the nanosleep() function, wich send the omap into sleep for ns-ms. it works fine, but during this sleep
the cpu is 100% busy, wich is a problem, cause i would test the cpu usage of my ecg algorithm. 
i heard that nanosleep uses for sleep times <=2ms a busy loop, but i use 5ms, where is the problem? 

another problem is that i cannot display float in the ttyS0 console. for example:

float i = 3.4143;
printf(".....%f\n",i);  is displayed as long long number
i tried to declare the number as double, same problem. the same with every format like %5.6f.
does someone has the same prob?

regards 

martin
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193

                 reply	other threads:[~2006-06-27  8:39 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=968054735@web.de \
    --to=m_margraf@web.de \
    --cc=linux-omap-open-source@linux.omap.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.