Pdb_Adc_Ip_Isr.c 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /*==================================================================================================
  2. * Project : RTD AUTOSAR 4.4
  3. * Platform : CORTEXM
  4. * Peripheral : ADC
  5. * Dependencies : none
  6. *
  7. * Autosar Version : 4.4.0
  8. * Autosar Revision : ASR_REL_4_4_REV_0000
  9. * Autosar Conf.Variant :
  10. * SW Version : 1.0.0
  11. * Build Version : S32K1_RTD_1_0_0_HF01_D2109_ASR_REL_4_4_REV_0000_20210907
  12. *
  13. * (c) Copyright 2020-2021 NXP Semiconductors
  14. * All Rights Reserved.
  15. *
  16. * NXP Confidential. This software is owned or controlled by NXP and may only be
  17. * used strictly in accordance with the applicable license terms. By expressly
  18. * accepting such terms or by downloading, installing, activating and/or otherwise
  19. * using the software, you are agreeing that you have read, and that you agree to
  20. * comply with and are bound by, such license terms. If you do not agree to be
  21. * bound by the applicable license terms, then you may not retain, install,
  22. * activate or otherwise use the software.
  23. ==================================================================================================*/
  24. /**
  25. * @file
  26. *
  27. * @addtogroup pdb_adc_ip Pdb Adc IPL
  28. * @{
  29. */
  30. #include "OsIf.h"
  31. #include "Mcal.h"
  32. #include "Pdb_Adc_Ip_CfgDefines.h"
  33. /*******************************************************************************
  34. * Source file version information
  35. ******************************************************************************/
  36. #define PDB_ADC_IP_VENDOR_ID_ISR_C 43
  37. #define PDB_ADC_IP_AR_RELEASE_MAJOR_VERSION_ISR_C 4
  38. #define PDB_ADC_IP_AR_RELEASE_MINOR_VERSION_ISR_C 4
  39. #define PDB_ADC_IP_AR_RELEASE_REVISION_VERSION_ISR_C 0
  40. #define PDB_ADC_IP_SW_MAJOR_VERSION_ISR_C 1
  41. #define PDB_ADC_IP_SW_MINOR_VERSION_ISR_C 0
  42. #define PDB_ADC_IP_SW_PATCH_VERSION_ISR_C 0
  43. /*******************************************************************************
  44. * File version checks
  45. ******************************************************************************/
  46. #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
  47. /* Check if Pdb_Adc_Ip_Isr.c file and OsIf.h file are of the same Autosar version */
  48. #if ((PDB_ADC_IP_AR_RELEASE_MAJOR_VERSION_ISR_C != OSIF_AR_RELEASE_MAJOR_VERSION) || \
  49. (PDB_ADC_IP_AR_RELEASE_MINOR_VERSION_ISR_C != OSIF_AR_RELEASE_MINOR_VERSION) \
  50. )
  51. #error "AutoSar Version Numbers of Pdb_Adc_Ip_Isr.c and OsIf.h are different"
  52. #endif
  53. /* Check if Pdb_Adc_Ip_Isr.c file and Mcal.h file are of the same Autosar version */
  54. #if ((PDB_ADC_IP_AR_RELEASE_MAJOR_VERSION_ISR_C != MCAL_AR_RELEASE_MAJOR_VERSION) || \
  55. (PDB_ADC_IP_AR_RELEASE_MINOR_VERSION_ISR_C != MCAL_AR_RELEASE_MINOR_VERSION) \
  56. )
  57. #error "AutoSar Version Numbers of Pdb_Adc_Ip_Isr.c and Mcal.h are different"
  58. #endif
  59. #endif /* DISABLE_MCAL_INTERMODULE_ASR_CHECK */
  60. /* Check if Pdb_Adc_Ip_Isr.c file and Pdb_Adc_Ip_CfgDefines.h file are of the same vendor */
  61. #if (PDB_ADC_IP_VENDOR_ID_ISR_C != PDB_ADC_IP_VENDOR_ID_CFGDEFINES_H)
  62. #error "Pdb_Adc_Ip_Isr.c and Pdb_Adc_Ip_CfgDefines.h have different vendor ids"
  63. #endif
  64. /* Check if Pdb_Adc_Ip_Isr.c file and Pdb_Adc_Ip_CfgDefines.h file are of the same Autosar version */
  65. #if ((PDB_ADC_IP_AR_RELEASE_MAJOR_VERSION_ISR_C != PDB_ADC_IP_AR_RELEASE_MAJOR_VERSION_CFGDEFINES_H) || \
  66. (PDB_ADC_IP_AR_RELEASE_MINOR_VERSION_ISR_C != PDB_ADC_IP_AR_RELEASE_MINOR_VERSION_CFGDEFINES_H) || \
  67. (PDB_ADC_IP_AR_RELEASE_REVISION_VERSION_ISR_C != PDB_ADC_IP_AR_RELEASE_REVISION_VERSION_CFGDEFINES_H) \
  68. )
  69. #error "AutoSar Version Numbers of Pdb_Adc_Ip_Isr.c and Pdb_Adc_Ip_CfgDefines.h are different"
  70. #endif
  71. /* Check if Pdb_Adc_Ip_Isr.c file and Pdb_Adc_Ip_CfgDefines.h file are of the same Software version */
  72. #if ((PDB_ADC_IP_SW_MAJOR_VERSION_ISR_C != PDB_ADC_IP_SW_MAJOR_VERSION_CFGDEFINES_H) || \
  73. (PDB_ADC_IP_SW_MINOR_VERSION_ISR_C != PDB_ADC_IP_SW_MINOR_VERSION_CFGDEFINES_H) || \
  74. (PDB_ADC_IP_SW_PATCH_VERSION_ISR_C != PDB_ADC_IP_SW_PATCH_VERSION_CFGDEFINES_H) \
  75. )
  76. #error "Software Version Numbers of Pdb_Adc_Ip_Isr.c and Pdb_Adc_Ip_CfgDefines.h are different"
  77. #endif
  78. /******************************************************************************/
  79. #define ADC_START_SEC_CODE
  80. #include "Adc_MemMap.h"
  81. extern void Pdb_Adc_Ip_IRQHandler(const uint32 Instance);
  82. ISR(Pdb_0_Isr); /* IAR requires prototypes. */
  83. ISR(Pdb_0_Isr)
  84. {
  85. Pdb_Adc_Ip_IRQHandler(0UL);
  86. EXIT_INTERRUPT();
  87. }
  88. #if (PDB_INSTANCE_COUNT >= 1)
  89. ISR(Pdb_1_Isr); /* IAR requires prototypes. */
  90. ISR(Pdb_1_Isr)
  91. {
  92. Pdb_Adc_Ip_IRQHandler(1UL);
  93. EXIT_INTERRUPT();
  94. }
  95. #endif /* (PDB_INSTANCE_COUNT >= 1) */
  96. #define ADC_STOP_SEC_CODE
  97. #include "Adc_MemMap.h"
  98. /** @} */