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.
Every peripheral must be enabled in nrf_drv_config.h before it can be used. You can then track which peripherals are being used by checking this config file.
Every peripheral must be enabled in nrf_drv_config.h before it can be used. You can then track which peripherals are being used by checking this config file.