Re: [crisos] Re: CrisOs and Sensirion humidity and temperature sensor

[ Thread Index | Date Index | More lists.tuxfamily.org/crisos Archives ]


Hi Frederic
I'm trying to reply your experience but I always get this error:
error: '__NR_gpiosetbits' undeclared (first use in this function)

Your workaround (add #include <asm-cris/arch-v32/unistd.h> to
gpio_syscalls.h) don't work on my crisos copy
Can you send me the Makefile, sht17.c and gpio_syscall.h?

Many thanks

2008/6/27 Frederic AYRAULT <fred@xxxxxxxxxxx>:
> Hi Claudio,
>
> Ok it is working Now :-)
>
> I changed the BUILD_DIR from your makefile :
>
>             CFLAGS="$(TARGET_CFLAGS)
> -I/home/fox/trunk/build_dir/linux-etrax/linux-2.6.19.2/include"
>
> and I get other errors :
> error: expected declaration specifiers or '...' before 'gpiosetbits'
>
> Then I started to change the #include <asm/unistd.h> in the gpio_syscalls.h
> file
> and sometimes the errors changed to :
> error: '__NR_gpiosetbits' undeclared (first use in this function)
>
> So finally I leave the default #include <asm/unistd.h>
> and I add #include <asm-cris/arch-v32/unistd.h>
> this hack solve the problem.
>
> Thank you Claudio for your help.
>
> Regards,
>
> Frederic.
>

---
CrisOs mailing list
Official multi-language http://www.crisos.org/ mailing list

For unsubscribe send empty mail to: crisos-request@xxxxxxxxxxxxxxxxxxx with subject unsubscribe.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/