avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] generic queue library for AVR GCC?


From: David Brown
Subject: Re: [avr-gcc-list] generic queue library for AVR GCC?
Date: Tue, 16 Nov 2004 11:19:13 +0100



> 
> 
> David Brown wrote:
> > 
> > Yes, an inline function would work fine:
> >     static inline unsigned char begin_critical_section(void) {
> >         unsigned char s = SREG;
> >         cli();
> >         return SREG;
> 
> Just a mute point, but I assume you meant to return s here?
> 

Indeed :-) 

Another good rule of C programming is to read what you've written...


> Ian Caddy
> 




reply via email to

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