[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] troublesome compilation warning
From: |
lal |
Subject: |
Re: [avr-chat] troublesome compilation warning |
Date: |
Tue, 23 Aug 2005 09:29:18 +0200 |
address@hidden napisaĆ:
...
>#undef PSTR
>/* #define PSTR(s) ({static char __c[] PROGMEM = (s); __c;}) */
>#define PSTR(s) (__extension__({static char __c[] PROGMEM = (s); __c;}))
>
...
Thanks for answer.
I am a liitle afraid that it is a root cause of my "problem".
I do not use PSTR at all.
My code looks like:
int8_t SendFrameBodyStrP(pFrameMachineDesc pFrameDesc, prog_uint8_t * BodyData)
{
....
....
pgm_byte = pgm_read_byte(BodyData + i);
...
...
}
or:
static prog_uint8_t Font3x6[];
...
charbyte = pgm_read_byte(&Font3x6[(font_index * SMALL_FONT_WIDTH) + j]);
Regards,
--
Artur lipowski