Re: [crisos] Re: CrisOs and Sensirion humidity and temperature sensor |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/crisos Archives
]
- To: crisos@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [crisos] Re: CrisOs and Sensirion humidity and temperature sensor
- From: Claudio <claudyus84@xxxxxxxxx>
- Date: Wed, 2 Jul 2008 17:34:18 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=q5DzXJm8h87x+uRsoGlK3VSAVnl9Ywb2O1oTUhK+QXc=; b=hpksgxJ1rJzWMHUugzcaQr6alIqHP+fd3rvwNlN+Vrh1ajcUB9We231zV3pgPp7fRs Q0x3urmkVRZN06Wiwy/2Pl2g4BMl+Sl97Ru783n1gRFmLClwFt6yw2J+3WYOQh5nCh3w DDAEf6iHgTKK9pTcTfhArXK6U0uLRkarUQoDU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=hgnQ6XoHNn3j2hsGRpXygkjY3t3MafAJ5Dny8IBKlGlPjYLipKqmGxEIQU56mVjKL8 4wXt6TdbQHNYNnFJUEY3OeaagaA5HtmgXEnfTK1RmysHM5QSha7BTxWAoijlkc0LZAis /f4nj5scxv1q6ebAlRppfEIcWKeDnSGEvbtqQ=
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.