This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

APP_PWM_INSTANCE error

Hi,all.i want to use pwm in my code.And i init pwm with APP_PWM_INSTANCE(PWM1,1),then i get an error:identifier "TIMER1_INSTANCE_INDEX" is undefined.Can someone help me ?

  • Using GCC+Eclipse; the error Symbol 'TIMER1_INSTANCE_INDEX' could not be resolved won't go away even if the TIMER1 is set to 1 in nrf_rv_config.h and included the header, and build successful. What I have done then to get rid of this red bug is to define #define TIMER1_INSTANCE_INDEX 1 in main.c!!!! I'm not sure if this a user problem or of Eclipse or the CDT itself???

Related