OsIf_Cfg.c 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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. /**
  25. * @file OsIf_Cfg.c
  26. * @version 1.0.0
  27. *
  28. *
  29. * @addtogroup OSIF_DRIVER
  30. * @{
  31. */
  32. #ifdef __cplusplus
  33. extern "C"{
  34. #endif
  35. /**
  36. * @page misra_violations MISRA-C:2012 violations
  37. * @section [global]
  38. * Violates MISRA 2012 Required Rule 5.1, External identifiers shall be distinct.
  39. * The used compilers use more than 31 chars for identifiers.
  40. *
  41. * @section [global]
  42. * Violates MISRA 2012 Required Rule 5.2, Identifiers declared in the same scope and name space shall be distinct.
  43. * The used compilers use more than 31 chars for identifiers.
  44. *
  45. * @section [global]
  46. * Violates MISRA 2012 Required Rule 5.4, Macro identifiers shall be distinct.
  47. * The used compilers use more than 31 chars for identifiers.
  48. *
  49. * @section [global]
  50. * Violates MISRA 2012 Required Rule 5.5, Identifiers shall be distinct from macro names.
  51. * The used compilers use more than 31 chars for identifiers.
  52. *
  53. */
  54. /*==================================================================================================
  55. INCLUDE FILES
  56. 1) system and project includes
  57. 2) needed interfaces from external units
  58. 3) internal and external interfaces from this unit
  59. ==================================================================================================*/
  60. #include "OsIf_Cfg.h"
  61. #include "OsIf_Cfg_TypesDef.h"
  62. #if defined(USING_OS_AUTOSAROS)
  63. #include "Os.h"
  64. #endif /* defined(USING_OS_AUTOSAROS) */
  65. /*==================================================================================================
  66. * SOURCE FILE VERSION INFORMATION
  67. ==================================================================================================*/
  68. #define OSIF_CFG_VENDOR_ID_C 43
  69. #define OSIF_CFG_AR_RELEASE_MAJOR_VERSION_C 4
  70. #define OSIF_CFG_AR_RELEASE_MINOR_VERSION_C 4
  71. #define OSIF_CFG_AR_RELEASE_REVISION_VERSION_C 0
  72. #define OSIF_CFG_SW_MAJOR_VERSION_C 1
  73. #define OSIF_CFG_SW_MINOR_VERSION_C 0
  74. #define OSIF_CFG_SW_PATCH_VERSION_C 0
  75. /*==================================================================================================
  76. * FILE VERSION CHECKS
  77. ==================================================================================================*/
  78. /* Checks against OsIf_Cfg.h */
  79. #if (OSIF_CFG_VENDOR_ID_C != OSIF_CFG_VENDOR_ID)
  80. #error "OsIf_Cfg.c and OsIf_Cfg.h have different vendor ids"
  81. #endif
  82. #if ((OSIF_CFG_AR_RELEASE_MAJOR_VERSION_C != OSIF_CFG_AR_RELEASE_MAJOR_VERSION) || \
  83. (OSIF_CFG_AR_RELEASE_MINOR_VERSION_C != OSIF_CFG_AR_RELEASE_MINOR_VERSION) || \
  84. (OSIF_CFG_AR_RELEASE_REVISION_VERSION_C != OSIF_CFG_AR_RELEASE_REVISION_VERSION))
  85. #error "AUTOSAR Version Numbers of OsIf_Cfg.c and OsIf_Cfg.h are different"
  86. #endif
  87. #if ((OSIF_CFG_SW_MAJOR_VERSION_C != OSIF_CFG_SW_MAJOR_VERSION) || \
  88. (OSIF_CFG_SW_MINOR_VERSION_C != OSIF_CFG_SW_MINOR_VERSION) || \
  89. (OSIF_CFG_SW_PATCH_VERSION_C != OSIF_CFG_SW_PATCH_VERSION) \
  90. )
  91. #error "Software Version Numbers of OsIf_Cfg.c and OsIf_Cfg.h are different"
  92. #endif
  93. /* Checks against OsIf_Cfg_TypesDef.h */
  94. #if (OSIF_CFG_VENDOR_ID_C != OSIF_CFG_TYPESDEF_VENDOR_ID)
  95. #error "OsIf_Cfg.c and OsIf_Cfg_TypesDef.h have different vendor ids"
  96. #endif
  97. #if ((OSIF_CFG_AR_RELEASE_MAJOR_VERSION_C != OSIF_CFG_TYPESDEF_AR_RELEASE_MAJOR_VERSION) || \
  98. (OSIF_CFG_AR_RELEASE_MINOR_VERSION_C != OSIF_CFG_TYPESDEF_AR_RELEASE_MINOR_VERSION) || \
  99. (OSIF_CFG_AR_RELEASE_REVISION_VERSION_C != OSIF_CFG_TYPESDEF_AR_RELEASE_REVISION_VERSION))
  100. #error "AUTOSAR Version Numbers of OsIf_Cfg.c and OsIf_Cfg_TypesDef.h are different"
  101. #endif
  102. #if ((OSIF_CFG_SW_MAJOR_VERSION_C != OSIF_CFG_TYPESDEF_SW_MAJOR_VERSION) || \
  103. (OSIF_CFG_SW_MINOR_VERSION_C != OSIF_CFG_TYPESDEF_SW_MINOR_VERSION) || \
  104. (OSIF_CFG_SW_PATCH_VERSION_C != OSIF_CFG_TYPESDEF_SW_PATCH_VERSION) \
  105. )
  106. #error "Software Version Numbers of OsIf_Cfg.c and OsIf_Cfg_TypesDef.h are different"
  107. #endif
  108. /*==================================================================================================
  109. * DEFINES AND MACROS
  110. ==================================================================================================*/
  111. /*==================================================================================================
  112. * LOCAL VARIABLES
  113. ==================================================================================================*/
  114. /*==================================================================================================
  115. * STRUCTURES AND OTHER TYPEDEFS
  116. ==================================================================================================*/
  117. /*==================================================================================================
  118. * GLOBAL VARIABLES
  119. ==================================================================================================*/
  120. #define BASE_START_SEC_CONFIG_DATA_UNSPECIFIED
  121. #include "Base_MemMap.h"
  122. static const OsIf_ConfigType OsIf_xPredefinedConfig =
  123. {
  124. /*.counterId */ 0U,
  125. /*.counterFrequency */ 48000000U
  126. };
  127. #define BASE_STOP_SEC_CONFIG_DATA_UNSPECIFIED
  128. #include "Base_MemMap.h"
  129. #define BASE_START_SEC_CONFIG_DATA_UNSPECIFIED
  130. #include "Base_MemMap.h"
  131. const OsIf_ConfigType *const OsIf_apxPredefinedConfig[OSIF_MAX_COREIDX_SUPPORTED] =
  132. {
  133. &OsIf_xPredefinedConfig
  134. };
  135. #define BASE_STOP_SEC_CONFIG_DATA_UNSPECIFIED
  136. #include "Base_MemMap.h"
  137. /*==================================================================================================
  138. GLOBAL CONSTANTS
  139. ==================================================================================================*/
  140. /*==================================================================================================
  141. * FUNCTION PROTOTYPES
  142. ==================================================================================================*/
  143. #ifdef __cplusplus
  144. }
  145. #endif /* __cplusplus */
  146. /** @} */