CrasyCat wrote:
Hello
I am missing some context information in order to answer properly.
But as far as I can tell IO_vResetPin is a function you are invoking,
I would first try to add a semicolon at the end of IO_vResetPin(PTED_PTED0).
If that does not help generate the preprocessor listing for the source file and inspect the code at the location where the macro is expanded.
This might give you a clue.
CrasyCat
CrasyCat wrote:
Hello
I am missing some context information in order to answer properly.
But as far as I can tell IO_vResetPin is a function you are invoking,
I would first try to add a semicolon at the end of IO_vResetPin(PTED_PTED0).
If that does not help generate the preprocessor listing for the source file and inspect the code at the location where the macro is expanded.
This might give you a clue.
CrasyCat
Thanks very much, CrasyCat.
I've worked it out. In fact, IO_vResetPin() is also a macro decfinition.The codes are as follows.
#define IO_vResetPin(PinName) PinName = 0
I used PTED_PTED0 = 0 instead of IO_vResetPin(PTED_PTED0). And as you said, I added a semicolon at the end of
PTED_PTED0 = 0. It was ok.
I wonder if codewarrior doesn't support macro definition nesting.
Thanks very much for your replies.