|
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
[Prev in Thread] | Current Thread | [Next in Thread] |