Topic : FUNC_PTR problem

Forum : 8051

Original Post
Post Information Post
July 18, 2010 - 5:19am
Guest

Hi, I'm going through a big project and I need to modify it but I'm having trouble getting it compiled. I know it is done in Raisonance Ride-environment with 8051 device. Please see the type of line which always gives syntax error:

typedef Void (FUNC_PTR * psysfunctimer_t) (UInt16 ms);

There are similar typedef -lines as this in many places in the code and they shouldn't be a mistake as the entire project comes from an existing working product microcontroller code. I'm getting a simple error like this:

*** ERROR C162 IN LINE 427 OF C:\.....tx.h : Syntax error near '*'

So obviously there is something wrong with that but I cant figure out what.... Does anyone know ?

Replies
Post Information Post
+1
0
-1
July 19, 2010 - 11:03am
Raisonance Support Team

Hi,

As we do not have the full code it is difficult to help.
Would the uppercase "Void" be the problem? Just try to replace it by "void" to see if it is ok.

If not, please post a full C file that shows the problem (no #includes please).

Regards,
Bruno