/* Starts Pulse-Width Modulation signal output on a PWM pin */
int32_t hal_pwm_start(pwm_dev_t *pwm)
/* Starts Pulse-Width Modulation signal output on a PWM pin */
int32_t hal_pwm_start(pwm_dev_t *pwm)
{
	_HAL_PWM_PRIV_T *_cfg = (_HAL_PWM_PRIV_T *)pwm->priv;
	if (_cfg->start == 0) {
		if (hal_pwm_enable(_cfg->chan, &_cfg->pwm_cfg) == 0) {
			_cfg->start = 1;
		}
	}
	return 0;
}