[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] Strings: escape sequence to insert arbitraryhexvalue
From: |
Weddington, Eric |
Subject: |
RE: [avr-gcc-list] Strings: escape sequence to insert arbitraryhexvalue ? |
Date: |
Fri, 6 Feb 2009 07:48:31 -0700 |
> -----Original Message-----
> From:
> address@hidden
> [mailto:address@hidden
> org] On Behalf Of Michael
> Sent: Thursday, February 05, 2009 8:04 PM
> To: address@hidden
> 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
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary, (continued)
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary, Jim Brain, 2009/02/05
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary, Vincent Trouilliez, 2009/02/05
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, David Kelly, 2009/02/05
- RE: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, Dave Hansen, 2009/02/05
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, Joerg Wunsch, 2009/02/09
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, Vincent Trouilliez, 2009/02/05
- Re: [avr-gcc-list] Strings: escape sequence to insert arbitrary hex value ?, Daniel O'Connor, 2009/02/05
- Re: [avr-gcc-list] Strings: escape sequence to insert arbitrary hex value ?, Vincent Trouilliez, 2009/02/05
- Re: [avr-gcc-list] Strings: escape sequence to insert arbitrary hex value ?, Daniel O'Connor, 2009/02/05
RE: [avr-gcc-list] Strings: escape sequence to insert arbitrary hexvalue ?, Michael, 2009/02/06