Mcu_VS_0_PBcfg.c 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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. /**
  25. * @file Mcu_VS_0_PBcfg.c
  26. * @implements Mcu_PBcfg.c_Artifact
  27. * @version 1.0.0
  28. *
  29. * @brief AUTOSAR Mcu - Data structures for the Mcu driver.
  30. * @details Postbuild structure configurations for the driver initalization.
  31. *
  32. * @addtogroup MCU
  33. * @{
  34. */
  35. #ifdef __cplusplus
  36. extern "C"
  37. {
  38. #endif
  39. /*==================================================================================================
  40. INCLUDE FILES
  41. 1) system and project includes
  42. 2) needed interfaces from external units
  43. 3) internal and external interfaces from this unit
  44. ==================================================================================================*/
  45. #include "Mcu.h"
  46. #if (MCU_DISABLE_DEM_REPORT_ERROR_STATUS == STD_OFF)
  47. #include "Dem.h"
  48. #endif /* (MCU_DISABLE_DEM_REPORT_ERROR_STATUS == STD_OFF) */
  49. /*==================================================================================================
  50. SOURCE FILE VERSION INFORMATION
  51. ==================================================================================================*/
  52. #define MCU_VS_0_PBCFG_VENDOR_ID_C 43
  53. #define MCU_VS_0_PBCFG_AR_RELEASE_MAJOR_VERSION_C 4
  54. #define MCU_VS_0_PBCFG_AR_RELEASE_MINOR_VERSION_C 4
  55. #define MCU_VS_0_PBCFG_AR_RELEASE_REVISION_VERSION_C 0
  56. #define MCU_VS_0_PBCFG_SW_MAJOR_VERSION_C 1
  57. #define MCU_VS_0_PBCFG_SW_MINOR_VERSION_C 0
  58. #define MCU_VS_0_PBCFG_SW_PATCH_VERSION_C 0
  59. /*==================================================================================================
  60. * FILE VERSION CHECKS
  61. ==================================================================================================*/
  62. #if (MCU_DISABLE_DEM_REPORT_ERROR_STATUS == STD_OFF)
  63. #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
  64. /* Check if Mcu_VS_0_PBcfg.c file and Dem.h file are of the same Autosar version */
  65. #if ((MCU_VS_0_PBCFG_AR_RELEASE_MAJOR_VERSION_C != DEM_AR_RELEASE_MAJOR_VERSION) || \
  66. (MCU_VS_0_PBCFG_AR_RELEASE_MINOR_VERSION_C != DEM_AR_RELEASE_MINOR_VERSION))
  67. #error "AutoSar Version Numbers of Mcu_VS_0_PBcfg.c and Dem.h are different"
  68. #endif
  69. #endif
  70. #endif /* (MCU_DISABLE_DEM_REPORT_ERROR_STATUS == STD_OFF) */
  71. /* Check if Mcu_VS_0_PBcfg.c file and Mcu.h file are of the same vendor */
  72. #if (MCU_VS_0_PBCFG_VENDOR_ID_C != MCU_VENDOR_ID)
  73. #error "Mcu_VS_0_PBcfg.c and Mcu.h have different vendor ids"
  74. #endif
  75. /* Check if Mcu_VS_0_PBcfg.c file and Mcu.h file are of the same Autosar version */
  76. #if ((MCU_VS_0_PBCFG_AR_RELEASE_MAJOR_VERSION_C != MCU_AR_RELEASE_MAJOR_VERSION) || \
  77. (MCU_VS_0_PBCFG_AR_RELEASE_MINOR_VERSION_C != MCU_AR_RELEASE_MINOR_VERSION) || \
  78. (MCU_VS_0_PBCFG_AR_RELEASE_REVISION_VERSION_C != MCU_AR_RELEASE_REVISION_VERSION) \
  79. )
  80. #error "AutoSar Version Numbers of Mcu_VS_0_PBcfg.c and Mcu.h are different"
  81. #endif
  82. /* Check if Mcu_VS_0_PBcfg.c file and Mcu.h file are of the same Software version */
  83. #if ((MCU_VS_0_PBCFG_SW_MAJOR_VERSION_C != MCU_SW_MAJOR_VERSION) || \
  84. (MCU_VS_0_PBCFG_SW_MINOR_VERSION_C != MCU_SW_MINOR_VERSION) || \
  85. (MCU_VS_0_PBCFG_SW_PATCH_VERSION_C != MCU_SW_PATCH_VERSION) \
  86. )
  87. #error "Software Version Numbers of Mcu_VS_0_PBcfg.c and Mcu.h are different"
  88. #endif
  89. /*==================================================================================================
  90. LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS)
  91. ==================================================================================================*/
  92. /*==================================================================================================
  93. LOCAL MACROS
  94. ==================================================================================================*/
  95. /*==================================================================================================
  96. LOCAL CONSTANTS
  97. ==================================================================================================*/
  98. /*==================================================================================================
  99. LOCAL VARIABLES
  100. ==================================================================================================*/
  101. /*==================================================================================================
  102. GLOBAL CONSTANTS
  103. ==================================================================================================*/
  104. #define MCU_START_SEC_CONFIG_DATA_UNSPECIFIED
  105. #include "Mcu_MemMap.h"
  106. /*==================================================================================================
  107. GLOBAL VARIABLES
  108. ==================================================================================================*/
  109. /**
  110. * @brief Initialization data for the MCU driver.
  111. * @details A pointer to such a structure is provided to the MCU initialization routines for configuration.
  112. *
  113. */
  114. const Mcu_ConfigType Mcu_PreCompileConfig =
  115. {
  116. #if (MCU_INIT_CLOCK == STD_ON)
  117. /* Globally enable/disable SCM, loss of clock and loss of lock notification. */
  118. MCU_CLK_NOTIF_DIS,
  119. #endif
  120. #if (MCU_DISABLE_DEM_REPORT_ERROR_STATUS == STD_OFF)
  121. /* Pointer to DEM error reporting configurations. */
  122. &Mcu_Dem_Config,
  123. #endif
  124. /* Number of RAM Sections configurations. */
  125. (Mcu_RamSectionType)0U,
  126. /* Number of Power Modes configurations. */
  127. (Mcu_ModeType)1U,
  128. #if (MCU_INIT_CLOCK == STD_ON)
  129. /* Number of Clock Setting configurations. */
  130. (Mcu_ClockType)1U,
  131. #endif /* (MCU_INIT_CLOCK == STD_ON) */
  132. #ifndef MCU_MAX_NORAMCONFIGS
  133. /* Pointer to RAM Section configurations. */
  134. (NULL_PTR),
  135. #endif
  136. /* Pointer to Power Mode configurations. */
  137. &Power_Ip_aModeConfigPB_VS_0,
  138. #if (MCU_INIT_CLOCK == STD_ON)
  139. /* Pointer to Clock configurations. */
  140. &Mcu_aClockConfigPB_VS_0,
  141. #endif /* (MCU_INIT_CLOCK == STD_ON) */
  142. /* Pointer to Low Level Mcu driver configuration. */
  143. &Power_Ip_HwIPsConfigPB_VS_0
  144. };
  145. #define MCU_STOP_SEC_CONFIG_DATA_UNSPECIFIED
  146. #include "Mcu_MemMap.h"
  147. /*==================================================================================================
  148. LOCAL FUNCTION PROTOTYPES
  149. ==================================================================================================*/
  150. /*==================================================================================================
  151. LOCAL FUNCTIONS
  152. ==================================================================================================*/
  153. /*==================================================================================================
  154. GLOBAL FUNCTIONS
  155. ==================================================================================================*/
  156. #ifdef __cplusplus
  157. }
  158. #endif
  159. /** @} */