I wrote a function to test functions. I want to be flexible, that's the reason for the function pointer.
My code is working, but is there a possibility to avoid the warning below? I thought about a cast.
So I tried to set a (UINT32 *) in front of the &tickGet, but it isn't working.
Can you help me?
ULONG tickGet (void);
void WCET_Measurement(UINT32 (*Function)(void)){}
WCET_Measurement(&tickGet);
Compiler Warning
warning: passing arg 1 of `WCET_Measurement' from incompatible pointer type