Yahoo Groups archive

AVR-Chat

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

Message

RE: [AVR-Chat] Question regarding interrupt routine in AT90CAN128

2005-08-09 by Thomas Keller

On Tue, 2005-08-09 at 09:56 -0400, wbounce wrote:
> Sounds like you need the volatile modifier in front of you variable
> declaration
> Ie 
> volatile uint8_t msCount;
> This tells the compiler that is the variable is modified outside of
> the interrupt routine. 

   Or simply declare the variable as a global identifier.  Globally
declared variables are visible in all modules/files.

  Which C compiler is this, anyway?

tom

Attachments

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.