[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Volatile Static or Static Volatile?
From: |
Larry Barello |
Subject: |
Re: [avr-gcc-list] Volatile Static or Static Volatile? |
Date: |
Sat, 21 Dec 2002 16:41:45 -0800 |
Because this is just a regular storage value, either works the same.
The only time it gets weird is when you are declaring a pointer to a
variable: which is volatile, the pointer or the data? Then it is
important where the volatile keyword goes.
----- Original Message -----
From: "Bob Paddock" <address@hidden>
>
> Which is the correct format?
>
> volatile static unsigned char led;
> static volatile unsigned char led1;
>
> Both compile with out complaint.
avr-gcc-list at http://avr1.org