[En-Nut-Discussion] RE: GCC + TWIF Problem
filip haglund
filiphag at hotmail.com
Mon Mar 15 16:46:13 CET 2004
I have found an solution to the problem
i have to save the values in diffrent positions in the txdata Array
depending on what compiler i am going to use.
It is the same in case with rxdata in ImageCraft i don't use the first
position in the array.
some kind of offset is added when compiled with ImageCraft.
an example:
[GCC]
txdata[0] = RegAddr;
txdata[1] = Value;
[ImageCraft]
txdata[1] = RegAddr;
txdata[2] = Value;
[Common for ImageCraft and GCC]
TwMasterTransact(I2C_SubAddr, txdata, 1, rxdata, 1, 150)
Filip Haglund!
_________________________________________________________________
Hitta rätt på nätet med MSN Sök http://search.msn.se/
More information about the En-Nut-Discussion
mailing list