Hi I'm using IAR Compiler and need to generate some PWM outputs. I tried to use the example code from the pwm_library. But the compiler is generating an Error on the macro definition, I really don't know why, because I think all include files are added to the project. Did somebody knows what can be the problem? I need some predefine in the compiler settings but I don't know which one...
APP_PWM_INSTANCE(PWM1,1); // Create the instance "PWM1" using TIMER1.
The Error is: Warning[Pe1665]: concatenation with "INSTANCE_INDEX" in macro "CONCAT_3" does not create a valid token ... Error[Pe253]: expected a ","
Warning[Pe1665]: concatenation with "CC_NUM" in macro "CONCAT_3" does not create a valid token ...\Source\drv\drv_pwm.c 57
Thanks a lot