|
From: | Bob Paddock |
Subject: | Re: [avr-gcc-list] How can I "#define" a string in the Makefile? |
Date: | Fri, 31 Oct 2003 10:47:29 -0500 |
User-agent: | Opera7.21/Win32 M2 build 3218 |
Does this work?: static CONST char FLASH Firmware_Prj_str[] PROGMEM = "1.23";
I did not try that specifically, but doing this does work: === #ifndef FIRMWARE_REV_STR #define FIRMWARE_REV_STR "0.00" #endif static CONST char FLASH Firmware_Prj_str[] PROGMEM = FIRMWARE_REV_STR; === This code works ok with IAR's Project Manager as well, where it is defined by the project manager and not the code file it self. It really is a problem involving Make. FIRMWARE_REV_STR is getting defined to 'something' in Make, just not sure what.
[Prev in Thread] | Current Thread | [Next in Thread] |