[Top][All Lists]

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

Re: [avr-gcc-list] simple macro to dig w/ ports

From: Tehn Yit Chin
Subject: Re: [avr-gcc-list] simple macro to dig w/ ports
Date: Tue, 28 Mar 2006 13:56:40 +1100

It is token concatenation. The following URL gives an explanation.

On 3/28/06, Peter Harrison <address@hidden> wrote:
Jerome Kerdreux wrote:
> Dave Hansen give me a better solution I think,
> here a cut / paste of his anwser
> --- begin included file ---
> #define BIT(p,b)                (b)
> #define PORT(p,b)               (PORT ## p)
> #define PIN(p,b)                (PIN ## p)
> #define DDR(p,b)                (DDR ## p)

What does the ## do?

I have tried searching for an answer but the characters are thrown out
by my desktop and internet search tools

Pete Harrison

AVR-GCC-list mailing list

reply via email to

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