avr-gcc-list
[Top][All Lists]
Advanced

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

RE: [avr-gcc-list] very simple program


From: niklo
Subject: RE: [avr-gcc-list] very simple program
Date: Sun, 2 Oct 2005 20:11:24 +0200

Only if you don't want to change the rest of the port!

/niklo

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
Parthasaradhi Nayani
Sent: den 2 oktober 2005 19:35
To: Timothy Smith; avr-gcc
Subject: Re: [avr-gcc-list] very simple program

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


_______________________________________________
AVR-GCC-list mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list





reply via email to

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