> 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
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
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
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
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)
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
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
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
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