[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Checking individual Pin in PORTD!!!
From: |
Jon McClintock |
Subject: |
Re: [avr-gcc-list] Checking individual Pin in PORTD!!! |
Date: |
Wed, 31 Dec 2003 18:41:11 -0800 |
User-agent: |
Mutt/1.3.28i |
On Thu, Jan 01, 2004 at 09:52:13AM +1000, Steven Chang-Lin Yu wrote:
> I forgot how to do checking individual PIN in PORT, I know in asm I can
> use ?sbis PIND,0x00?, however how to do this in c in WINAVR???
Use the bit_is_set()/bit_is_clear() routines, defined in
include/avr/sfr_defs.h
-Jon