Platform_CfgDefines.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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_DEFINES_H_
  25. #define PLATFORM_CFG_DEFINES_H_
  26. /*==================================================================================================
  27. INCLUDE FILES
  28. ==================================================================================================*/
  29. #include "StandardTypes.h"
  30. /*==================================================================================================
  31. * SOURCE FILE VERSION INFORMATION
  32. ==================================================================================================*/
  33. #define PLATFORM_CFGDEFINES_VENDOR_ID 43
  34. #define PLATFORM_CFGDEFINES_AR_RELEASE_MAJOR_VERSION 4
  35. #define PLATFORM_CFGDEFINES_AR_RELEASE_MINOR_VERSION 4
  36. #define PLATFORM_CFGDEFINES_AR_RELEASE_REVISION_VERSION 0
  37. #define PLATFORM_CFGDEFINES_SW_MAJOR_VERSION 1
  38. #define PLATFORM_CFGDEFINES_SW_MINOR_VERSION 0
  39. #define PLATFORM_CFGDEFINES_SW_PATCH_VERSION 0
  40. /*==================================================================================================
  41. FILE VERSION CHECKS
  42. ==================================================================================================*/
  43. #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
  44. /* Check if source file and StandardTypes header file are of the same Autosar version */
  45. #if ((PLATFORM_CFGDEFINES_AR_RELEASE_MAJOR_VERSION != STD_AR_RELEASE_MAJOR_VERSION) || \
  46. (PLATFORM_CFGDEFINES_AR_RELEASE_MINOR_VERSION != STD_AR_RELEASE_MINOR_VERSION) \
  47. )
  48. #error "AutoSar Version Numbers of Platform_CfgDefines.h and StandardTypes.h are different"
  49. #endif
  50. #endif
  51. /*==================================================================================================
  52. * LOCAL MACROS
  53. ==================================================================================================*/
  54. /* Development error checking */
  55. #define PLATFORM_DEV_ERROR_DETECT (STD_ON)
  56. /* Interrupt monitoring feature enablement */
  57. #define PLATFORM_INT_MONITOR (STD_OFF)
  58. /* System settings configurable */
  59. #define PLATFORM_SYS_CFG (STD_OFF)
  60. /* System MSCM configurable */
  61. #define PLATFORM_MSCM_CFG (STD_ON)
  62. #define PLATFORM_MULTICORE_SUPPORT (STD_OFF)
  63. #if (STD_ON == PLATFORM_MULTICORE_SUPPORT)
  64. #define Platform_GetCoreID() OsIf_GetCoreID()
  65. #else
  66. #define Platform_GetCoreID() ((uint8)0UL)
  67. #endif
  68. #define PLATFORM_MAX_PARTITIONS (1U)
  69. /**
  70. * @brief Support for User mode.
  71. * If this parameter has been configured to 'STD_ON', the PLATFORM driver code can be executed from both supervisor and user mode.
  72. */
  73. #define PLATFORM_ENABLE_USER_MODE_SUPPORT (STD_OFF)
  74. #ifndef MCAL_ENABLE_USER_MODE_SUPPORT
  75. #ifdef PLATFORM_ENABLE_USER_MODE_SUPPORT
  76. #if (STD_ON == PLATFORM_ENABLE_USER_MODE_SUPPORT)
  77. #error MCAL_ENABLE_USER_MODE_SUPPORT is not enabled. For running Platform in user mode the MCAL_ENABLE_USER_MODE_SUPPORT needs to be defined
  78. #endif /* (STD_ON == PLATFORM_ENABLE_USER_MODE_SUPPORT) */
  79. #endif /* ifdef PLATFORM_ENABLE_USER_MODE_SUPPORT*/
  80. #endif /* ifndef MCAL_ENABLE_USER_MODE_SUPPORT */
  81. #endif /* PLATFORM_CFG_DEFINES_H_ */