[Top][All Lists]

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

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

From: Lars Noschinski
Subject: Re: [avr-gcc-list] Global variables and ISRs ???
Date: Wed, 14 Sep 2005 19:05:12 +0200
User-agent: mutt-ng devel (Linux)

* Lars Noschinski <address@hidden> [2005-09-06 21:59]:
You must declare the global variable as volatile (or as register), if
you want to modify in an ISR.

Speaking of this, if I have an variable which is initialized during
startup and only accessed /in/ an ISR, am I on the safe side, if don't
declare it as volatile, right?

reply via email to

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