[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
typedef unsigned int uint; //Есть функциии: void main(void){#include <inavr.h>
typedef void (*pFun)(void);
void Func1(void){
__no_operation ();
__no_operation ();
}
void Func2(void){
__no_operation ();
__no_operation ();
}
//есть таблица:
__root __flash uint fFun[]={
/* здесь должен быть адрес функции Func1 (что писать?)*/
(uint)&Func1,
/* здесь должен быть адрес функции Func2 (что писать?)*/
(uint)&Func2
};
((pFun)fFun[0])(); // вызов функции
}
E-mail: info@telesys.ru