/*================================================================================================== * Project : RTD AUTOSAR 4.4 * Platform : CORTEXM * Peripheral : LPUART * Dependencies : none * * Autosar Version : 4.4.0 * Autosar Revision : ASR_REL_4_4_REV_0000 * Autosar Conf.Variant : * SW Version : 0.9.0 * Build Version : S32K3_RTD_0_9_0__ASR_REL_4_4_REV_0000_20210326 * * (c) Copyright 2020 - 2021 NXP Semiconductors * All Rights Reserved. * * NXP Confidential. This software is owned or controlled by NXP and may only be * used strictly in accordance with the applicable license terms. By expressly * accepting such terms or by downloading, installing, activating and/or otherwise * using the software, you are agreeing that you have read, and that you agree to * comply with and are bound by, such license terms. If you do not agree to be * bound by the applicable license terms, then you may not retain, install, * activate or otherwise use the software. ==================================================================================================*/ /** * @file Lpuart_Lin_Ip_PBcfg.c * @implements Lpuart_Lin_Ip_PBcfg.c_Artifact * * @addtogroup LPUART_LIN * @{ */ #ifdef __cplusplus extern "C"{ #endif /*================================================================================================== * INCLUDE FILES * 1) system and project includes * 2) needed interfaces from external units * 3) internal and external interfaces from this unit ==================================================================================================*/ #include "Lpuart_Lin_Ip_Cfg.h" /*================================================================================================== * SOURCE FILE VERSION INFORMATION ==================================================================================================*/ #define LPUART_LIN_IP_BOARD_INITPERIPHERALS_PBCFG_VENDOR_ID_C 43 #define LPUART_LIN_IP_BOARD_INITPERIPHERALS_PBCFG_AR_RELEASE_MAJOR_VERSION_C 4 #define LPUART_LIN_IP_BOARD_INITPERIPHERALS_PBCFG_AR_RELEASE_MINOR_VERSION_C 4 #define LPUART_LIN_IP_BOARD_INITPERIPHERALS_PBCFG_AR_RELEASE_REVISION_VERSION_C 0 #define LPUART_LIN_IP_BOARD_INITPERIPHERALS_PBCFG_SW_MAJOR_VERSION_C 0 #define LPUART_LIN_IP_BOARD_INITPERIPHERALS_PBCFG_SW_MINOR_VERSION_C 9 #define LPUART_LIN_IP_BOARD_INITPERIPHERALS_PBCFG_SW_PATCH_VERSION_C 0 /*================================================================================================== * FILE VERSION CHECKS ==================================================================================================*/ /* Checks against Lpuart_Lin_Ip_Cfg.h */ #if (LPUART_LIN_IP_BOARD_INITPERIPHERALS_PBCFG_VENDOR_ID_C != LPUART_LIN_IP_CFG_VENDOR_ID) #error "Lpuart_Lin_Ip_BOARD_INITPERIPHERALS_PBcfg.c and Lpuart_Lin_Ip_Cfg.h have different vendor ids" #endif /* Check if current file and Lpuart_Lin_Ip_Cfg header file are of the same Autosar version */ #if ((LPUART_LIN_IP_BOARD_INITPERIPHERALS_PBCFG_AR_RELEASE_MAJOR_VERSION_C != LPUART_LIN_IP_CFG_AR_RELEASE_MAJOR_VERSION) || \ (LPUART_LIN_IP_BOARD_INITPERIPHERALS_PBCFG_AR_RELEASE_MINOR_VERSION_C != LPUART_LIN_IP_CFG_AR_RELEASE_MINOR_VERSION) || \ (LPUART_LIN_IP_BOARD_INITPERIPHERALS_PBCFG_AR_RELEASE_REVISION_VERSION_C != LPUART_LIN_IP_CFG_AR_RELEASE_REVISION_VERSION)) #error "AutoSar Version Numbers of Lpuart_Lin_Ip_BOARD_INITPERIPHERALS_PBcfg.c and Lpuart_Lin_Ip_Cfg.h are different" #endif /* Check if current file and Lpuart_Lin_Ip_Cfg header file are of the same Software version */ #if ((LPUART_LIN_IP_BOARD_INITPERIPHERALS_PBCFG_SW_MAJOR_VERSION_C != LPUART_LIN_IP_CFG_SW_MAJOR_VERSION) || \ (LPUART_LIN_IP_BOARD_INITPERIPHERALS_PBCFG_SW_MINOR_VERSION_C != LPUART_LIN_IP_CFG_SW_MINOR_VERSION) || \ (LPUART_LIN_IP_BOARD_INITPERIPHERALS_PBCFG_SW_PATCH_VERSION_C != LPUART_LIN_IP_CFG_SW_PATCH_VERSION)) #error "Software Version Numbers of Lpuart_Lin_Ip_BOARD_INITPERIPHERALS_PBcfg.c and Lpuart_Lin_Ip_Cfg.h are different" #endif /*================================================================================================== * LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS) ==================================================================================================*/ /*================================================================================================== * LOCAL MACROS ==================================================================================================*/ /*================================================================================================== * GLOBAL FUNCTIONS ==================================================================================================*/ extern void Lin2callback(uint32 instance, Lpuart_Lin_Ip_StateStructType *lpuartStateStruct); extern void Lin1callback(uint32 instance, Lpuart_Lin_Ip_StateStructType *lpuartStateStruct); /*================================================================================================== * BUFFER DECLARATIONS ==================================================================================================*/ /*================================================================================================== * STATE STRUCTURE DECLARATIONS ==================================================================================================*/ /*================================================================================================== * LOCAL CONSTANTS ==================================================================================================*/ /*================================================================================================== * LOCAL VARIABLES ==================================================================================================*/ /*================================================================================================== * GLOBAL VARIABLES ==================================================================================================*/ #define LIN_START_SEC_VAR_NO_INIT_UNSPECIFIED #include "Lin_MemMap.h" extern Lpuart_Lin_Ip_StateStructType Lpuart_Lin_Ip_axStateStructure[LPUART_LIN_IP_NUMBER_OF_INSTANCES]; #define LIN_STOP_SEC_VAR_NO_INIT_UNSPECIFIED #include "Lin_MemMap.h" #define LIN_START_SEC_CONFIG_DATA_UNSPECIFIED #include "Lin_MemMap.h" /** * @brief Hardware configuration for Lin Hardware Instance LPUART_IP_1 - Configuration: * * */ const Lpuart_Lin_Ip_UserConfigType Lpuart_Lin_Ip_pHwConfigPB_0_BOARD_INITPERIPHERALS = { 0x208, /*!< Baudrate divisor */ 16U, (boolean)LPUART_LIN_IP_MASTER, /*!< Master node */ 1U, /*!< Break character length is transmitted */ 1U, /*!< Length of break character can be detected */ (boolean)FALSE, /*!< Autobaudrate feature */ (Lpuart_Lin_Ip_GetTimerGetTimeIntervalType)NULL, /*!< Callback function to get time interval in nanoseconds */ NULL_PTR, /*!< List of PIDs use classic checksum */ 255U, /*!< Number of PIDs use classic checksum */ 0xF8U, /*!< Assign wakeup signal to satisfy LIN Specifications*/ (Lpuart_Lin_Ip_CallbackType)Lin1callback, /*!< Callback function to invoke after receiving a byte or transmitting a byte. */ &Lpuart_Lin_Ip_axStateStructure[0U], /*!< Runtime state structure referrence */ 4583U, /*!< Microsencond when header timeout */ 1458U, /*!< Microsencond when reponse timeout */ 80000000U /*!< Channel clock */ }; /** * @brief Hardware configuration for Lin Hardware Instance LPUART_IP_9 - Configuration: * * */ const Lpuart_Lin_Ip_UserConfigType Lpuart_Lin_Ip_pHwConfigPB_1_BOARD_INITPERIPHERALS = { 0x208, /*!< Baudrate divisor */ 16U, (boolean)LPUART_LIN_IP_MASTER, /*!< Master node */ 1U, /*!< Break character length is transmitted */ 1U, /*!< Length of break character can be detected */ (boolean)FALSE, /*!< Autobaudrate feature */ (Lpuart_Lin_Ip_GetTimerGetTimeIntervalType)NULL, /*!< Callback function to get time interval in nanoseconds */ NULL_PTR, /*!< List of PIDs use classic checksum */ 255U, /*!< Number of PIDs use classic checksum */ 0xF8U, /*!< Assign wakeup signal to satisfy LIN Specifications*/ (Lpuart_Lin_Ip_CallbackType)Lin2callback, /*!< Callback function to invoke after receiving a byte or transmitting a byte. */ &Lpuart_Lin_Ip_axStateStructure[1U], /*!< Runtime state structure referrence */ 4583U, /*!< Microsencond when header timeout */ 1458U, /*!< Microsencond when reponse timeout */ 80000000U /*!< Channel clock */ }; #define LIN_STOP_SEC_CONFIG_DATA_UNSPECIFIED #include "Lin_MemMap.h" /*================================================================================================== * LOCAL FUNCTION PROTOTYPES ==================================================================================================*/ /*================================================================================================== * LOCAL FUNCTIONS ==================================================================================================*/ /*================================================================================================== * GLOBAL FUNCTIONS ==================================================================================================*/ #ifdef __cplusplus } #endif /** @} */