/* This function is used to set duty radio.  */
void tls_pwm_duty_set(u8 channel, u8 duty)
/* This function is used to set duty radio.  */
void tls_pwm_duty_set(u8 channel, u8 duty)
{
    if(channel > (PWM_CHANNEL_MAX_NUM - 1))
		return;
	if (duty == 0)
	{
		tls_pwm_stop(channel);
	}
	else
	{
    	tls_pwm_duty_config(channel, duty);
		tls_pwm_start(channel);
	}
}