I have some compilator errors due to pointer of function
void MyFunct(void)
{
.....
.....
.....
}
void main(void)
{
void (*MyPtrfunc) ();
MyPtrFunct = &MyFunct;
MyPtrFunct = MyPtrFunct - OffSetSW //Compilator error desciption : Error C1829 : + - incompatible Type
MyPtrFunct();
}
I already use this kind of declaration with another compilator, and i have no issue!!!
Do you have any about idea about my issue?
For you comprehension : Before run this command line, i rewrite Myfunction in spectific section in flash.
In fact, i try run a function place @ specific adress. This specific adress is Default adress (cofigured by emulator) - 0x1800.
Thanks
David