System_Ip.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. /*==================================================================================================
  2. * Project : RTD AUTOSAR 4.4
  3. * Platform : CORTEXM
  4. * Peripheral :
  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. #ifndef SYSTEM_IP_H_
  25. #define SYSTEM_IP_H_
  26. /**
  27. * @file
  28. *
  29. * @defgroup System_Ip System IP
  30. * @ingroup Platform
  31. *
  32. * @addtogroup System_Ip
  33. * @{
  34. */
  35. /*==================================================================================================
  36. * INCLUDE FILES
  37. ==================================================================================================*/
  38. #include "System_Ip_Cfg.h"
  39. #include "Devassert.h"
  40. /*==================================================================================================
  41. * SOURCE FILE VERSION INFORMATION
  42. ==================================================================================================*/
  43. #define PLATFORM_SYSTEM_IP_VENDOR_ID 43
  44. #define PLATFORM_SYSTEM_IP_AR_RELEASE_MAJOR_VERSION 4
  45. #define PLATFORM_SYSTEM_IP_AR_RELEASE_MINOR_VERSION 4
  46. #define PLATFORM_SYSTEM_IP_AR_RELEASE_REVISION_VERSION 0
  47. #define PLATFORM_SYSTEM_IP_SW_MAJOR_VERSION 1
  48. #define PLATFORM_SYSTEM_IP_SW_MINOR_VERSION 0
  49. #define PLATFORM_SYSTEM_IP_SW_PATCH_VERSION 0
  50. /*==================================================================================================
  51. FILE VERSION CHECKS
  52. ==================================================================================================*/
  53. /* Check if current file and System_Ip_Cfg header file are of the same vendor */
  54. #if (PLATFORM_SYSTEM_IP_VENDOR_ID != PLATFORM_SYSTEM_IP_CFG_TYPES_VENDOR_ID)
  55. #error "System_Ip.h and System_Ip_Cfg.h have different vendor ids"
  56. #endif
  57. /* Check if current file and System_Ip_Cfg header file are of the same Software version */
  58. #if ((PLATFORM_SYSTEM_IP_SW_MAJOR_VERSION != PLATFORM_SYSTEM_IP_CFG_SW_MAJOR_VERSION) || \
  59. (PLATFORM_SYSTEM_IP_SW_MINOR_VERSION != PLATFORM_SYSTEM_IP_CFG_SW_MINOR_VERSION) || \
  60. (PLATFORM_SYSTEM_IP_SW_PATCH_VERSION != PLATFORM_SYSTEM_IP_CFG_SW_PATCH_VERSION) \
  61. )
  62. #error "Software Version Numbers of System_Ip.h and System_Ip_Cfg.h are different"
  63. #endif
  64. /*==================================================================================================
  65. * LOCAL FUNCTIONS
  66. ==================================================================================================*/
  67. /*==================================================================================================
  68. * GLOBAL FUNCTIONS
  69. ==================================================================================================*/
  70. #define PLATFORM_START_SEC_CODE
  71. #include "Platform_MemMap.h"
  72. #if (SYSTEM_IP_ARM_CORTEXM4 == STD_ON)
  73. /**
  74. * @brief Enables/disables core-related interrupt exceptions.
  75. *
  76. * @details This function is non-reentrant and configures core-related interrupt
  77. * exceptions, as defined per each platform.
  78. *
  79. * @param[in] eIrq: core-related interrupt event.
  80. * @param[in] bEnable: FALSE - disable interrupt, TRUE - enable interrupt.
  81. * @return void
  82. *
  83. * @api
  84. *
  85. * @implements System_Ip_ConfigIrq_Activity
  86. *
  87. * */
  88. void System_Ip_ConfigIrq(System_Ip_IrqType eIrq, boolean bEnable);
  89. #endif
  90. #ifdef MCM_HAS_WABS_SUPPORTED
  91. /**
  92. * @brief Clears Write Abort on Slave flag.
  93. *
  94. * @details This function is reentrant and clears the flag indicating when a
  95. * write abort has occurred on the AHBS interface.
  96. *
  97. * @return void
  98. *
  99. * @api
  100. *
  101. * @implements System_Ip_ClearWriteAbortFlag_Activity
  102. *
  103. * */
  104. void System_Ip_ClearWriteAbortFlag(void);
  105. #endif
  106. #ifdef MCM_HAS_PLATFORM_REVISION
  107. /**
  108. * @brief Returns platform revision.
  109. *
  110. * @details This function is reentrant and returns a software-visible revision number.
  111. *
  112. * @return void
  113. *
  114. * @api
  115. *
  116. * @implements System_Ip_GetPlatformRevision_Activity
  117. *
  118. * */
  119. uint32 System_Ip_GetPlatformRevision(void);
  120. #endif
  121. #define PLATFORM_STOP_SEC_CODE
  122. #include "Platform_MemMap.h"
  123. #endif /* SYSTEM_IP_H_ */
  124. /** @} */