[Top][All Lists]

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

Re: [avr-libc-dev] [RFC] sleep api

From: Joerg Wunsch
Subject: Re: [avr-libc-dev] [RFC] sleep api
Date: Mon, 4 Nov 2002 22:09:55 +0100
User-agent: Mutt/1.2.5i

As Theodore A. Roth wrote:

> :) I notice there's no #ifndef __ASSEMBLER__ around it, ...

> This should probably just be C only. I didn't think about the assembler
> case. How would you make it valid for both asm and C?

Of course, you gotta write both separately.  However, since the ``C''
version is already basically an assembler version already (just put
into the word asm() around it), i think we get the assembler version
almost for free.  This would in particular extend the scope of the
file to those chips that are not supported by C at all.

CPP macros are OK anyway, since you can still write CPP-able asm
code for those devices.

J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/

reply via email to

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