Yahoo Groups archive

AVR-Chat

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

Message

RE: [AVR-Chat] Re: Help: volatile variable versus volatile array for ISR access

2007-11-03 by Cat C

Thank you all, here's my status:

I tried in the makefile:
ALL_CFLAGS = -mmcu=$(MCU) -I. $(CFLAGS) $(GENDEPFLAGS) -fvolatile

but the compiler doesn't like it, it looks like I don't know how to add a 
flag :-(

I tried:
uint8_t volatile ipCh[6] = {0, 0, 0, 0, 0, 0};
no dice.

I tried:
typedef volatile uint8_t vuint8_t;
volatile vuint8_t iCh[6] = {0, 0, 0, 0, 0, 0};
nope

I do have to make sure I'm not braking something else when I'm changing from 
independent variables to array...

Cat

_________________________________________________________________
Send a smile, make someone laugh, have some fun! Check out 
freemessengeremoticons.ca

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.