[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] very simple program
From: |
Parthasaradhi Nayani |
Subject: |
Re: [avr-gcc-list] very simple program |
Date: |
Sun, 2 Oct 2005 10:35:06 -0700 (PDT) |
Hello,
In order to set the bit, you need to logical OR the
bit.
DDRB |= _BV (PB0);
to clear it
DDRB &= ~_BV(PB0);
Nayani
> > 4: undefined reference to `__stack'
> >
> >
> > #include <avr/io.h>
> >
> > int
> > main(void){
> > while (1) {
> > DDRB = _BV(PB0);
> > };
> > }
> >
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com