> -----Original Message-----
> From: 
> avr-gcc-list-bounces+eweddington=cso.atmel....@nongnu.org 
> [mailto:avr-gcc-list-bounces+eweddington=cso.atmel....@nongnu.
> org] On Behalf Of Michael
> Sent: Thursday, February 05, 2009 8:04 PM
> To: avr-gcc-list@nongnu.org
> Subject: RE: [avr-gcc-list] Strings: escape sequence to 
> insert arbitraryhexvalue ?
> 
> 
> #define PDATA(type, ...) (__extension__({static type 
> __nonamed[] PROGMEM
> = __VA_ARGS__ ; &__nonamed[0];})) 
> 
> You can specify any data you like in program memory, like PSTR() only
> with data. 
> 
> Eg. 
> 
> PDATA(char,{0xB0,0x30,0x30,0xB2,0xA1,0x83,0x00}) 
> 
> I'd like to see this included in <avr/pgmspace.h> 
> 

Then please work up a patch and submit to the avr-libc Patch Tracker. We always 
appreciate input from the community.

Eric


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to