[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] AVR gcc port
From: |
J.C. Wren |
Subject: |
Re: [avr-gcc-list] AVR gcc port |
Date: |
Sun, 18 Jan 2004 12:22:39 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20040110 Thunderbird/0.4 |
Assuming one has the structure below, how does one declare the text
in the structure to be placed in .text instead of .data? I've figured
out how to obtain .text placement for strings passed in functions, but
that (as expected, based on the macro definition) gives errors for text
in structures.
--jc
typedef struct commandList_s
{
PGM_P command;
void (*handler) (void);
PGM_P help;
}
commandList_t;
//
//
//
PROGMEM commandList_t commandList [] =
{
{ "?", cmd_help, "This help list" },
{ "version", cmd_version, "Display version" },
{ NULL, NULL, NULL }
};
Re: [avr-gcc-list] AVR gcc port, Joerg Wunsch, 2004/01/19