[Top][All Lists]

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

Re: [avr-gcc-list] How to reserve registers

From: Volker Kuhlmann
Subject: Re: [avr-gcc-list] How to reserve registers
Date: Wed, 04 Jan 2012 10:48:18 +1300

On Wed 04 Jan 2012 01:50:46 NZDT +1300, Omar Choudary wrote:

Whenever you declare a variable in C/C++ that is being modified by
something other than your program, e.g. ISR or hardware, you have to
declare that variable volatile. Failure to do so means your program may
only work intermittently.

You are missing the volatile declaration for your counter variable.


Volker Kuhlmann
http://volker.dnsalias.net/     Please do not CC list postings to me.

reply via email to

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