avr-libc-dev
[Top][All Lists]
Advanced

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

RE: [avr-libc-dev] [bug #30552] Missing definition ADCW


From: Weddington, Eric
Subject: RE: [avr-libc-dev] [bug #30552] Missing definition ADCW
Date: Wed, 22 Sep 2010 21:50:40 -0600

Hi Anitha,

You may, or may not, be aware of this, but this group has had a policy 
(unwritten) that the header files will match the XML device file that is 
shipped with AVR Studio.

So when fixing a definition value, be sure to check the corresponding XML 
device file in AVR Studio to make sure that they match.

Thanks,
Eric Weddington 

> -----Original Message-----
> From: 
> address@hidden 
> [mailto:address@hidden
> org] On Behalf Of Anitha Boyapati
> Sent: Wednesday, September 22, 2010 12:52 AM
> To: Frédéric Nadeau; Boyapati, Anitha; address@hidden
> Subject: [avr-libc-dev] [bug #30552] Missing definition ADCW
> 
> 
> Follow-up Comment #2, bug #30552 (project avr-libc):
> 
> 
> For device ATTiny43U: 
> the patch given for bug30569 defines ADC and ADCW to 0x04 
> (using _SFR_MEM16
> macro) while datasheet clearly says that address of ADCL is 
> 0x24 and that of
> ADCH is 0x25.
> 
> The  following diff uses _SFR_IO16 instead of _SFR_MEM16. 
> _SFR_IO16 adds an
> offset of 0x20. I think this is appropriate.
> 
> Index: iotn43u.h
> ===================================================================
> --- iotn43u.h   (revision 2184)
> +++ iotn43u.h   (working copy)
> @@ -74,7 +74,10 @@
>  #define ADLAR  4
>  #define ACME   6
>  
> +#ifndef _ASSEMBLER_
>  #define ADC _SFR_IO16(0x04)
> +#endif
> +#define ADCW _SFR_IO16(0x04)
>  
>  #define ADCL _SFR_IO8(0x04)
> 
> 
>     _______________________________________________________
> 
> Reply to this item at:
> 
>   <http://savannah.nongnu.org/bugs/?30552>
> 
> _______________________________________________
>   Message sent via/by Savannah
>   http://savannah.nongnu.org/
> 
> 
> _______________________________________________
> AVR-libc-dev mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/avr-libc-dev
> 



reply via email to

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