<?xml version="1.0" encoding="utf-8" standalone="no"?>
<IP xmlns="http://mcd.rou.st.com/modules.php?name=mcu" DBVersion="V4.0" Name="IWDG" Version="STM32Cube_FW_G0_V0.4.0" IncludeFile="stm32g0xx_ll_iwdg.h"
    xmlns:ns0="http://www.w3.org/2001/XMLSchema-instance" ns0:schemaLocation="http://mcd.rou.st.com/modules.php?name=mcu ../../../../../../../../doc/V4/Development/Specifications/db/IP_Configs.xsd">

    <RefConfig Name="IWDG_Init">
        <CallLibMethod Name="LL_IWDG_Enable">
           <MethodArg Name="IWDGx" ParameterName="Instance"/>
       </CallLibMethod>
       <CallLibMethod Name="LL_IWDG_EnableWriteAccess">
           <MethodArg Name="IWDGx" ParameterName="Instance"/>
       </CallLibMethod>
       <CallLibMethod Name="LL_IWDG_SetPrescaler">
           <MethodArg Name="IWDGx" ParameterName="Instance"/>
       </CallLibMethod>
       <CallLibMethod Name="LL_IWDG_SetReloadCounter">
           <MethodArg Name="IWDGx" ParameterName="Instance"/>
           <MethodArg Name="Counter" ParameterName="Reload"/>
       </CallLibMethod>
       <CallLibMethod Name="" Type="HardCode">
           <HardCode Text="#twhile (LL_IWDG_IsReady(IWDG) != 1)#n#t{#n#t}#n"/>
       </CallLibMethod>
       <!-- Ticket 85919 : BEGIN -->
       <IFCondition Expression="Window = 4095">
        <CallLibMethod Name="LL_IWDG_ReloadCounter">
               <MethodArg Name="IWDGx" ParameterName="Instance"/>
        </CallLibMethod>   
        <Else>
            <CallLibMethod Name="LL_IWDG_SetWindow">
                <MethodArg Name="IWDGx" ParameterName="Instance"/>
            </CallLibMethod>
        </Else>  
       </IFCondition>
        <!-- Ticket 85919 : END -->
    </RefConfig>

    <RefComponent Cclass="HAL" Cgroup="IWDG" Cversion="0.4.0">
        <File Category="header" Name="Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_iwdg.h"/>
    </RefComponent>

    <LibMethod Comment="" Name="LL_IWDG_Enable">
        <Argument AddressOf="false" GenericType="baseaddress" Name="IWDGx" TypeName="IWDG_TypeDef"/>
    </LibMethod>

    <LibMethod Comment="" Name="LL_IWDG_EnableWriteAccess">
        <Argument AddressOf="false" GenericType="baseaddress" Name="IWDGx" TypeName="IWDG_TypeDef"/>
    </LibMethod>

    <LibMethod Comment="" Name="LL_IWDG_SetPrescaler">
        <Argument AddressOf="false" GenericType="baseaddress" Name="IWDGx" TypeName="IWDG_TypeDef"/>
        <Argument AddressOf="false" GenericType="simple" Name="Prescaler"/>
    </LibMethod>

    <LibMethod Comment="" Name="LL_IWDG_SetWindow">
        <Argument AddressOf="false" GenericType="baseaddress" Name="IWDGx" TypeName="IWDG_TypeDef"/>
        <Argument AddressOf="false" GenericType="simple" Name="Window"/>
    </LibMethod>

    <LibMethod Comment="" Name="LL_IWDG_SetReloadCounter">
        <Argument AddressOf="false" GenericType="baseaddress" Name="IWDGx" TypeName="IWDG_TypeDef"/>
        <Argument AddressOf="false" GenericType="simple" Name="Counter"/>
    </LibMethod>

    <LibMethod Comment="" Name="LL_IWDG_ReloadCounter">
        <Argument AddressOf="false" GenericType="baseaddress" Name="IWDGx" TypeName="IWDG_TypeDef"/>
    </LibMethod>

 </IP>
