Таблица yказателей.

Пpивет All!

У меня в IAR WorkBench v2.27B сделано так:

__flash char Message_1[]={0,0,0,0,0}; __flash char Message_2[]={0,0,0,0,0}; __flash char Message_3[]={0,0,0,0}; __flash char __flash *MenuSoft[]={&Message_1[0],&Message_3[0],&Message_2[0]};

extern void CopyMessage(char __flash *Adr) { unsigned i; for (i=0; i<0x20; i++) Display[i]=*(Adr+i); }

extern void Change(char __flash* __flash *Adr, Number) { CopyMessage(Adr[Number]); }

void main(void) { Change(&MenuSoft[0],1); }

Igor

Reply to
Igor Ulanov
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.