Discussion group dedicated to the Philips LPC2000 family of ARM MCUs
uCLinux: jiffies.h with "divide by zero" error - "h.belig" - Oct 5 10:15:13 2008
Hello,
Board: LPC2468 OEM from EA
Linux: Vs. 2.14.3 running under VMware
As a first step towards activating an interrupt routine with
"request_irq" I added
#include
to the HelloWorld project provided by EmbeddedArtists (just this line,
nothing more at the beginning).
As a result of MAKE I got several errors like these:
../uClinux-dist-20051014/uClibc/include/linux/jiffies.h:385: division
by zero in #if
../uClinux-dist-20051014/uClibc/include/linux/jiffies.h:385: division
by zero in #if
../uClinux-dist-20051014/uClibc/include/linux/jiffies.h:396: division
by zero in #if
and finally:
../uClinux-dist-20051014/uClibc/include/linux/list.h:705: warning:
#warning "don't include kernel headers in userspace"
A closer look at jiffies.h draw my attention to USER_HZ, which
obviously is responsible for that error.
And how about the warning not to include kernel headers?
Is there another header file required to use "request_irq()"?
Can anybody help, please?
Henry
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )