uint32_t up_pwm_servo_get_rate_group(unsigned group) { /* only return the set of channels in the group which we own */ //printf("pwm servo get rate group: %d\n", group); return (io_timer_get_mode_channels(IOTimerChanMode_PWMOut) | io_timer_get_mode_channels(IOTimerChanMode_OneShot)) & io_timer_get_group(group); }
uint32_t up_pwm_servo_get_rate_group(unsigned group) { return io_timer_get_group(group); }