Sign in

username:

password:



Not a member?

Search lpc2000



Search tips

Subscribe to lpc2000



lpc2000 by Keywords

2106 | ADC | ARM7 | Atmel | Bootloader | CAN | CrossStudio | CrossWorks | DDS | ECos | Ethernet | ETM | FIFO | FLASH | FPGA | GCC | GDB | GNU | GNUARM | GPIO | I2C | IAP | IAR | JTAG | Kickstart | LCD | Linux | LPC | LPC-E2294 | LPC2000 | LPC2100 | LPC2104 | Lpc2106 | Lpc210x | LPC2114 | LPC2119 | LPC2124 | LPC2129 | Lpc2138 | LPC213x | LPC21xx | LPC2210 | LPC2212 | LPC2214 | LPC2292 | LPC2294 | LPC2xxx | LPC3128 | MCB2100 | Olimex | Philips | PWM | Rowley | RTC | RTOS | SPI | SSP | UART | UART0 | UART1 | ULINK | USB | Watchdog | Wiggler

Ads

Discussion Groups

Discussion Groups | LPC2000 | uCLinux: jiffies.h with "divide by zero" error

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 )