Re: [crisos] DarwinFox SDK

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


Thank you Douglas for your help. Now I know why I was getting strange results (using alpha R2) :



Regards,

Frederic.

Douglas Gilbert a écrit :
Frederic AYRAULT wrote:
Hi all,

I am trying to connect a LCD display (http://foxlx.acmesystems.it/?id=8021)
and a temperature sensor (http://foxlx.acmesystems.it/?id=89)
on my Fox running darwinfox 8.09-4.

Be warned the temperature sensor code has one very nasty
bug. It is nasty because it looks like it is working
but gives temperatures that are off by up to 2 C sometimes.

The C type of Lsb and Msb cannot be "char"! That causes
this to happen after sign extension (for example):
  Msb = 0x2
  Lsb = 0x80

  (Msb << 8) + Lsb  -----> res
  (0x2 << 8) + 0x80 -----> 0x180
Ouch! Change the type of Lsb to "unsigned char" and the sum
is 0x280 as expected.

I emailed Sergio T. and he said that he would correct the web
page but it ain't happened yet.

BTW My testing was on the Phrozen SDK. I expect the same
bug would show up in Crisos.


Doug Gilbert


I am just able to test gpio with a LED and a switch using setbits and readbits (http://foxlx.acmesystems.it/?id=17)

I would like to do the same tests using GPIO syscalls (http://foxlx.acmesystems.it/?id=22)
but when I try to get the SDK using svn co svn://svn.tuxfamily.org/svnroot/crisos/svn/target/darwinfox,
I do not get the openwrt trunk : A    darwinfox/helper
A    darwinfox/helper/patch
A    darwinfox/patches
A    darwinfox/patches/900-crypto_workaround.patch
A    darwinfox/patches/N0003-add-patch-for-2.6.28.patch
A    darwinfox/patches/800-enable_ipkg.patch
A    darwinfox/patches/N0002-fix-typo-and-make-subtarget-appear-in-menuconfig.patch
A    darwinfox/patches/001-base-files.patch
A    darwinfox/patches/N0007-netus-now-override-at91.patch
A    darwinfox/patches/N0004-XXX-Da-reingegnarizzare.patch
A    darwinfox/patches/N0001-initial-import-for-netus.patch
A    darwinfox/patches/N0005-XXX-DA-reingegnerizzare-2.patch
A    darwinfox/patches/N0006-fix-netus-build.patch
A    darwinfox/README.map
A    darwinfox/Makefile
A    darwinfox/README
U   darwinfox
Checked out revision 118.

Thank you for your help.

Regards,

Frederic.

PS : Thank you Claudio for CrisOs


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

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



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