4
You can put data in program memory,
5
but reading this data allowed only through macro `PRG_RDB'
10
prog_char b[500] = {1,2,3,4,5}; /* This 8bit array in program memory. */
12
prog_int i[10] = {1,2,3,4,5}; /* This 16bit array in program memory. */
14
prog_long l[] = {1,2,3,4,5}; /* This 32bit array in program memory. */
16
prog_long_long ll[] = {1,2,3,4,5}; /* This 64bit array in program memory. */
18
char a[] __attribute__ ((progmem)) = "This string in program memory too";
23
char *p = PSTR ("This string in program memory");
25
printf (PSTR ("This string in program memory")); /* special version of
28
char c = PRG_RDB (p+5); /* c = 's' */
29
char aa = PRG_RDB (&a[10]); /* aa = 'g' */
30
char bb = PRG_RDB (&b[3]); /* bb = 4 */