On Thu, 16 Nov 2000 [EMAIL PROTECTED] wrote:

> I am using GCC to port RS485 device driver, but i encounted a serious
> problem.
> 
> In my program code, i should get a micro second level delay and called
> the function usleep(1000) for delay 1 ms, but can't get the result. i got
> the waveform using scope, but can only get a delay for at least 20 ms, no
> matter how chang the value.
> 
> i tried to modify the HZ value in <asm/param.h>, but also the same ...

You should have also recompiled the whole kernel and modules, install in LILO
and reboot. But if you use RT-Linux with real time scheduler, you can get
desired time resolution using proper RTL functions - usleep or nanosleep 
(present in RTLinux3.0-pre9 rtl_sched.h but not documented). But
you will have to include them from RT scheduler. I suspect that you have
compiled your code as a normal program, not kernel module and thus used
standard Linux usleep.

--
Tomek

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to