Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

RE: [AVR-Chat] Re: Volatile modifier

RE: [AVR-Chat] Re: Volatile modifier

2012-04-19 by Tim Mitchell

----Original Message----
Show quoted textHide quoted text
From: AVR-Chat@yahoogroups.com
[mailto:AVR-Chat@yahoogroups.com] On Behalf Of Robert
Adsett Sent: 18 April 2012 23:45 To:
AVR-Chat@yahoogroups.com Subject: Re: [AVR-Chat] Re:
Volatile modifier 

> How about
> 
> -----
> volatile controls access to a variable.  Reads and writes
> to a volatile 
> variable must be performed by the compiler in the order
> written and 
> exactly as many times as written.
> -----
> 

Yours is a very good summary, but I very much like Don's list of examples of where you need volatile. That list would have helped me to think more clearly and avoid my original problem which started this thread in the first place. 

-- 
Tim Mitchell

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.