/* Set a default value for the TMR2 output compare configuration structure.  */
int32_t TMR2_PWM_StructInit(stc_tmr2_pwm_init_t *pstPwmInit)
/* Set a default value for the TMR2 output compare configuration structure.  */
int32_t TMR2_PWM_StructInit(stc_tmr2_pwm_init_t *pstPwmInit)
{
    int32_t i32Ret = LL_ERR_INVD_PARAM;
    if (pstPwmInit != NULL) {
        pstPwmInit->u32StartPolarity = TMR2_PWM_HIGH;
        pstPwmInit->u32StopPolarity  = TMR2_PWM_LOW;
        pstPwmInit->u32CompareMatchPolarity = TMR2_PWM_INVT;
        i32Ret = LL_OK;
    }
    return i32Ret;
}