Platform_Cfg.c 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. /*==================================================================================================
  28. INCLUDE FILES
  29. ==================================================================================================*/
  30. #include "Platform_Cfg.h"
  31. #include "Platform_Ipw_Cfg.h"
  32. /*==================================================================================================
  33. * SOURCE FILE VERSION INFORMATION
  34. ==================================================================================================*/
  35. #define PLATFORM_CFG_VENDOR_ID_C 43
  36. #define PLATFORM_CFG_AR_RELEASE_MAJOR_VERSION_C 4
  37. #define PLATFORM_CFG_AR_RELEASE_MINOR_VERSION_C 4
  38. #define PLATFORM_CFG_AR_RELEASE_REVISION_VERSION_C 0
  39. #define PLATFORM_CFG_SW_MAJOR_VERSION_C 1
  40. #define PLATFORM_CFG_SW_MINOR_VERSION_C 0
  41. #define PLATFORM_CFG_SW_PATCH_VERSION_C 0
  42. /*==================================================================================================
  43. * FILE VERSION CHECKS
  44. ==================================================================================================*/
  45. /* Check if current file and Platform_Cfg header file are of the same vendor */
  46. #if (PLATFORM_CFG_VENDOR_ID_C != PLATFORM_CFG_VENDOR_ID)
  47. #error "Platform_Cfg.c and Platform_TypesDef.h have different vendor ids"
  48. #endif
  49. /* Check if current file and Platform_Cfg header file are of the same Autosar version */
  50. #if ((PLATFORM_CFG_AR_RELEASE_MAJOR_VERSION_C != PLATFORM_CFG_AR_RELEASE_MAJOR_VERSION) || \
  51. (PLATFORM_CFG_AR_RELEASE_MINOR_VERSION_C != PLATFORM_CFG_AR_RELEASE_MINOR_VERSION) || \
  52. (PLATFORM_CFG_AR_RELEASE_REVISION_VERSION_C != PLATFORM_CFG_AR_RELEASE_REVISION_VERSION) \
  53. )
  54. #error "AutoSar Version Numbers of Platform_Cfg.c and Platform_Cfg.h are different"
  55. #endif
  56. /* Check if current file and Platform_Cfg header file are of the same Software version */
  57. #if ((PLATFORM_CFG_SW_MAJOR_VERSION_C != PLATFORM_CFG_SW_MAJOR_VERSION) || \
  58. (PLATFORM_CFG_SW_MINOR_VERSION_C != PLATFORM_CFG_SW_MINOR_VERSION) || \
  59. (PLATFORM_CFG_SW_PATCH_VERSION_C != PLATFORM_CFG_SW_PATCH_VERSION) \
  60. )
  61. #error "Software Version Numbers of Platform_Cfg.c and Platform_Cfg.h are different"
  62. #endif
  63. /* Check if current file and Platform_Ipw_Cfg header file are of the same vendor */
  64. #if (PLATFORM_CFG_VENDOR_ID_C != PLATFORM_IPW_CFG_VENDOR_ID)
  65. #error "Platform_Cfg.c and Platform_Ipw_Cfg.h have different vendor ids"
  66. #endif
  67. /* Check if current file and Platform_Ipw_Cfg header file are of the same Autosar version */
  68. #if ((PLATFORM_CFG_AR_RELEASE_MAJOR_VERSION_C != PLATFORM_IPW_CFG_AR_MAJOR_VERSION) || \
  69. (PLATFORM_CFG_AR_RELEASE_MINOR_VERSION_C != PLATFORM_IPW_CFG_AR_MINOR_VERSION) || \
  70. (PLATFORM_CFG_AR_RELEASE_REVISION_VERSION_C != PLATFORM_IPW_CFG_AR_REVISION_VERSION) \
  71. )
  72. #error "AutoSar Version Numbers of Platform_Cfg.c and Platform_Ipw_Cfg.h are different"
  73. #endif
  74. /* Check if current file and Platform_Cfg header file are of the same Software version */
  75. #if ((PLATFORM_CFG_SW_MAJOR_VERSION_C != PLATFORM_IPW_CFG_SW_MAJOR_VERSION) || \
  76. (PLATFORM_CFG_SW_MINOR_VERSION_C != PLATFORM_IPW_CFG_SW_MINOR_VERSION) || \
  77. (PLATFORM_CFG_SW_PATCH_VERSION_C != PLATFORM_IPW_CFG_SW_PATCH_VERSION) \
  78. )
  79. #error "Software Version Numbers of Platform_Cfg.c and Platform_Ipw_Cfg.h are different"
  80. #endif
  81. /*==================================================================================================
  82. GLOBAL VARIABLES
  83. ==================================================================================================*/
  84. #define PLATFORM_START_SEC_CONFIG_DATA_UNSPECIFIED
  85. #include "Platform_MemMap.h"
  86. static const Platform_ConfigType Platform_uConfiguration = {
  87. &ipwConfig,
  88. &ipwNonCoreConfig
  89. };
  90. const Platform_ConfigType *const Platform_Config[1U]=
  91. {
  92. &Platform_uConfiguration
  93. };
  94. #define PLATFORM_STOP_SEC_CONFIG_DATA_UNSPECIFIED
  95. #include "Platform_MemMap.h"
  96. #ifdef __cplusplus
  97. }
  98. #endif