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 ?
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 ?
i found it,in nrf_drv_config.h,enabled option.
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???
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???