[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] How define a function pointer array in program memory
From: |
Artur Lipowski |
Subject: |
Re: [avr-gcc-list] How define a function pointer array in program memory? |
Date: |
Mon, 23 Feb 2004 09:41:08 +0100 |
User-agent: |
Mozilla Thunderbird 0.5+ (Windows/20040222) |
Try this:
typedef void (*FPtr)(void);
FPtr Key_Protab[] = { keypro1, keypro2, keypro3 };
and call:
Key_Protab[functionID]();
BTW> Your question has nothing in common to AVR-GCC, answer can be found
reading any book about a C language.
Regards,
--
Artur Lipowski
_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list