RE: [avr-gcc-list] Implementation RS485 communication in c

2007-04-03 Thread Henko Gouws \(H\)
Hi Do you intend to later add more controllers to your RS485 bus in a multidrop architecture? If you intend to do this I might be able to help a bit with the 9 bit multidrop protocol where all the slaves listen to their address with the ninth bit set. I have implemented a simple 9-bit multidrop

Re: [avr-gcc-list] float type

2007-04-03 Thread Thomas Buchta
Hi Andi! Maybe you haven't link the mathematical library! In order to access the mathematical functions that are declared in , the linker needs to be told to also link the library, libm.a. Typically, system libraries like libm.a are given to the final C compiler command line that performs the

RES: [avr-gcc-list] float type

2007-04-03 Thread Eric Pasquier
You have to compile with no optimization: -O0 The compiler is wiping your code away because your variable x is not used anywhere else. Eric Pasquier -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de andi Enviada em: mardi 3 avril 2007 08:35 Para: avr-gcc-li

Re: [avr-gcc-list] float type

2007-04-03 Thread Lars Noschinski
* andi <[EMAIL PROTECTED]> [07-04-03 08:51]: I want to use float type in my code, but after i compile it, the avr-gcc not the generate code for the variable: float x = 1.23; x = x*2; sei(); Do you use this variable later on? If not, gcc might just optimize it away. ___