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: Ian Caddy
Subject: Re: [avr-gcc-list] generic queue library for AVR GCC?
Date: Tue, 16 Nov 2004 17:28:12 +0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041103 Thunderbird/0.9 Mnenhy/0.6.0.104



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?

Ian Caddy


reply via email to

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