Mega8 const array

Dukai Zoltan dukai.zoltan at gmail.com
Mon Apr 24 23:08:35 CEST 2006


Mi a cel a FLash-ben tarolt adatokkal?

Ha osszehasonlitani kell csak akkor
if(!(strncmp_P( &receive[0], PSTR("\r\n+CSMS: 1,1,1"),14)))

ha tarolni kell sokat, akkor en igy csinaltam:
static char __attribute__ ((progmem)) szinusz[]={.....};
majd hivatkozol ra mint
	OCR1A=PRG_RDB(&szinusz[i]);

avagy Am I missing a point here?

Szima Gábor irta:
> On Mon, 24 Apr 2006, Szima Gábor wrote:
> 
>> const uint8_t buff[] __attribute__((__section__(".progmem.data"))) =
> 
> Ezzel csak egy apro pici problema van; gagyi adat kerul be a memoriaba...
> 
> 
> 
>  								-Sygma




More information about the Elektro mailing list