ADM/GW/RTD/src/Adc_Sar_Ip_Isr.c
2024-08-08 10:00:15 +09:00

113 lines
4.8 KiB
C

/*==================================================================================================
* Project : RTD AUTOSAR 4.4
* Platform : CORTEXM
* Peripheral : ADC_SAR
* 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
*
* @addtogroup adc_sar_ip Adc Sar IPL
* @{
*/
#include "OsIf.h"
#include "StandardTypes.h"
#include "Adc_Sar_Ip_DeviceRegisters.h"
/*******************************************************************************
* Source file version information
******************************************************************************/
#define ADC_SAR_IP_VENDOR_ID_ISR_C 43
#define ADC_SAR_IP_AR_RELEASE_MAJOR_VERSION_ISR_C 4
#define ADC_SAR_IP_AR_RELEASE_MINOR_VERSION_ISR_C 4
#define ADC_SAR_IP_AR_RELEASE_REVISION_VERSION_ISR_C 0
#define ADC_SAR_IP_SW_MAJOR_VERSION_ISR_C 0
#define ADC_SAR_IP_SW_MINOR_VERSION_ISR_C 9
#define ADC_SAR_IP_SW_PATCH_VERSION_ISR_C 0
/*******************************************************************************
* File version checks
******************************************************************************/
#ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
/* Check if Adc_Sar_Ip_Isr.c file and OsIf.h file are of the same Autosar version */
#if ((ADC_SAR_IP_AR_RELEASE_MAJOR_VERSION_ISR_C != OSIF_AR_RELEASE_MAJOR_VERSION) || \
(ADC_SAR_IP_AR_RELEASE_MINOR_VERSION_ISR_C != OSIF_AR_RELEASE_MINOR_VERSION) \
)
#error "AutoSar Version Numbers of Adc_Sar_Ip_Isr.c and OsIf.h are different"
#endif
/* Check if Adc_Sar_Ip_Isr.c file and StandardTypes.h file are of the same Autosar version */
#if ((ADC_SAR_IP_AR_RELEASE_MAJOR_VERSION_ISR_C != STD_AR_RELEASE_MAJOR_VERSION) || \
(ADC_SAR_IP_AR_RELEASE_MINOR_VERSION_ISR_C != STD_AR_RELEASE_MINOR_VERSION) \
)
#error "AutoSar Version Numbers of Adc_Sar_Ip_Isr.c and StandardTypes.h are different"
#endif
#endif /* DISABLE_MCAL_INTERMODULE_ASR_CHECK */
/* Check if Adc_Sar_Ip_Isr.c file and Adc_Sar_Ip_DeviceRegisters.h file are of the same vendor */
#if (ADC_SAR_IP_VENDOR_ID_ISR_C != ADC_SAR_IP_VENDOR_ID_DEVICEREGISTERS_H)
#error "Adc_Sar_Ip_Isr.c and Adc_Sar_Ip_DeviceRegisters.h have different vendor ids"
#endif
/* Check if Adc_Sar_Ip_Isr.c file and Adc_Sar_Ip_DeviceRegisters.h file are of the same Autosar version */
#if ((ADC_SAR_IP_AR_RELEASE_MAJOR_VERSION_ISR_C != ADC_SAR_IP_AR_RELEASE_MAJOR_VERSION_DEVICEREGISTERS_H) || \
(ADC_SAR_IP_AR_RELEASE_MINOR_VERSION_ISR_C != ADC_SAR_IP_AR_RELEASE_MINOR_VERSION_DEVICEREGISTERS_H) || \
(ADC_SAR_IP_AR_RELEASE_REVISION_VERSION_ISR_C != ADC_SAR_IP_AR_RELEASE_REVISION_VERSION_DEVICEREGISTERS_H) \
)
#error "AutoSar Version Numbers of Adc_Sar_Ip_Isr.c and Adc_Sar_Ip_DeviceRegisters.h are different"
#endif
/* Check if Adc_Sar_Ip_Isr.c file and Adc_Sar_Ip_DeviceRegisters.h file are of the same Software version */
#if ((ADC_SAR_IP_SW_MAJOR_VERSION_ISR_C != ADC_SAR_IP_SW_MAJOR_VERSION_DEVICEREGISTERS_H) || \
(ADC_SAR_IP_SW_MINOR_VERSION_ISR_C != ADC_SAR_IP_SW_MINOR_VERSION_DEVICEREGISTERS_H) || \
(ADC_SAR_IP_SW_PATCH_VERSION_ISR_C != ADC_SAR_IP_SW_PATCH_VERSION_DEVICEREGISTERS_H) \
)
#error "Software Version Numbers of Adc_Sar_Ip_Isr.c and Adc_Sar_Ip_DeviceRegisters.h are different"
#endif
/******************************************************************************/
#define ADC_START_SEC_CODE
#include "Adc_MemMap.h"
extern void Adc_Sar_Ip_IRQHandler(const uint32 u32Instance);
ISR(Adc_Sar_0_Isr); /* IAR requires prototypes. */
ISR(Adc_Sar_0_Isr)
{
Adc_Sar_Ip_IRQHandler(0UL);
}
ISR(Adc_Sar_1_Isr); /* IAR requires prototypes. */
ISR(Adc_Sar_1_Isr)
{
Adc_Sar_Ip_IRQHandler(1UL);
}
#if (ADC_INSTANCE_COUNT >= 3)
ISR(Adc_Sar_2_Isr); /* IAR requires prototypes. */
ISR(Adc_Sar_2_Isr)
{
Adc_Sar_Ip_IRQHandler(2UL);
}
#endif
#define ADC_STOP_SEC_CODE
#include "Adc_MemMap.h"
/** @} */