avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] Nice to have: XCK Definition


From: Oleksandr Redchuk
Subject: Re: [avr-libc-dev] Nice to have: XCK Definition
Date: Tue, 10 Mar 2009 11:20:44 +0200

2009/3/9 Frédéric Nadeau <address@hidden>:

> 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


reply via email to

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