ts-7000
[Top] [All Lists]

[ts-7000] gpio problems.

To:
Subject: [ts-7000] gpio problems.
From: Rodrigo Gómez <>
Date: Sat, 07 Oct 2006 02:58:03 -0000
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/
 


<Prev in Thread] Current Thread [Next in Thread>
  • [ts-7000] gpio problems., Rodrigo Gómez <=
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU