[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: |
Mon, 24 Feb 2003 01:14:46 -0500 |
Thank you very much! I'll pass the info on to Eric W. also, if he's not aware
already.
(thanks to Joerg, also)
-Len
> Ok, I can duplicate it with the sleep.h file you sent me.
>
> The you are using sleep.h version 1.4, the latest cvs is 1.5.
>
> You can download the latest version here:
>
> http://savannah.nongnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/include/avr/sleep
> .h
>
> FYI: Here's what is wrong with the file you have:
>
> --- sleep.h.orig 2003-02-21 14:05:04.000000000 -0800
> +++ sleep.h 2003-02-21 14:05:42.000000000 -0800
> @@ -94,7 +94,7 @@
> #if defined(DOXYGEN)
> extern void set_sleep_mode (uint8_t mode);
> #else
> -#define set_sleep_mode(mode) (MCUCR = ((MCUCR & ~SLEEP_MODE_MASK) | (mode))
> +#define set_sleep_mode(mode) (MCUCR = ((MCUCR & ~SLEEP_MODE_MASK) |
> (mode)))
> #endif
>
> /** \ingroup avr_sleep
>
>
> There was a ')' missing in the set_sleep_mode macro. I fixed this in
> 1.5.
>
> I'm going to close this bug out.
>
> Ted Roth
>