Re: [avr-libc-dev] New Atomic.h header?

2007-01-07 Thread Joerg Wunsch
Hi Dean, thanks for your suggestion, and for getting here to the mailing list with these. I hope others might also state their opinions about it, as I think this issue occasionally came up as a request in some discussions. My macro allows for both atomic (interrupts disabled) and non-atomic

Re: [avr-libc-dev] Volatile not working?

2007-01-07 Thread Ned Konz
Ron wrote: Hi Folks. I would have thought that with -Os the code below should work. static volatile char* Ptr; . . static Send(char* p) { if (p) { while (Ptr != NULL) {;} Ptr = p; UDR1 = *Ptr++; } } . . SIGNAL(SIG_UART1_TRANS) { if (*Ptr == '\0')

Re: [avr-libc-dev] Volatile not working?

2007-01-07 Thread David Brown
Ned Konz wrote: Ron wrote: Hi Folks. I would have thought that with -Os the code below should work. static volatile char* Ptr; . . static Send(char* p) { if (p) { while (Ptr != NULL) {;} Ptr = p; UDR1 = *Ptr++; } } . . SIGNAL(SIG_UART1_TRANS) { if