avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Global variables and ISRs ???


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] Global variables and ISRs ???
Date: Thu, 15 Sep 2005 20:54:33 +0200 (MET DST)

Keith Gudger <address@hidden> wrote:

> Now your main routine may have an old value
> for that variable.

Even with volatile, if the interrupt had happened a few clocks later,
you'd read the old value as well.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]