[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Pgmspace.h Use
From: |
Thomas . Souche |
Subject: |
[avr-gcc-list] Pgmspace.h Use |
Date: |
Tue, 9 Aug 2005 10:23:48 +0200 |
Hello,
for code portability reasons, I would like to avoid to call explicity the
function pgm_read_byte() like in the following example :
const prog_char array[7] = {0x10,0x20,0x30,0x40,0x50,0x60,0x70};
y = pgm_read_byte(&array[2]);
// I would like to to keep the syntax y = array[2]; without having the array
copied in the SRAM
Is there a way to do it ?
Thanks in advance,
Thomas
- [avr-gcc-list] Pgmspace.h Use,
Thomas . Souche <=