Re: [avr-gcc-list] Programming ATMega2560

2014-11-26 Thread Andreas Höschler
> Hi Jan, > What is your avr-gcc version? -bash-3.2$ avr-gcc -v Using built-in specs. Target: avr Configured with: ../gcc-4.3.3/configure --target=avr --prefix=/usr/local/avr --enable-languages=c --disable-libssp --disable-shared --disable-libada --disable-libssp --disable-nls --with-dwarf2 --w

Re: [avr-gcc-list] Programming ATMega2560

2014-11-26 Thread Andreas Höschler
Hi Tom, > #define F_CPU 1600UL /* 16 MHz CPU clock */ > #include > #include > #define OUTPUTPORT PORTB > #define OUTPUTPIN PB7 > int main (void) { > DDRB = 0xff; // all outputs > while (1) /* loop forever */ >{ > if ((PORTB & _BV(PB7)) > 0) PORT

Re: [avr-gcc-list] Programming ATMega2560

2014-11-26 Thread Jan Waclawek
What is your avr-gcc version? Jan ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Re: [avr-gcc-list] Programming ATMega2560

2014-11-26 Thread Thomas D. Dean
On 11/26/14 14:25, Andreas Höschler wrote: #define F_CPU 1600UL /* 16 MHz CPU clock */ #include #include #define OUTPUTPORT PORTB #define OUTPUTPIN PB7 int main (void) { DDRB = 0xff; // all outputs while (1) /* loop forever */ { if ((PORTB

Re: [avr-gcc-list] Programming ATMega2560

2014-11-26 Thread Andreas Höschler
Hi Tom, >> #define F_CPU 1600UL /* 16 MHz CPU clock */ >> #include >> #define OUTPUTPORT PORTB >> #define OUTPUTPIN PB7 >> int main (void) >> { >>DDRB = 0xff; // all outputs >>while (1) /* loop forever */ >> { >> if ((PORTB & _BV(PB7)) > 0)

Re: [avr-gcc-list] Programming ATMega2560

2014-11-26 Thread Thomas D. Dean
On 11/26/14 11:46, Andreas Höschler wrote: #define F_CPU 1600UL /* 16 MHz CPU clock */ #include #define OUTPUTPORT PORTB #define OUTPUTPIN PB7 int main (void) { DDRB = 0xff; // all outputs while (1) /* loop forever */ { if ((PORTB & _BV

[avr-gcc-list] Programming ATMega2560

2014-11-26 Thread Andreas Höschler
HI all, I have programmed ATMega8 in the past (worked great). I have purchased a ATMega2560 board now and am trying to get my avr gcc tool chain to accept this chip: Makefile == # AVR-GCC Makefile PROJECT=toggle_led SOURCES=main.c HEADERS= CC=avr-gcc OBJCOPY=avr-objcopy MMCU=at

Re: [avr-gcc-list] hard to find the correct include files at compile time

2014-11-26 Thread Joerg Wunsch
Joern Rennecke wrote: > This seems to indicate that you are using an older toolchain, or at > least the gcc component you use is older. But that's not his problem, anyway. ;) -- cheers, Joerg .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ Never trust an operating

Re: [avr-gcc-list] hard to find the correct include files at compile time

2014-11-26 Thread Joern Rennecke
On 25 November 2014 at 13:57, Ivaylo Ganchev wrote: > As a side-note the pgmspace.h includes also . I am not sure > whether the correct one is charged. To be sure I also make an explicit > statement (#include "/usr/lib/gcc/avr/4.7.2/include/stddef.h"). What is This seems to indicate that you are