- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
Can I direct using udelay()? Which time base be used in udelay()? Thanks in advance. Best regards,Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In kernelspace you can use the udelay (microseconds delay) and mdelay (milliseconds delay) functions.
In userspace ("normal" uClinux C application) you can use the common usleep (microseconds delay) and sleep(seconds delay) function. I haven't personally used the sleep bu I have used usleep and udelay and they worked like a charm! So it depends on what you're writing... When in doubt i'd say go for usleep. You have to include unistd.h in order to use usleep.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page