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

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

[avr-gcc-list] Volatile Static or Static Volatile?


From: Bob Paddock
Subject: [avr-gcc-list] Volatile Static or Static Volatile?
Date: Sat, 21 Dec 2002 18:20:13 -0500
User-agent: KMail/1.4.3

Which is the correct format?

volatile static unsigned char led;
static volatile unsigned char led1;

Both compile with out complaint.

By "static" I mean the var. is local to this source file.

By "volatile" I mean the var. maybe changed by the signal() interrupt.

avr-gcc-list at http://avr1.org



reply via email to

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