/*
 * Copyright 2020-2026 Yuntu Microelectronics Co., Ltd.
 * All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 * 
 * @file Lin_PBcfg.c
 * @brief 
 * 
 */


#ifdef __cplusplus
extern "C"{
#endif

/*==================================================================================================
*                                        INCLUDE FILES
==================================================================================================*/
#include "Lin.h"
#if (LIN_IP_UART == STD_ON)
#include "Lin_Lld_Uart.h"
#endif

/*==================================================================================================
*                              SOURCE FILE VERSION INFORMATION
==================================================================================================*/
#define LIN_VENDOR_ID_PBCFG_C                      (180)
#define LIN_AR_RELEASE_MAJOR_VERSION_PBCFG_C       (4)
#define LIN_AR_RELEASE_MINOR_VERSION_PBCFG_C       (4)
#define LIN_AR_RELEASE_REVISION_VERSION_PBCFG_C    (0)
#define LIN_SW_MAJOR_VERSION_PBCFG_C               (2)
#define LIN_SW_MINOR_VERSION_PBCFG_C               (3)
#define LIN_SW_PATCH_VERSION_PBCFG_C               (0)

/*==================================================================================================
*                                       CONSTANTS
==================================================================================================*/

#define LIN_START_SEC_CODE
#include "Lin_MemMap.h"
LIN_FUNC void Gpt_Notification_Ptmr(void){Lin_Lld_Uart_TimerTickCbk();}
#define LIN_STOP_SEC_CODE
#include "Lin_MemMap.h"


#define LIN_START_SEC_CONFIG_DATA_UNSPECIFIED
#include "Lin_MemMap.h"



LIN_CONST const uint8 LinInstMap[LIN_CONST_THEORETICAL_MAX_CHANNEL_NUM] = { 0U, 255U, 255U, 255U, 255U, 255U, 255U, 255U, 255U, 255U, 255U, 255U, 255U, 255U, 255U, 255U,  };

LIN_CONST const Lin_ChConfigType LinChConfig[1] =
{
    {
        .LinChannelId = 0U,
        .LinHwChannel = UART_IP_0,
        .LinNodeMode = LIN_SLAVE_MODE,
        .LinChWakeSupport = TRUE,
        .LinChEcuMWakeupSource = EcuMConf_EcuMWakeupSource_EcuMWakeupSource_0,
        .LinChBreakLength = MASTER_13_BIT_BREAK_LENGTH,
        .LinDetectBreakLength = SLAVE_11_BIT_BREAK_LENGTH,
        .LinClockRef = 20000000U,
        .ResponseTimeoutValue = 14U,
        .HeaderTimeoutValue = 44U,
        .LinBaudrateRegValue = 19200U,
        .LinFilterEnable = FALSE,
        .LinFilterNum = 0U,
        .LinFilterIdPtr = NULL_PTR
    },
};

#if (LIN_DEM_DISABLE == STD_OFF)
#endif /* (LIN_DEM_DISABLE == STD_OFF) */

LIN_CONST const Lin_ConfigType Lin_Config =
{
    .LinChCount = 1,
    .LinChConfigPtrs = &LinChConfig[0],
    .LinInstMapPtr = &LinInstMap[0],
#if (LIN_DEM_DISABLE == STD_OFF)
    .LinDemConfigPtr = NULL_PTR,
#endif /* (LIN_DEM_DISABLE == STD_OFF) */
#if (LIN_FRAME_TIMEOUT_DISABLE == STD_OFF)  /* timeout update */
#if (LIN_IP_UART == STD_ON)
    .LinTimerSourceId = 0U,
    .LinTimerClockRef = 10000000U,
#endif
#endif
};

#define LIN_STOP_SEC_CONFIG_DATA_UNSPECIFIED
#include "Lin_MemMap.h"/*memory map finish*/

#ifdef __cplusplus
}
#endif

/** @} */

