/* Initialize GPIO config structure. Fill each pstcGpioInit with default value.  */
int32_t GPIO_StructInit(stc_gpio_init_t *pstcGpioInit)
/* Initialize GPIO config structure. Fill each pstcGpioInit with default value.  */
int32_t GPIO_StructInit(stc_gpio_init_t *pstcGpioInit)
{
    int32_t i32Ret = LL_OK;
    if (NULL == pstcGpioInit) {
        i32Ret = LL_ERR_INVD_PARAM;
    } else {
        pstcGpioInit->u16PinState       = PIN_STAT_RST;
        pstcGpioInit->u16PinDir         = PIN_DIR_IN;
        pstcGpioInit->u16PinDrv         = PIN_LOW_DRV;
        pstcGpioInit->u16PinAttr        = PIN_ATTR_DIGITAL;
        pstcGpioInit->u16Latch          = PIN_LATCH_OFF;
        pstcGpioInit->u16PullUp         = PIN_PU_OFF;
        pstcGpioInit->u16Invert         = PIN_INVT_OFF;
        pstcGpioInit->u16ExtInt         = PIN_EXTINT_OFF;
        pstcGpioInit->u16PinOutputType  = PIN_OUT_TYPE_CMOS;
    }
    return i32Ret;
}