Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
1 us delay generation
Jump...
Cancel
Locked
Locked
Replies
4 replies
Subscribers
119 subscribers
Views
3596 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
1 us delay generation
avadhoot kumthekar
over 12 years ago
Note: This was originally posted on 11th May 2011 at
http://forums.arm.com
Dear all,
I am using Linux OS with arm-elf tool chain. I am not able to generate 1 us delay using 'for loop' method of 'C' programming language.Is there anything that i can try?
thanks & regards
Avadhoot
Parents
Martin Weidmann
over 12 years ago
Note: This was originally posted on 11th May 2011 at
http://forums.arm.com
Generating a reliable delay of a given length using a loop is difficult with modern processors, doubly so when running under a rich OS such as Linux. There is just so much going on you don't have control over.
Not done much Linux app development, but can't you use some sort of wait()/sleep() call from the OS?
Cancel
Vote up
0
Vote down
Cancel
Reply
Martin Weidmann
over 12 years ago
Note: This was originally posted on 11th May 2011 at
http://forums.arm.com
Generating a reliable delay of a given length using a loop is difficult with modern processors, doubly so when running under a rich OS such as Linux. There is just so much going on you don't have control over.
Not done much Linux app development, but can't you use some sort of wait()/sleep() call from the OS?
Cancel
Vote up
0
Vote down
Cancel
Children
No data