kit: RF51DK. sdk:nRF51_SDK_8.1.0 SoftDevice:s110_nrf51_8.0.0_softdevice.hex
I want to use 5 channels pwm to control 2 servos and 1 motor;each servo uses 2 channels pwm,so I must
use 5 channels pwm.
My way is below:
app_pwm_config_t pwm1_cfg = APP_PWM_DEFAULT_CONFIG_3CH(400, SERVO2_RIGHT_PIN,SERVO2_LEFT_PIN,SERVO1_LEFT_PIN);//2.5kHZ
app_pwm_config_t pwm2_cfg = APP_PWM_DEFAULT_CONFIG_2CH(2000L,MOTOR_PIN,SERVO1_RIGHT_PIN);//503 HZ
the APP_PWM_DEFAULT_CONFIG_3CH is changed from APP_PWM_DEFAULT_CONFIG_2CH, I find out that,i can not have 5th channel. the error code return ,when runs into nrf_drv_gpiote_out_init.
thanks for reply.