[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Problem with avr-libc
From: |
Christoph Plattner |
Subject: |
Re: [avr-gcc-list] Problem with avr-libc |
Date: |
Sun, 07 Oct 2001 13:14:15 +0200 |
A very simple typo !!!
#define LED 7
*not*
#define LED 7;
The ';' is wrong !!!!
With friendly regards
Christoph P.
Torsten Hahn wrote:
>
> Hi,
>
> if i trie to compile a pice of code like this
>
> --
> #include <io-avr.h>
> #include <interrupt.h>
> #include <sig-avr.h>
>
> #define LED 7;
>
> SIGNAL (SIG_INTERRUPT0)
> {
> loop_until_bit_is_set(PORTB,LED);
> }
> --
>
> i get always an error Message meaning:
>
> avr-gcc -O3 -I/usr/local/avr/include -mmcu=at90s8535 ledon.c -o ledon.o
> ledon.c: In function `_interrupt0_':
> ledon.c:24: parse error before ';' token
>
> This happens also, if i try any other Macro defined in iomacros.h from the
> avr-libc distribution.
>
> Any Ideas whats going wrong ?
>
> Torsten.
> --
> Torsten Hahn / Chemnitzer Str. 4 / 09599 Freiberg / Germany
> mail: address@hidden
> phone: (+49) 177 2181338
> pgp key avaiable at: http://math-www.uni-paderborn.de/pgpnet/wwwkeys.html
>
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://avr.jpk.co.nz/mailman/listinfo/avr-gcc-list
--
-------------------------------------------------------
private: address@hidden
company: address@hidden