2009/3/9 Frédéric Nadeau <[email protected]>:

> My suggestion is adding the following:
>
> #define XCK_DDR DDRD
> #define XCK_DDRx DDD4

May be better

#define XCK D,4

or even

#define XCK D,4,H

with dummy High active level symbol? This 'H' not needed for XCK or
MOSI or OC1A but needed for uniformity with user-defined pins like
#define LED_ERROR     B,0,L
#define PUMP_RELAY  B,1,H

That sort of definitions usable with macros like in attached header file.
I use this macro from about 1999-2000.


-- 
wbr,
ReAl

Attachment: pin_macros.h
Description: Binary data

_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to