Os_cfg.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /**
  2. * @file Os_cfg.h
  3. * @version 1.0.0
  4. *
  5. * @brief AUTOSAR Os - Project configuration.
  6. * @details Header file describing all Autosar MCAL Os_cfg present in the current project.
  7. *
  8. * @addtogroup BASE_COMPONENT
  9. * @{
  10. */
  11. /*==================================================================================================
  12. * Project : RTD AUTOSAR 4.4
  13. * Platform : CORTEXM
  14. * Peripheral : generic
  15. * Dependencies :
  16. *
  17. * Autosar Version : 4.4.0
  18. * Autosar Revision : ASR_REL_4_4_REV_0000
  19. * Autosar Conf.Variant :
  20. * SW Version : 1.0.0
  21. * Build Version : S32K1_RTD_1_0_0_HF01_D2109_ASR_REL_4_4_REV_0000_20210907
  22. *
  23. * (c) Copyright 2020-2021 NXP Semiconductors
  24. * All Rights Reserved.
  25. ==================================================================================================*/
  26. /*==================================================================================================
  27. ==================================================================================================*/
  28. /**
  29. * @file Os_cfg.h
  30. */
  31. /**
  32. * @page misra_violations MISRA-C:2004 violations
  33. *
  34. * @section [global]
  35. * Violates MISRA 2004 Required Rule 5.1, Identifiers (internal and external) shall not rely
  36. * on the significance of more than 31 characters. The used compilers use more than 31 chars for
  37. * identifiers.
  38. */
  39. #ifndef OS_CFG_H
  40. #define OS_CFG_H
  41. #ifdef __cplusplus
  42. extern "C" {
  43. #endif
  44. /*==================================================================================================
  45. * INCLUDE FILES
  46. * 1) system and project includes
  47. * 2) needed interfaces from external units
  48. * 3) internal and external interfaces from this unit
  49. ==================================================================================================*/
  50. /**
  51. * @file Os_cfg.h
  52. * @brief Include Standard types & defines
  53. */
  54. #include "Std_Types.h"
  55. /*==================================================================================================
  56. * SOURCE FILE VERSION INFORMATION
  57. ==================================================================================================*/
  58. /**
  59. @{
  60. * @brief Parameters that shall be published within the Os_cfg header file.
  61. * The integration of incompatible files shall be avoided.
  62. */
  63. #define OS_CFG_VENDOR_ID 43
  64. #define OS_CFG_MODULE_ID 0x01
  65. #define OS_CFG_AR_RELEASE_MAJOR_VERSION_H 4
  66. #define OS_CFG_AR_RELEASE_MINOR_VERSION_H 4
  67. #define OS_CFG_AR_RELEASE_REVISION_VERSION_H 0
  68. #define OS_CFG_SW_MAJOR_VERSION_H 1
  69. #define OS_CFG_SW_MINOR_VERSION_H 0
  70. #define OS_CFG_SW_PATCH_VERSION_H 0
  71. /**@}*/
  72. /*==================================================================================================
  73. * FILE VERSION CHECKS
  74. ==================================================================================================*/
  75. #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
  76. /* Check if source file and Std_Types.h header file are of the same Autosar version */
  77. #if ((OS_CFG_AR_RELEASE_MAJOR_VERSION_H != STD_AR_RELEASE_MAJOR_VERSION) || \
  78. (OS_CFG_AR_RELEASE_MINOR_VERSION_H != STD_AR_RELEASE_MINOR_VERSION))
  79. #error "AutoSar Version Numbers of Os_cfg.h and Std_Types.h are different"
  80. #endif
  81. #endif
  82. /*==================================================================================================
  83. * CONSTANTS
  84. ==================================================================================================*/
  85. /*==================================================================================================
  86. * DEFINES AND MACROS
  87. ==================================================================================================*/
  88. #define OsCounter_0 0
  89. #define OS_TICKS2NS_OsCounter_0(x) 1000000000000U
  90. #define OS_TICKS2US_OsCounter_0(x) 1000000000U
  91. /*==================================================================================================
  92. * ENUMS
  93. ==================================================================================================*/
  94. /*==================================================================================================
  95. * STRUCTURES AND OTHER TYPEDEFS
  96. ==================================================================================================*/
  97. /*==================================================================================================
  98. * GLOBAL VARIABLE DECLARATIONS
  99. ==================================================================================================*/
  100. /*==================================================================================================
  101. * FUNCTION PROTOTYPES
  102. ==================================================================================================*/
  103. #ifdef __cplusplus
  104. }
  105. #endif
  106. #endif /* OS_CFG_H */
  107. /** @} */