On Sunday 04 March 2007 14:21, Gavin Jackson wrote:
Another thing you may want to take a look at is the SPIF
flag on page 174 of the datasheet. It states that:
From what the datasheet says, your SPIF bit is never cleared
so you'll be overwriting the SPI data register contents before
they've
From: Graham Davies [EMAIL PROTECTED]
Bob Paddock wrote:
[...]
I don't see while(true){} being any different than for(;;){}
in this context, and while(true){} causes the Lint error
of evaluation of constant value boolean.
[...]
I can't see why Lint would consider this an error and for ( ; ;
On Friday 02 March 2007 21:29, Graham Davies wrote:
Bob Paddock wrote:
for(;;){} is a endless loop, how is until execution of that
block ends in any way. being fulfilled here?
The block begins with the open brace and ends with the close brace. The
block ends when control falls out of
In what many or may not be a continuation of
my problems with out-of-order code execution,
with 4.1.1, I'd like to know why this code does
not work (comments below the code):
/* Code for AT90CAN64. */
#include avr/io.h
#include util/delay.h
void SPI_MasterInit(void);
void SPI_MasterInit(void)
:59 PM
To: avr-gcc-list@nongnu.org
Subject: [avr-gcc-list] Should this code work? 4.1.1
In what many or may not be a continuation of my problems with
out-of-order code execution, with 4.1.1, I'd like to know why this code
does not work (comments below the code):
/* Code for AT90CAN64
On Friday 02 March 2007 18:42, Francesco Sacchi wrote:
Bob Paddock ha scritto:
you see that the last rjmp is jumping to the point where shift
is reinitialized with '1' (r18/r19).
Moving 'uint16_t shift = 1;' out of the for(;;){} and into
the top of main(){} makes the code work ok.
Bob Paddock wrote:
for(;;){} is a endless loop, how is until execution of that
block ends in any way. being fulfilled here?
The block begins with the open brace and ends with the close brace. The
block ends when control falls out of the bottom and for ( ; ; ) takes over
for the next