/* Set a default value for TMR2 initialization structure.  */
int32_t TMR2_StructInit(stc_tmr2_init_t *pstcTmr2Init)
/* Set a default value for TMR2 initialization structure.  */
int32_t TMR2_StructInit(stc_tmr2_init_t *pstcTmr2Init)
{
    int32_t i32Ret = LL_ERR_INVD_PARAM;
    if (pstcTmr2Init != NULL) {
        pstcTmr2Init->u32ClockSrc = TMR2_CLK_PCLK1;
        pstcTmr2Init->u32ClockDiv = TMR2_CLK_DIV1;
        pstcTmr2Init->u32Func     = TMR2_FUNC_CMP;
        pstcTmr2Init->u32CompareValue = 0xFFFFUL;
        i32Ret = LL_OK;
    }
    return i32Ret;
}