[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] [Bug #2633] syntax error while setting up sleep mode
From: |
Len |
Subject: |
Re: [avr-libc-dev] [Bug #2633] syntax error while setting up sleep mode functionality |
Date: |
Fri, 21 Feb 2003 15:21:08 -0500 |
Interesting, I can reproduce the bug here with your code ...
What's the difference between our development environments? I'm running Win2K
updated to SP3 here.
-Len
>
>
> :) Summary: syntax error while setting up sleep mode functionality
> :)
> :) Original Submission: When using WinAVR release 20030115, this code:
> :)
> :) set_sleep_mode(SLEEP_MODE_IDLE);
> :)
> :) returns parse error when -mmcpu=atmega8, this code:
> :)
> :) set_sleep_mode(SLEEP_MODE_IDLE));
> :)
> :) does not (I have no idea how MCU-specific this error is, I haven't
> investigated further).
>
> I can't reproduce this with the following program:
>
>
> #include <avr/sleep.h>
>
> int main (void)
> {
> set_sleep_mode(SLEEP_MODE_IDLE);
>
> while (1);
>
> return 0;
> }
>
>
> Here's my build output:
>
> address@hidden:~/test$ make
> avr-gcc -g -O2 -Wall -mmcu=atmega8 -c -o test.o test.c
> avr-gcc -g -O2 -Wall -mmcu=atmega8 -Wl,-Map,test.map -o test test.o
> cp test test.elf
> avr-objdump -h -S -D --disassemble-zeroes test.elf > test.lst
> avr-objcopy -O ihex test.elf test.hex
> avr-objcopy -O binary test.elf test.bin
> avr-objcopy -O srec test.elf test.srec
>
>
> Can you send me you test app?
> Do you #include <avr/sleep.h> ?
>
>
> Ted Roth
>
- [avr-libc-dev] [Bug #2633] syntax error while setting up sleep mode functionality, nobody, 2003/02/21
- Re: [avr-libc-dev] [Bug #2633] syntax error while setting up sleep mode functionality, Theodore A. Roth, 2003/02/21
- Re: [avr-libc-dev] [Bug #2633] syntax error while setting up sleep mode functionality,
Len <=
- Re: [avr-libc-dev] [Bug #2633] syntax error while setting up sleep mode functionality, Theodore A. Roth, 2003/02/21
- Re: [avr-libc-dev] [Bug #2633] syntax error while setting up sleep mode functionality, Len, 2003/02/21
- Re: [avr-libc-dev] [Bug #2633] syntax error while setting up sleep mode functionality, Theodore A. Roth, 2003/02/21
- Re: [avr-libc-dev] [Bug #2633] syntax error while setting up sleep mode functionality, Len, 2003/02/24
- Re: [avr-libc-dev] [Bug #2633] syntax error while setting up sleep mode functionality, Joerg Wunsch, 2003/02/24
- Re: [avr-libc-dev] [Bug #2633] syntax error while setting up sleep mode functionality, Joerg Wunsch, 2003/02/21