[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: |
Joerg Wunsch |
Subject: |
Re: [avr-libc-dev] [Bug #2633] syntax error while setting up sleep mode functionality |
Date: |
Fri, 21 Feb 2003 22:50:29 +0100 |
User-agent: |
Mutt/1.2.5i |
As Theodore A. Roth wrote:
> :) What's the difference between our development environments? I'm running
> Win2K
> :) updated to SP3 here.
>
> linux (debian woody)
> current avr-libc from cvs
> avr-gcc (GCC) 3.3 20030113 (prerelease)
> GNU assembler 2.13.90 20030113
I think that's simply a version problem. He writes that he uses
WinAVR 20030115. You changed sleep.h on 20030113, this revision
probably didn't make it anymore into that version of WinAVR. If
i look at the diff for the latest file revision:
-#define set_sleep_mode(mode) (MCUCR = ((MCUCR & ~SLEEP_MODE_MASK) | (mode))
+# if defined (SMCR)
+# define set_sleep_mode(mode) (SMCR = ((SMCR & ~_SLEEP_MODE_MASK) | (mode)))
+# else
+# define set_sleep_mode(mode) (MCUCR = ((MCUCR & ~_SLEEP_MODE_MASK) | (mode)))
+# endif
...you see that the new line has one more closing paren than the
previous version.
So upgrading should help... (Eric's February WinAVR version is not yet
ready though.)
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/
- [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, 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/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 <=