[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] compile problem
From: |
Marcus Overhagen |
Subject: |
[avr-gcc-list] compile problem |
Date: |
Sun, 27 May 2001 03:20:38 -0700 |
Why don't the bit_is_set() and loop_until_bit_is_set() compile? It was really
hard to find
the source of these "Assembler messages" errors.
C:\avrgcc\fahrtregler>avr-gcc -c -g -O1 -Wall -Wstrict-prototypes -Wa,-ahlms=mai
n.lst -mmcu=at90s2313 -I. main.c -o main.o --save-temps
main.s: Assembler messages:
main.s:134: Error: number must be less than 32
main.s:589: Error: number must be less than 32
if (bit_is_set(TCCR1B,ICES1)) {
clr r24
=> sbic 46,6
inc r24
loop_until_bit_is_set(TIFR,TOV0);
=> L_269: sbis 56,1
rjmp L_269
I'm now using
if (inp(TCCR1B) & (1 << ICES1)) {
and
while (0 == (inp(TIFR) & (1 << TOV0)))
;
- [avr-gcc-list] compile problem,
Marcus Overhagen <=