Platform_Cfg.h 5.8 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. #ifndef PLATFORM_CFG_H_
  25. #define PLATFORM_CFG_H_
  26. /*==================================================================================================
  27. INCLUDE FILES
  28. ==================================================================================================*/
  29. #include "Platform_TypesDef.h"
  30. #include "Platform_CfgDefines.h"
  31. /*==================================================================================================
  32. * SOURCE FILE VERSION INFORMATION
  33. ==================================================================================================*/
  34. #define PLATFORM_CFG_VENDOR_ID 43
  35. #define PLATFORM_CFG_AR_RELEASE_MAJOR_VERSION 4
  36. #define PLATFORM_CFG_AR_RELEASE_MINOR_VERSION 4
  37. #define PLATFORM_CFG_AR_RELEASE_REVISION_VERSION 0
  38. #define PLATFORM_CFG_SW_MAJOR_VERSION 1
  39. #define PLATFORM_CFG_SW_MINOR_VERSION 0
  40. #define PLATFORM_CFG_SW_PATCH_VERSION 0
  41. /*==================================================================================================
  42. * FILE VERSION CHECKS
  43. ==================================================================================================*/
  44. /* Check if current file and Platform_TypesDef header file are of the same vendor */
  45. #if (PLATFORM_CFG_VENDOR_ID != PLATFORM_TYPESDEF_VENDOR_ID)
  46. #error "Platform_Cfg.h and Platform_TypesDef.h have different vendor ids"
  47. #endif
  48. /* Check if current file and Platform_TypesDef header file are of the same Autosar version */
  49. #if ((PLATFORM_CFG_AR_RELEASE_MAJOR_VERSION != PLATFORM_TYPESDEF_AR_RELEASE_MAJOR_VERSION) || \
  50. (PLATFORM_CFG_AR_RELEASE_MINOR_VERSION != PLATFORM_TYPESDEF_AR_RELEASE_MINOR_VERSION) || \
  51. (PLATFORM_CFG_AR_RELEASE_REVISION_VERSION != PLATFORM_TYPESDEF_AR_RELEASE_REVISION_VERSION) \
  52. )
  53. #error "AutoSar Version Numbers of Platform_Cfg.h and Platform_TypesDef.h are different"
  54. #endif
  55. /* Check if current file and Platform_TypesDef header file are of the same Software version */
  56. #if ((PLATFORM_CFG_SW_MAJOR_VERSION != PLATFORM_TYPESDEF_SW_MAJOR_VERSION) || \
  57. (PLATFORM_CFG_SW_MINOR_VERSION != PLATFORM_TYPESDEF_SW_MINOR_VERSION) || \
  58. (PLATFORM_CFG_SW_PATCH_VERSION != PLATFORM_TYPESDEF_SW_PATCH_VERSION) \
  59. )
  60. #error "Software Version Numbers of Platform_Cfg.h and Platform_TypesDef.h are different"
  61. #endif
  62. /* Check if current file and Platform_CfgDefines header file are of the same vendor */
  63. #if (PLATFORM_CFG_VENDOR_ID != PLATFORM_CFGDEFINES_VENDOR_ID)
  64. #error "Platform_Cfg.h and Platform_CfgDefines.h have diPlatform_CfgDefinesfferent vendor ids"
  65. #endif
  66. /* Check if current file and Platform_CfgDefines header file are of the same Autosar version */
  67. #if ((PLATFORM_CFG_AR_RELEASE_MAJOR_VERSION != PLATFORM_CFGDEFINES_AR_RELEASE_MAJOR_VERSION) || \
  68. (PLATFORM_CFG_AR_RELEASE_MINOR_VERSION != PLATFORM_CFGDEFINES_AR_RELEASE_MINOR_VERSION) || \
  69. (PLATFORM_CFG_AR_RELEASE_REVISION_VERSION != PLATFORM_CFGDEFINES_AR_RELEASE_REVISION_VERSION) \
  70. )
  71. #error "AutoSar Version Numbers of Platform_Cfg.h and Platform_CfgDefines.h are different"
  72. #endif
  73. /* Check if current file and Platform_CfgDefines header file are of the same Software version */
  74. #if ((PLATFORM_CFG_SW_MAJOR_VERSION != PLATFORM_CFGDEFINES_SW_MAJOR_VERSION) || \
  75. (PLATFORM_CFG_SW_MINOR_VERSION != PLATFORM_CFGDEFINES_SW_MINOR_VERSION) || \
  76. (PLATFORM_CFG_SW_PATCH_VERSION != PLATFORM_CFGDEFINES_SW_PATCH_VERSION) \
  77. )
  78. #error "Software Version Numbers of Platform_Cfg.h and Platform_CfgDefines.h are different"
  79. #endif
  80. /*==================================================================================================
  81. FILE VERSION CHECKS
  82. ==================================================================================================*/
  83. /* TBD */
  84. /*==================================================================================================
  85. GLOBAL VARIABLES
  86. ==================================================================================================*/
  87. /*==================================================================================================
  88. DEFINES AND MACROS
  89. ==================================================================================================*/
  90. #define PLATFORM_START_SEC_CONFIG_DATA_UNSPECIFIED
  91. #include "Platform_MemMap.h"
  92. #define PLATFORM_STOP_SEC_CONFIG_DATA_UNSPECIFIED
  93. #include "Platform_MemMap.h"
  94. #endif /* PLATFORM_CFG_H_ */