modules.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  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 modules.h
  26. * @version 1.0.0
  27. *
  28. * @brief AUTOSAR Base - Project configuration.
  29. * @details Header file describing all Autosar MCAL modules present in the current project.
  30. *
  31. * @addtogroup BASE_COMPONENT
  32. * @{
  33. */
  34. /**
  35. * @file modules.h
  36. */
  37. /**
  38. * @page misra_violations MISRA-C:2012 violations
  39. *
  40. * @section modules_h_REF_1
  41. * Violates MISRA 2012 Advisory Rule 2.5, A project should not contain unused macro declaration.
  42. * Macro are required to make code easier in maintainability. Some macro are required by ASR even they are not use in MCAL layer
  43. */
  44. #ifndef MODULES_H
  45. #define MODULES_H
  46. #ifdef __cplusplus
  47. extern "C" {
  48. #endif
  49. /*==================================================================================================
  50. * INCLUDE FILES
  51. * 1) system and project includes
  52. * 2) needed interfaces from external units
  53. * 3) internal and external interfaces from this unit
  54. ==================================================================================================*/
  55. /**
  56. * @file modules.h
  57. * @brief Include Standard types & defines
  58. */
  59. #include "StandardTypes.h"
  60. /*==================================================================================================
  61. * SOURCE FILE VERSION INFORMATION
  62. ==================================================================================================*/
  63. /**
  64. @{
  65. * @brief Parameters that shall be published within the modules header file.
  66. * The integration of incompatible files shall be avoided.
  67. */
  68. /** @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.*/
  69. #define MODULES_VENDOR_ID 43
  70. /** @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.*/
  71. #define MODULES_MODULE_ID 0
  72. #define MODULES_AR_RELEASE_MAJOR_VERSION_H 4
  73. #define MODULES_AR_RELEASE_MINOR_VERSION_H 4
  74. /** @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.*/
  75. #define MODULES_AR_RELEASE_REVISION_VERSION_H 0
  76. /** @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.*/
  77. #define MODULES_SW_MAJOR_VERSION_H 1
  78. /** @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.*/
  79. #define MODULES_SW_MINOR_VERSION_H 0
  80. /** @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.*/
  81. #define MODULES_SW_PATCH_VERSION_H 0
  82. /**@}*/
  83. /*==================================================================================================
  84. * FILE VERSION CHECKS
  85. ==================================================================================================*/
  86. #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
  87. /* Check if source file and StandardTypes.h header file are of the same Autosar version */
  88. #if ((MODULES_AR_RELEASE_MAJOR_VERSION_H != STD_AR_RELEASE_MAJOR_VERSION) || \
  89. (MODULES_AR_RELEASE_MINOR_VERSION_H != STD_AR_RELEASE_MINOR_VERSION))
  90. #error "AutoSar Version Numbers of modules.h and StandardTypes.h are different"
  91. #endif
  92. #endif
  93. /*==================================================================================================
  94. * CONSTANTS
  95. ==================================================================================================*/
  96. /*==================================================================================================
  97. * DEFINES AND MACROS
  98. ==================================================================================================*/
  99. /**
  100. * @brief This constant used for other modules to check if ADC is present in the project.
  101. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  102. */
  103. #define USE_ADC_MODULE (STD_OFF)
  104. /**
  105. * @brief This constant used for other modules to check if CAN is present in the project.
  106. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  107. */
  108. #define USE_CAN_MODULE (STD_ON)
  109. /**
  110. * @brief This constant used for other modules to check if CAN_43_LLCE is present in the project.
  111. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  112. */
  113. #define USE_CAN_43_LLCE_MODULE (STD_OFF)
  114. /**
  115. * @brief This constant used for other modules to check if CRCU is present in the project.
  116. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  117. */
  118. #define USE_CRCU_MODULE (STD_OFF)
  119. /**
  120. * @brief This constant used for other modules to check if CRYPTO is present in the project.
  121. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  122. */
  123. #define USE_CRYPTO_MODULE (STD_OFF)
  124. /**
  125. * @brief This constant used for other modules to check if CSEC is present in the project.
  126. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  127. */
  128. #define USE_CSEC_MODULE (STD_OFF)
  129. /**
  130. * @brief This constant used for other modules to check if DIO is present in the project.
  131. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  132. */
  133. #define USE_DIO_MODULE (STD_ON)
  134. /**
  135. * @brief This constant used for other modules to check if EEP is present in the project.
  136. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  137. */
  138. #define USE_EEP_MODULE (STD_OFF)
  139. /**
  140. * @brief This constant used for other modules to check if ETH is present in the project.
  141. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  142. */
  143. #define USE_ETH_MODULE (STD_OFF)
  144. /**
  145. * @brief This constant used for other modules to check if FEE is present in the project.
  146. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  147. */
  148. #define USE_FEE_MODULE (STD_OFF)
  149. /**
  150. * @brief This constant used for other modules to check if FLS is present in the project.
  151. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  152. */
  153. #define USE_FLS_MODULE (STD_OFF)
  154. /**
  155. * @brief This constant used for other modules to check if Fr is present in the project.
  156. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  157. */
  158. #define USE_FR_MODULE (STD_OFF)
  159. /**
  160. * @brief This constant used for other modules to check if Fr_43_LLCE is present in the project.
  161. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  162. */
  163. #define USE_FR_43_LLCE_MODULE (STD_OFF)
  164. /**
  165. * @brief This constant used for other modules to check if GPT is present in the project.
  166. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  167. */
  168. #define USE_GPT_MODULE (STD_OFF)
  169. /**
  170. * @brief This constant used for other modules to check if I2C is present in the project.
  171. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  172. */
  173. #define USE_I2C_MODULE (STD_OFF)
  174. /**
  175. * @brief This constant used for other modules to check if ICU is present in the project.
  176. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  177. */
  178. #define USE_ICU_MODULE (STD_OFF)
  179. /**
  180. * @brief This constant used for other modules to check if LIN is present in the project.
  181. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  182. */
  183. #define USE_LIN_MODULE (STD_OFF)
  184. /**
  185. * @brief This constant used for other modules to check if Lin_43_LLCE is present in the project.
  186. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  187. */
  188. #define USE_LIN_43_LLCE_MODULE (STD_OFF)
  189. /**
  190. * @brief This constant used for other modules to check if MCEM is present in the project.
  191. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  192. */
  193. #define USE_MCEM_MODULE (STD_OFF)
  194. /**
  195. * @brief This constant used for other modules to check if MCEM is present in the project.
  196. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  197. */
  198. #define USE_MCL_MODULE (STD_ON)
  199. /**
  200. * @brief This constant used for other modules to check if MCU is present in the project.
  201. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  202. */
  203. #define USE_MCU_MODULE (STD_ON)
  204. /**
  205. * @brief This constant used for other modules to check if OCU is present in the project.
  206. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  207. */
  208. #define USE_OCU_MODULE (STD_OFF)
  209. /**
  210. * @brief This constant used for other modules to check if PORT is present in the project.
  211. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  212. */
  213. #define USE_PORT_MODULE (STD_ON)
  214. /**
  215. * @brief This constant used for other modules to check if PWM is present in the project.
  216. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  217. */
  218. #define USE_PWM_MODULE (STD_OFF)
  219. /**
  220. * @brief This constant used for other modules to check if SENT is present in the project.
  221. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  222. */
  223. #define USE_SENT_MODULE (STD_OFF)
  224. /**
  225. * @brief This constant used for other modules to check if SPI is present in the project.
  226. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  227. */
  228. #define USE_SPI_MODULE (STD_OFF)
  229. /**
  230. * @brief This constant used for other modules to check if WDG is present in the project.
  231. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  232. */
  233. #define USE_WDG_MODULE (STD_OFF)
  234. /**
  235. * @brief This constant used for other modules to check if WDG Instance 1 is present in the project.
  236. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  237. */
  238. #define USE_WDG_INSTANCE1 (STD_OFF)
  239. /**
  240. * @brief This constant used for other modules to check if WDG Instance 2 is present in the project.
  241. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  242. */
  243. #define USE_WDG_INSTANCE2 (STD_OFF)
  244. /**
  245. * @brief This constant used for other modules to check if WDG Instance 3 is present in the project.
  246. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  247. */
  248. #define USE_WDG_INSTANCE3 (STD_OFF)
  249. /**
  250. * @brief This constant used for other modules to check if WDG Instance 4 is present in the project.
  251. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  252. */
  253. #define USE_WDG_INSTANCE4 (STD_OFF)
  254. /**
  255. * @brief This constant used for other modules to check if WDG Instance 5 is present in the project.
  256. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  257. */
  258. #define USE_WDG_INSTANCE5 (STD_OFF)
  259. /**
  260. * @brief This constant used for other modules to check if WDG Instance 6 is present in the project.
  261. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  262. */
  263. #define USE_WDG_INSTANCE6 (STD_OFF)
  264. /**
  265. * @brief This constant used for other modules to check if WDG Instance 7 is present in the project.
  266. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  267. */
  268. #define USE_WDG_INSTANCE7 (STD_OFF)
  269. /**
  270. * @brief This constant used for other modules to check if WDG Instance 8 is present in the project.
  271. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  272. */
  273. #define USE_WDG_INSTANCE8 (STD_OFF)
  274. /**
  275. * @brief This constant used for other modules to check if WDG Instance 9 is present in the project.
  276. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  277. */
  278. #define USE_WDG_INSTANCE9 (STD_OFF)
  279. /**
  280. * @brief This constant used for other modules to check if WDG Instance 10 is present in the project.
  281. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  282. */
  283. #define USE_WDG_INSTANCE10 (STD_OFF)
  284. /**
  285. * @brief This constant used for other modules to check if WDG for chip vr5510 is present in the project.
  286. * @violates @ref modules_h_REF_1 MISRA 2012 Advisory Rule 2.5, unused macro.
  287. */
  288. #define USE_WDG_43_VR5510_MODULE (STD_OFF)
  289. /*==================================================================================================
  290. * ENUMS
  291. ==================================================================================================*/
  292. /*==================================================================================================
  293. * STRUCTURES AND OTHER TYPEDEFS
  294. ==================================================================================================*/
  295. /*==================================================================================================
  296. * GLOBAL VARIABLE DECLARATIONS
  297. ==================================================================================================*/
  298. /*==================================================================================================
  299. * FUNCTION PROTOTYPES
  300. ==================================================================================================*/
  301. #ifdef __cplusplus
  302. }
  303. #endif
  304. #endif /* MODULES_H */
  305. /** @} */