I`m trying to discover how gpio interrupts works. I'm compiling the
andy's code :
gps_pps.tgz
Example device driver that shows how to use GPIO and the GPIO IRQ
after I compile (with make) the compiler sends and error:
ts7200:/develop/ejemplosCodigo/gpio/gps_pps# make
/usr/bin/gcc -B/usr/bin -isystem /usr/include -I /usr/include -
L /usr/lib -Wno-
trigraphs -Os -mshort-load-bytes -fno-strict-aliasing -fno-common -
Uarm -pipe -m
apcs-32 -D__LINUX_ARM_ARCH__=4 -march=armv4 -mtune=arm9tdmi -msoft-
float -I. -
D_DEBUG -D__KERNEL__ -DMODULE -D APPLIANCE -D LITTLE_ENDIAN -Wall -
Werror -o obj
/gps_pps.o gps_pps.c -c
gps_pps.c:205: parse error before `irq_handler'
cc1: warnings being treated as errors
gps_pps.c:206: warning: return-type defaults to `int'
gps_pps.c: In function `irq_handler':
gps_pps.c:217: `IRQ_HANDLED' undeclared (first use in this function)
gps_pps.c:217: (Each undeclared identifier is reported only once
gps_pps.c:217: for each function it appears in.)
gps_pps.c:220: `IRQ_NONE' undeclared (first use in this function)
gps_pps.c:221: warning: control reaches end of non-void function
gps_pps.c: In function `initialize_hardware':
gps_pps.c:234: warning: passing arg 2 of `request_irq' from
incompatible pointer
type
gcc: file path prefix `/usr/bin' never used
make: *** [obj/gps_pps.o] Error 1
ts7200:/develop/ejemplosCodigo/gpio/gps_pps#
I guess my system lacks of a library that have the IRQ_HANDLED and
IRQ_NONE definitions, I'm running in ts-7250 with the cross chain
included in the USB memory that runs a debian stable shell.
Any help would be greatly apreciated
Rodrigo
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|