Defines | |||
![]() | ![]() | #define | __persistent |
![]() | ![]() | Define storage persistent across different runs of a program. More... |
#define __persistent () |
Define storage persistent across different runs of a program.
This macro is used to mark initialized data (doesn't apply to uninitialized data) as `persistent' data. This data will be saved across different runs of the program.
Usage: You should insert __persistent between the variable name and equal sign followed by value, e.g:
static int counter __persistent = 0; static char data[] __persistent = { 0x32, 0x36, ... };