OsIf_Cfg.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. /*==================================================================================================
  2. * Project : RTD AUTOSAR 4.4
  3. * Platform : CORTEXM
  4. * Peripheral : S32K14X
  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 OSIF_CFG_H
  25. #define OSIF_CFG_H
  26. /**
  27. * @file
  28. *
  29. * @addtogroup osif_drv
  30. * @{
  31. */
  32. #ifdef __cplusplus
  33. extern "C"{
  34. #endif
  35. /*==================================================================================================
  36. * INCLUDE FILES
  37. * 1) system and project includes
  38. * 2) needed interfaces from external units
  39. * 3) internal and external interfaces from this unit
  40. ==================================================================================================*/
  41. #include "StandardTypes.h"
  42. #include "S32K146_SYSTICK.h"
  43. /*==================================================================================================
  44. * SOURCE FILE VERSION INFORMATION
  45. ==================================================================================================*/
  46. #define OSIF_CFG_VENDOR_ID 43
  47. #define OSIF_CFG_AR_RELEASE_MAJOR_VERSION 4
  48. #define OSIF_CFG_AR_RELEASE_MINOR_VERSION 4
  49. #define OSIF_CFG_AR_RELEASE_REVISION_VERSION 0
  50. #define OSIF_CFG_SW_MAJOR_VERSION 1
  51. #define OSIF_CFG_SW_MINOR_VERSION 0
  52. #define OSIF_CFG_SW_PATCH_VERSION 0
  53. /*==================================================================================================
  54. * FILE VERSION CHECKS
  55. ==================================================================================================*/
  56. /* Checks against OsIf_Cfg.h */
  57. #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
  58. #if ((OSIF_CFG_AR_RELEASE_MAJOR_VERSION != STD_AR_RELEASE_MAJOR_VERSION) || \
  59. (OSIF_CFG_AR_RELEASE_MINOR_VERSION != STD_AR_RELEASE_MINOR_VERSION))
  60. #error "AutoSar Version Numbers of OsIf_Cfg.h and StandardTypes.h are different"
  61. #endif
  62. #endif
  63. /*==================================================================================================
  64. * CONSTANTS
  65. ==================================================================================================*/
  66. /** @violates @ref Mcal_h_REF_2 unused macro. */
  67. #define MCAL_ARM_MARCH (16) /* for ARM M4 Thumb2 */
  68. /** @violates @ref Mcal_h_REF_2 unused macro. */
  69. #define MCAL_ARM_AARCH32 (32) /* for ARM ARCH32 */
  70. /** @violates @ref Mcal_h_REF_2 unused macro. */
  71. #define MCAL_ARM_AARCH64 (64) /* for ARM ARCH64 */
  72. /** @violates @ref Mcal_h_REF_2 unused macro. */
  73. #define MCAL_ARM_RARCH (52) /* for ARM R platform */
  74. /*==================================================================================================
  75. * DEFINES AND MACROS
  76. ==================================================================================================*/
  77. /* ARM_MARCH - is used to specify the ARM architecture MCAL_MARCH, MCAL_RARCH, MCAL_AARCH32, MCAL_AARCH64 */
  78. #define MCAL_PLATFORM_ARM MCAL_ARM_MARCH
  79. /* General OSIF configuration */
  80. #define OSIF_MODULE_ID (255U)
  81. #define OSIF_DRIVER_INSTANCE (0U)
  82. #define OSIF_ENABLE_USER_MODE_SUPPORT (STD_OFF)
  83. #ifndef MCAL_ENABLE_USER_MODE_SUPPORT
  84. #if (STD_ON == OSIF_ENABLE_USER_MODE_SUPPORT)
  85. #error MCAL_ENABLE_USER_MODE_SUPPORT is not enabled. For running OsIf in user mode, MCAL_ENABLE_USER_MODE_SUPPORT needs to be defined.
  86. #endif /* (STD_ON == OSIF_ENABLE_USER_MODE_SUPPORT */
  87. #endif /* ifndef MCAL_ENABLE_USER_MODE_SUPPORT */
  88. #define OSIF_ENABLE_MULTICORE_SUPPORT (STD_OFF)
  89. #define OSIF_MAX_COREIDX_SUPPORTED (1U)
  90. #define OSIF_DEV_ERROR_DETECT (STD_OFF)
  91. #define USING_OS_BAREMETAL
  92. #define OSIF_USE_SYSTEM_TIMER (STD_ON)
  93. #define OSIF_USE_CUSTOM_TIMER (STD_OFF)
  94. /* Autosar OS Specific */
  95. /* Baremetal Specific */
  96. #define OSIF_USE_SYSTICK (STD_ON)
  97. /*==================================================================================================
  98. * ENUMS
  99. ==================================================================================================*/
  100. /*==================================================================================================
  101. * STRUCTURES AND OTHER TYPEDEFS
  102. ==================================================================================================*/
  103. /*==================================================================================================
  104. * GLOBAL VARIABLE DECLARATIONS
  105. ==================================================================================================*/
  106. /*==================================================================================================
  107. * FUNCTION PROTOTYPES
  108. ==================================================================================================*/
  109. #ifdef __cplusplus
  110. }
  111. #endif /* __cplusplus */
  112. #endif /* OSIF_CFG_H */
  113. /** @} */