[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] set_sleep_mode and tiny2313/26

From: akibow
Subject: Re: [avr-gcc-list] set_sleep_mode and tiny2313/26
Date: Tue, 29 Mar 2005 07:40:04 +0900

Is "Bug-tracker" here?
I'll register it.

I found a problem about "Busy-wait delay loops".
Document says to define F_CPU ,
 write "#define F_CPU 1000000UL  // 1 MHz"
But it makes error on compiling when using makefiles that is 
produced by Mfile.
By default, makefile has following definition.
F_CPU = 10000000
So if #define F_CPU is placed on our source file, double-definition 
error may occur. It should be written in documentation.

from E. Weddington <address@hidden>
>akibow wrote:
>>Hello. I'm using avrgcc and AVR-LibC.Thanks a lot.
>>Now I am trying to make Japanese version of AVR-LibC document.
>>We found error? about <avr/sleep.h>. please check it.
>>_SLEEP_TYPE of tiny2313 and tiny26 are 2,becouse these have SM0,SM1 but not 
>>have SM2.
>>So,set_sleep_mode() setting for _SLEEP_TYPE=2 is defined like below:
>>SLEEP_MODE_IDLE ===> SM1:SM0 = 00
>>SLEEP_MODE_ADC  ===> SM1:SM0 = 01
>>But, by datasheet, tiny26 and tiny2313 do not have PowerSave mode.
>>Instead,SM1:SM0=11 is for STANDBY mode.
>Thanks for catching this. Could you fill out a bug tracker on the 
>avr-libc project on Savannah? That way, this issue won't get lost.
>AVR-GCC-list mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]