I'm in the process of integrating PWM into my project, which uses SDK 17.1.0.
I've added the below lines in my config file
#define NRFX_PWM_ENABLED 1 #define NRFX_PWM0_ENABLED 1
Additionally included the following headerfiles
nrfx.h
nrf_pwm.h
nrf_gpio.h
nrfx_log.h
nrf_egu.h
However , during compilation I'm getting a series of errors
'NRF_PWM1' undeclared here (not in a function); did you mean 'NRF_PWM0'?
'NRFX_PWM0_INST_IDX' undeclared here (not in a function); did you mean 'NRFX_PWM_INSTANCE'?
'NRFX_PWM1_INST_IDX' undeclared here (not in a function); did you mean 'NRFX_PWM_INSTANCE'?
'NRFX_PWM2_INST_IDX' undeclared here (not in a function); did you mean 'NRFX_PWM_INSTANCE'?
How do I fix this?
Could this issue possibly related to the SDK version I'm using?