Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Programming in Linux _ Delay.h

Posted by: clydezilla Jan 18 2005, 01:51 PM

In writing a driver for an EPROM burner, I am trying to use the udelay() function. According to my driver book, I need to add the "#include <asm/delay.h>" line to use the function. After adding the line and compiling in C, I received a "file not found" error. I tried loking for the "delay.h" file in my filesystem, to no avail.

Where can I find this file in Fedora Core 3, and if it's not there, where (if possible) can I get it? unsure.gif

Posted by: Hemant Jan 29 2005, 09:35 AM

Do you have kernel sources installed in "/usr/src/linux-2.6.xx".?

You should make sure that,you should link your driver with header files from current kernel not the one present in "/usr/include".

Also there have been major changes since 2.4.

Posted by: clydezilla Jan 30 2005, 07:17 AM

I don't have any of the kernel sources - that could be part of the problem...

Linking would help - I'm still figuring out how to link everything in...

Another way I have found to do a 1 microsecond delay is to write a "dummy byte" to port 0x80. I was also thinking of trying to add a loop (based on BogoMIPS ), but I figured that would be even more inaccurate.

There have been many changes - I'm still trying to figure them all out...

Thanks for the help...

Posted by: Hemant Jan 30 2005, 01:10 PM

For more help on the changes,you can read following document.

Powered by Invision Power Board (
© Invision Power Services (