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

multiple channels using same PWM instance

How can i initialise all four channel of pwm1 using pwm library. i need to initialise one channel for one purpose and other channel for different purpose. whenever i am trying to initialise it is showing error what shou;d be the correct way

what are the necessory changes in PWM library example

Parents
  • Are you getting the error "redefinition of pwm1 timer" when you are trying to compile the project?

    Make sure that you set TIMER1_ENABLED to 1 in the nrf_drv_config.h file.

    It should be located in project-folder, that is located in a folder called config . This is located in the same folder as the main.c file. In the config folder, select the folder corresponding to the project you are using.

Reply
  • Are you getting the error "redefinition of pwm1 timer" when you are trying to compile the project?

    Make sure that you set TIMER1_ENABLED to 1 in the nrf_drv_config.h file.

    It should be located in project-folder, that is located in a folder called config . This is located in the same folder as the main.c file. In the config folder, select the folder corresponding to the project you are using.

Children
No Data
Related