defining eeprom values in the source-code

Post your requests and ideas on the future development of mikroPascal PRO for AVR.
Post Reply
Author
Message
TurboProgger
Posts: 66
Joined: 04 Oct 2008 18:39
Location: Germany

defining eeprom values in the source-code

#1 Post by TurboProgger » 20 Mar 2010 11:13

Hi mE-Team,

I am missing the possibility to enter EEPROM constants in the Source-Code
like in "C"-notation such as:
unsigned char TestRunning[] EEMEM = "Running...";
The keyword EEMEM instructs the compiler to put the string into the eep-file
by knowing it's offset by the name "TestRunning".
While program is running, these values can be accessed/manipulated via
EEPROM_Read() and EEPROM_Write().
This would be more easy than using the EEPROM-Editor.

My wish is, that you implement this feature in mikroPascal.
It could be realized in this way:

CONST
TestRunning : string[<length>] at EEMEM[<index>] = 'Running...';
// or for example for a word constant:
wConst : word at EEMEM[<index>] = 0x34fc;

Best regards

Post Reply

Return to “mikroPascal PRO for AVR Wish List”