[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Global variables and ISRs ???
From: |
Vincent Trouilliez |
Subject: |
Re: [avr-gcc-list] Global variables and ISRs ??? |
Date: |
Wed, 07 Sep 2005 10:34:56 +0200 |
> There is a problem in your code also - you are not making
> flag=0 after you send back the character. HTH.
>
> Nayani
Hi Nayani, no it's not a problem at all, it only means that it would
react only once, which was all I wanted/needed it to do in order to
prove that ISR to main communication was working ! ;-)
This particular dirty tiny piece of code had no other interest but do
what it says in it : send a character once a character has been received
and stop there, to prove things. And it did, thanks to "volatile" !
I have now dug out my 'proper' program with the buffer etc, and it's all
working perfectly now :-)
Regards,
--
Vince
- Re: [avr-gcc-list] Global variables and ISRs ???, (continued)
- Re: [avr-gcc-list] Global variables and ISRs ???, Galen Seitz, 2005/09/07
- Re: [avr-gcc-list] Global variables and ISRs ???, ericw, 2005/09/07
- Re: [avr-gcc-list] Global variables and ISRs ???, Joerg Wunsch, 2005/09/07
- Re: [avr-gcc-list] Global variables and ISRs ???, Vincent Trouilliez, 2005/09/07
- Re: [avr-gcc-list] Global variables and ISRs ???, Joerg Wunsch, 2005/09/07
- Re: [avr-gcc-list] Global variables and ISRs ???, Vincent Trouilliez, 2005/09/07
- Re: [avr-gcc-list] Global variables and ISRs ???, David Brown, 2005/09/07
- Re: [avr-gcc-list] Global variables and ISRs ???, Vincent Trouilliez, 2005/09/07
Re: [avr-gcc-list] Global variables and ISRs ???,
Vincent Trouilliez <=