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

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


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.

Claudio a écrit :
Hi Frederick

Yes , the set/readbit utils use the /dev interface, the gpiosyscall
was implement from blogic (the prozen sdk maintainer) and are used to
modify directly the porta/b/g register.

Something appear to be changed inside kernel as reported here
http://ubuntuforums.org/archive/index.php/t-321969.html

I can obtain the same error compiling the source with:

define Build/Compile
	$(MAKE) -C $(PKG_BUILD_DIR) \
		$(TARGET_CONFIGURE_OPTS) \
		CFLAGS="$(TARGET_CFLAGS) -I$(BUILD_DIR)/linux/include"
endef

I'm little busy at the moment but i will fix it soon as possible.

Any help is appreciated


---
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/