Dma_Ip_Devassert.h 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /*==================================================================================================
  2. * Project : RTD AUTOSAR 4.4
  3. * Platform : CORTEXM
  4. * Peripheral : DMA,CACHE,TRGMUX,FLEXIO
  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. /* Prevention from multiple including the same header */
  25. #ifndef DMA_IP_DEVASSERT_H_
  26. #define DMA_IP_DEVASSERT_H_
  27. /**
  28. * @file Dma_Ip_Devassert.h
  29. *
  30. * @version 1.0.0
  31. *
  32. * @brief AUTOSAR Mcl - Dma Ip driver header file.
  33. * @details
  34. *
  35. * @addtogroup DMA_IP_DRIVER DMA IP Driver
  36. * @{
  37. */
  38. /*==================================================================================================
  39. * INCLUDE FILES
  40. * 1) system and project includes
  41. * 2) needed interfaces from external units
  42. * 3) internal and external interfaces from this unit
  43. ==================================================================================================*/
  44. #include "Dma_Ip_Types.h"
  45. /*==================================================================================================
  46. SOURCE FILE VERSION INFORMATION
  47. ==================================================================================================*/
  48. #define DMA_IP_DEVASSERT_VENDOR_ID_H 43
  49. #define DMA_IP_DEVASSERT_AR_RELEASE_MAJOR_VERSION_H 4
  50. #define DMA_IP_DEVASSERT_AR_RELEASE_MINOR_VERSION_H 4
  51. #define DMA_IP_DEVASSERT_AR_RELEASE_REVISION_VERSION_H 0
  52. #define DMA_IP_DEVASSERT_SW_MAJOR_VERSION_H 1
  53. #define DMA_IP_DEVASSERT_SW_MINOR_VERSION_H 0
  54. #define DMA_IP_DEVASSERT_SW_PATCH_VERSION_H 0
  55. /*==================================================================================================
  56. FILE VERSION CHECKS
  57. ==================================================================================================*/
  58. /* Check if header file and Dma_Ip_Types.h file are of the same vendor */
  59. #if (DMA_IP_DEVASSERT_VENDOR_ID_H != DMA_IP_TYPES_VENDOR_ID_H)
  60. #error "Dma_Ip_Devassert.h and Dma_Ip_Types.h have different vendor ids"
  61. #endif
  62. /* Check if header file and Dma_Ip_Types.h file are of the same Autosar version */
  63. #if ((DMA_IP_DEVASSERT_AR_RELEASE_MAJOR_VERSION_H != DMA_IP_TYPES_AR_RELEASE_MAJOR_VERSION_H) || \
  64. (DMA_IP_DEVASSERT_AR_RELEASE_MINOR_VERSION_H != DMA_IP_TYPES_AR_RELEASE_MINOR_VERSION_H) || \
  65. (DMA_IP_DEVASSERT_AR_RELEASE_REVISION_VERSION_H != DMA_IP_TYPES_AR_RELEASE_REVISION_VERSION_H) \
  66. )
  67. #error "AutoSar Version Numbers of Dma_Ip_Devassert.h and Dma_Ip_Types.h are different"
  68. #endif
  69. /* Check if header file and Dma_Ip_Types.h file are of the same Software version */
  70. #if ((DMA_IP_DEVASSERT_SW_MAJOR_VERSION_H != DMA_IP_TYPES_SW_MAJOR_VERSION_H) || \
  71. (DMA_IP_DEVASSERT_SW_MINOR_VERSION_H != DMA_IP_TYPES_SW_MINOR_VERSION_H) || \
  72. (DMA_IP_DEVASSERT_SW_PATCH_VERSION_H != DMA_IP_TYPES_SW_PATCH_VERSION_H) \
  73. )
  74. #error "Software Version Numbers of Dma_Ip_Devassert.h and Dma_Ip_Types.h are different"
  75. #endif
  76. #if (DMA_IP_IS_AVAILABLE == STD_ON)
  77. /*==================================================================================================
  78. TYPEDEF
  79. ==================================================================================================*/
  80. #define MCL_START_SEC_CODE
  81. /* @violates @ref Mcl_Dma_h_REF_1 MISRA 2012 Required Directive 4.10, Precautions shall be taken in order to prevent the contents of a header file being included more than once. */
  82. #include "Mcl_MemMap.h"
  83. #if (DMA_IP_DEV_ERROR_DETECT == STD_ON)
  84. /* Implement default assert macro */
  85. static inline void Dma_Ip_DevAssert(volatile boolean x)
  86. {
  87. if(x) { } else { ASM_KEYWORD("BKPT #0"); for(;;) {} }
  88. }
  89. #define DMA_IP_DEV_ASSERT(x) Dma_Ip_DevAssert(x)
  90. #else
  91. /* Assert macro does nothing */
  92. #define DMA_IP_DEV_ASSERT(x) ((void)0)
  93. #endif /* #if (DMA_IP_DEV_ERROR_DETECT == STD_ON) */
  94. #define MCL_STOP_SEC_CODE
  95. /* @violates @ref Mcl_Dma_h_REF_1 MISRA 2012 Required Directive 4.10, Precautions shall be taken in order to prevent the contents of a header file being included more than once. */
  96. #include "Mcl_MemMap.h"
  97. #endif /* #if (DMA_IP_IS_AVAILABLE == STD_ON) */
  98. /** @} */
  99. #endif /* #ifndef DMA_IP_DEVASSERT_H_ */
  100. /*==================================================================================================
  101. * END OF FILE
  102. ==================================================================================================*/