ADM/GW/generate/src/Lpuart_Uart_Ip_BOARD_InitPeripherals_PBcfg.c
2024-08-08 10:00:15 +09:00

309 lines
13 KiB
C

/*==================================================================================================
* Project : RTD AUTOSAR 4.4
* Platform : CORTEXM
* Peripheral : FLEXIO
* Dependencies :
*
* 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_Uart_Ip_PBcfg.c
* @defgroup lpuart_uart_ip Lpuart UART IPL
* @addtogroup lpuart_uart_ip Lpuart UART IPL
* @{
*/
#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_Uart_Ip_Types.h"
#include "Lpuart_Uart_Ip_Cfg.h"
#include "StandardTypes.h"
#if (LPUART_UART_IP_HAS_DMA_ENABLED == STD_ON)
#include "Dma_Ip.h"
#endif
/*==================================================================================================
* SOURCE FILE VERSION INFORMATION
==================================================================================================*/
#define LPUART_UART_IP_PBCFG_BOARD_INITPERIPHERALS_VENDOR_ID_C 43
#define LPUART_UART_IP_PBCFG_BOARD_INITPERIPHERALS_AR_RELEASE_MAJOR_VERSION_C 4
#define LPUART_UART_IP_PBCFG_BOARD_INITPERIPHERALS_AR_RELEASE_MINOR_VERSION_C 4
#define LPUART_UART_IP_PBCFG_BOARD_INITPERIPHERALS_AR_RELEASE_REVISION_VERSION_C 0
#define LPUART_UART_IP_PBCFG_BOARD_INITPERIPHERALS_SW_MAJOR_VERSION_C 0
#define LPUART_UART_IP_PBCFG_BOARD_INITPERIPHERALS_SW_MINOR_VERSION_C 9
#define LPUART_UART_IP_PBCFG_BOARD_INITPERIPHERALS_SW_PATCH_VERSION_C 0
/*==================================================================================================
FILE VERSION CHECKS
==================================================================================================*/
/* Checks against Lpuart_Uart_Ip_Types.h */
#if (LPUART_UART_IP_PBCFG_BOARD_INITPERIPHERALS_VENDOR_ID_C != LPUART_UART_IP_TYPES_VENDOR_ID)
#error "Lpuart_Uart_Ip_BOARD_InitPeripherals_PBcfg.c and Lpuart_Uart_Ip_Types.h have different vendor ids"
#endif
#if ((LPUART_UART_IP_PBCFG_BOARD_INITPERIPHERALS_AR_RELEASE_MAJOR_VERSION_C != LPUART_UART_IP_TYPES_AR_RELEASE_MAJOR_VERSION)|| \
(LPUART_UART_IP_PBCFG_BOARD_INITPERIPHERALS_AR_RELEASE_MINOR_VERSION_C != LPUART_UART_IP_TYPES_AR_RELEASE_MINOR_VERSION)|| \
(LPUART_UART_IP_PBCFG_BOARD_INITPERIPHERALS_AR_RELEASE_REVISION_VERSION_C != LPUART_UART_IP_TYPES_AR_RELEASE_REVISION_VERSION))
#error "AUTOSAR Version Numbers of Lpuart_Uart_Ip_BOARD_InitPeripherals_PBcfg.c and Lpuart_Uart_Ip_Types.h are different"
#endif
#if ((LPUART_UART_IP_PBCFG_BOARD_INITPERIPHERALS_SW_MAJOR_VERSION_C != LPUART_UART_IP_TYPES_SW_MAJOR_VERSION)|| \
(LPUART_UART_IP_PBCFG_BOARD_INITPERIPHERALS_SW_MINOR_VERSION_C != LPUART_UART_IP_TYPES_SW_MINOR_VERSION)|| \
(LPUART_UART_IP_PBCFG_BOARD_INITPERIPHERALS_SW_PATCH_VERSION_C != LPUART_UART_IP_TYPES_SW_PATCH_VERSION))
#error "Software Version Numbers of Lpuart_Uart_Ip_BOARD_InitPeripherals_PBcfg.c and Lpuart_Uart_Ip_Types.h are different"
#endif
/* Checks against Lpuart_Uart_Ip_Cfg.h */
#if (LPUART_UART_IP_PBCFG_BOARD_INITPERIPHERALS_VENDOR_ID_C != LPUART_UART_IP_CFG_VENDOR_ID)
#error "Lpuart_Uart_Ip_BOARD_InitPeripherals_PBcfg.c and Lpuart_Uart_Ip_Cfg.h have different vendor ids"
#endif
#if ((LPUART_UART_IP_PBCFG_BOARD_INITPERIPHERALS_AR_RELEASE_MAJOR_VERSION_C != LPUART_UART_IP_CFG_AR_RELEASE_MAJOR_VERSION)|| \
(LPUART_UART_IP_PBCFG_BOARD_INITPERIPHERALS_AR_RELEASE_MINOR_VERSION_C != LPUART_UART_IP_CFG_AR_RELEASE_MINOR_VERSION)|| \
(LPUART_UART_IP_PBCFG_BOARD_INITPERIPHERALS_AR_RELEASE_REVISION_VERSION_C != LPUART_UART_IP_CFG_AR_RELEASE_REVISION_VERSION))
#error "AUTOSAR Version Numbers of Lpuart_Uart_Ip_BOARD_InitPeripherals_PBcfg.c and Lpuart_Uart_Ip_Cfg.h are different"
#endif
#if ((LPUART_UART_IP_PBCFG_BOARD_INITPERIPHERALS_SW_MAJOR_VERSION_C != LPUART_UART_IP_CFG_SW_MAJOR_VERSION)|| \
(LPUART_UART_IP_PBCFG_BOARD_INITPERIPHERALS_SW_MINOR_VERSION_C != LPUART_UART_IP_CFG_SW_MINOR_VERSION)|| \
(LPUART_UART_IP_PBCFG_BOARD_INITPERIPHERALS_SW_PATCH_VERSION_C != LPUART_UART_IP_CFG_SW_PATCH_VERSION))
#error "Software Version Numbers of Lpuart_Uart_Ip_BOARD_InitPeripherals_PBcfg.c and Lpuart_Uart_Ip_Cfg.h are different"
#endif
/*==================================================================================================
LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS)
==================================================================================================*/
/*==================================================================================================
LOCAL CONSTANTS
==================================================================================================*/
/*==================================================================================================
* LOCAL MACROS
==================================================================================================*/
/*==================================================================================================
LOCAL VARIABLES
==================================================================================================*/
/*==================================================================================================
GLOBAL CONSTANTS
==================================================================================================*/
#define UART_START_SEC_VAR_NO_INIT_UNSPECIFIED_NO_CACHEABLE
#include "Uart_MemMap.h"
extern Lpuart_Uart_Ip_StateStructureType Lpuart_Uart_Ip_apStateStructure[LPUART_UART_IP_NUMBER_OF_INSTANCES];
#define UART_STOP_SEC_VAR_NO_INIT_UNSPECIFIED_NO_CACHEABLE
#include "Uart_MemMap.h"
#define UART_START_SEC_CONFIG_DATA_UNSPECIFIED
#include "Uart_MemMap.h"
/**
* @brief Hardware configuration for Lpuart Uart Hardware - Configuration:
*
* @api
*/
const Lpuart_Uart_Ip_UserConfigType Lpuart_Uart_Ip_pHwConfigPB_0_BOARD_INITPERIPHERALS =
{
/* Actual baudrate */
115440,
/* Baudrate mantissa*/
33U,
/* Baudrate Divisor*/
21U,
/* Parity type */
LPUART_UART_IP_PARITY_DISABLED,
/* Number of stop bits, 1 stop bit (default) or 2 stop bits */
LPUART_UART_IP_ONE_STOP_BIT,
/* Number of bits per transmitted/received word */
LPUART_UART_IP_8_BITS_PER_CHAR,
/* Type of UART transfer (interrupt/dma based) */
LPUART_UART_IP_USING_INTERRUPTS,
/* Callback to invoke for data receive.*/
UART0_RX_Callback,
/* Receive callback parameter pointer.*/
NULL_PTR,
/* Callback to invoke for data send */
NULL_PTR,
/* Transmit callback parameter pointer.*/
NULL_PTR,
/* Callback to invoke on error conditions */
NULL_PTR,
/* Error callback parameter pointer */
NULL_PTR,
#if (LPUART_UART_IP_HAS_DMA_ENABLED == STD_ON)
/* DMA channel number for DMA-based rx. */
255,
/* DMA channel number for DMA-based tx. */
255,
#endif
/* Runtime state structure refference */
&Lpuart_Uart_Ip_apStateStructure[0U]
};
const Lpuart_Uart_Ip_UserConfigType Lpuart_Uart_Ip_pHwConfigPB_2_BOARD_INITPERIPHERALS =
{
/* Actual baudrate */
115942,
/* Baudrate mantissa*/
15U,
/* Baudrate Divisor*/
23U,
/* Parity type */
LPUART_UART_IP_PARITY_DISABLED,
/* Number of stop bits, 1 stop bit (default) or 2 stop bits */
LPUART_UART_IP_ONE_STOP_BIT,
/* Number of bits per transmitted/received word */
LPUART_UART_IP_8_BITS_PER_CHAR,
/* Type of UART transfer (interrupt/dma based) */
LPUART_UART_IP_USING_INTERRUPTS,
/* Callback to invoke for data receive.*/
UART2_RX_Callback,
/* Receive callback parameter pointer.*/
NULL_PTR,
/* Callback to invoke for data send */
NULL_PTR,
/* Transmit callback parameter pointer.*/
NULL_PTR,
/* Callback to invoke on error conditions */
NULL_PTR,
/* Error callback parameter pointer */
NULL_PTR,
#if (LPUART_UART_IP_HAS_DMA_ENABLED == STD_ON)
/* DMA channel number for DMA-based rx. */
255,
/* DMA channel number for DMA-based tx. */
255,
#endif
/* Runtime state structure refference */
&Lpuart_Uart_Ip_apStateStructure[2U]
};
const Lpuart_Uart_Ip_UserConfigType Lpuart_Uart_Ip_pHwConfigPB_10_BOARD_INITPERIPHERALS =
{
/* Actual baudrate */
115942,
/* Baudrate mantissa*/
15U,
/* Baudrate Divisor*/
23U,
/* Parity type */
LPUART_UART_IP_PARITY_DISABLED,
/* Number of stop bits, 1 stop bit (default) or 2 stop bits */
LPUART_UART_IP_ONE_STOP_BIT,
/* Number of bits per transmitted/received word */
LPUART_UART_IP_8_BITS_PER_CHAR,
/* Type of UART transfer (interrupt/dma based) */
LPUART_UART_IP_USING_INTERRUPTS,
/* Callback to invoke for data receive.*/
UART10_RX_Callback,
/* Receive callback parameter pointer.*/
NULL_PTR,
/* Callback to invoke for data send */
NULL_PTR,
/* Transmit callback parameter pointer.*/
NULL_PTR,
/* Callback to invoke on error conditions */
NULL_PTR,
/* Error callback parameter pointer */
NULL_PTR,
#if (LPUART_UART_IP_HAS_DMA_ENABLED == STD_ON)
/* DMA channel number for DMA-based rx. */
255,
/* DMA channel number for DMA-based tx. */
255,
#endif
/* Runtime state structure refference */
&Lpuart_Uart_Ip_apStateStructure[10U]
};
const Lpuart_Uart_Ip_UserConfigType Lpuart_Uart_Ip_pHwConfigPB_13_BOARD_INITPERIPHERALS =
{
/* Actual baudrate */
115942,
/* Baudrate mantissa*/
15U,
/* Baudrate Divisor*/
23U,
/* Parity type */
LPUART_UART_IP_PARITY_DISABLED,
/* Number of stop bits, 1 stop bit (default) or 2 stop bits */
LPUART_UART_IP_ONE_STOP_BIT,
/* Number of bits per transmitted/received word */
LPUART_UART_IP_8_BITS_PER_CHAR,
/* Type of UART transfer (interrupt/dma based) */
LPUART_UART_IP_USING_INTERRUPTS,
/* Callback to invoke for data receive.*/
UART13_RX_Callback,
/* Receive callback parameter pointer.*/
NULL_PTR,
/* Callback to invoke for data send */
NULL_PTR,
/* Transmit callback parameter pointer.*/
NULL_PTR,
/* Callback to invoke on error conditions */
NULL_PTR,
/* Error callback parameter pointer */
NULL_PTR,
#if (LPUART_UART_IP_HAS_DMA_ENABLED == STD_ON)
/* DMA channel number for DMA-based rx. */
255,
/* DMA channel number for DMA-based tx. */
255,
#endif
/* Runtime state structure refference */
&Lpuart_Uart_Ip_apStateStructure[13U]
};
#define UART_STOP_SEC_CONFIG_DATA_UNSPECIFIED
#include "Uart_MemMap.h"
/*==================================================================================================
GLOBAL VARIABLES
==================================================================================================*/
/*==================================================================================================
LOCAL FUNCTION PROTOTYPES
==================================================================================================*/
/*==================================================================================================
LOCAL FUNCTIONS
==================================================================================================*/
/*==================================================================================================
GLOBAL FUNCTIONS
==================================================================================================*/
#ifdef __cplusplus
}
/** @} */
#endif