avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Get pointer of progmem data


From: Ufficio Software
Subject: [avr-gcc-list] Get pointer of progmem data
Date: Mon, 22 Apr 2002 11:26:52 +0200

Hi,
 
Hi,ave placed a constant struct array in flash using PROGMEM directive.
Using PRG_RDB i can read init.
 
struct tmp
 {
 char b1;
 char c1;
 };
 
const struct tmp PROGMEM Keys[ ] =
 {
 { 0x01, 'a' },
 { 0x02, 'b' },
 { 0x04, 'c' },
 { 0x08, 'd' },
 };
 
How can i get the address of it ?
struct ps *p = &Keys[ 1 ];
 
Patrizio Zelotti
address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]