[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] How define a function pointer array in program memory?
From: |
whiteman |
Subject: |
[avr-gcc-list] How define a function pointer array in program memory? |
Date: |
Mon, 23 Feb 2004 8:44:47 +0800 |
hi,all!
In the past,I used C51.I defined a function pointer array as below:
//declare
void keypro1();
void keypro2();
void keypro3();
//definition
code void(code *Key_Protab[])() =
{
keypro1,keypro2,keypro3
};
;
;
void main()
{
//call
(*Key_Protab[functionID])();
}
but for gcc,I was a newer. I don't know how to do?
Regards
whiteman
address@hidden
2004-02-23
_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list
- [avr-gcc-list] How define a function pointer array in program memory?,
whiteman <=