Clock_Ip_Cfg_Defines.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  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. /**
  25. * @file Clock_Ip_Cfg_Defines.h
  26. * @version 1.0.0
  27. *
  28. * @brief AUTOSAR Mcu - Post-Build(PB) configuration file code template.
  29. * @details Code template for Post-Build(PB) configuration file generation.
  30. *
  31. * @addtogroup CLOCK_DRIVER_CONFIGURATION Clock Ip Driver
  32. * @{
  33. */
  34. #ifndef CLOCK_IP_CFG_DEFINES_H
  35. #define CLOCK_IP_CFG_DEFINES_H
  36. #ifdef __cplusplus
  37. extern "C"{
  38. #endif
  39. /*==================================================================================================
  40. INCLUDE FILES
  41. 1) system and project includes
  42. 2) needed interfaces from external units
  43. 3) internal and external interfaces from this unit
  44. ==================================================================================================*/
  45. /*==================================================================================================
  46. SOURCE FILE VERSION INFORMATION
  47. ==================================================================================================*/
  48. #define CLOCK_IP_CFG_DEFINES_VENDOR_ID 43
  49. #define CLOCK_IP_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION 4
  50. #define CLOCK_IP_CFG_DEFINES_AR_RELEASE_MINOR_VERSION 4
  51. #define CLOCK_IP_CFG_DEFINES_AR_RELEASE_REVISION_VERSION 0
  52. #define CLOCK_IP_CFG_DEFINES_SW_MAJOR_VERSION 1
  53. #define CLOCK_IP_CFG_DEFINES_SW_MINOR_VERSION 0
  54. #define CLOCK_IP_CFG_DEFINES_SW_PATCH_VERSION 0
  55. /*==================================================================================================
  56. DEFINES AND MACROS
  57. ==================================================================================================*/
  58. /**
  59. * @brief Derivative used.
  60. */
  61. #define CLOCK_IP_S32K144
  62. /**
  63. * @brief HW sseries used.
  64. */
  65. #define CLOCK_IP_S32K1
  66. /**
  67. * @brief Max number of internal oscillators
  68. */
  69. #define FEATURE_CLOCK_IRCOSCS_COUNT (2U)
  70. /**
  71. * @brief Max number of external oscillators
  72. */
  73. #define FEATURE_CLOCK_XOSCS_COUNT (1U)
  74. /**
  75. * @brief Max number of pll devices
  76. */
  77. #define FEATURE_CLOCK_PLLS_COUNT (1U)
  78. /**
  79. * @brief Max number of selectors
  80. */
  81. #define FEATURE_CLOCK_SELECTORS_COUNT (28U)
  82. /**
  83. * @brief Max number of dividers
  84. */
  85. #define FEATURE_CLOCK_DIVIDERS_COUNT (20U)
  86. /**
  87. * @brief Max number of divider triggers
  88. */
  89. #define FEATURE_CLOCK_DIVIDER_TRIGGERS_COUNT (0U)
  90. /**
  91. * @brief Max number of fractional dividers
  92. */
  93. #define FEATURE_CLOCK_FRACTIONAL_DIVIDERS_COUNT (0U)
  94. /**
  95. * @brief Max number of external clocks
  96. */
  97. #define FEATURE_CLOCK_EXT_CLKS_COUNT (4U)
  98. /**
  99. * @brief Max number of pcfs
  100. */
  101. #define FEATURE_CLOCK_PCFS_COUNT (0U)
  102. /**
  103. * @brief Max number of clock gates
  104. */
  105. #define FEATURE_CLOCK_GATES_COUNT (40U)
  106. /**
  107. * @brief Max number of clock monitoring units
  108. */
  109. #define FEATURE_CLOCK_CMUS_COUNT (0U)
  110. /**
  111. * @brief Max number of configured frequencies values
  112. */
  113. #define FEATURE_CLOCK_CONFIGURED_FREQUENCIES_COUNT (0U)
  114. /**
  115. * @brief Max number of specific peripheral (eMIOS) units
  116. */
  117. #define FEATURE_CLOCK_SPECIFIC_PERIPH_COUNT (0U)
  118. /**
  119. * @brief Max number of consumer clocks
  120. */
  121. #define FEATURE_CLOCK_CONSUMER_COUNT (39U)
  122. /**
  123. * @brief Supported power mode.
  124. */
  125. #define FEATURE_CLOCK_IP_HAS_RUN_MODE 0U
  126. #define FEATURE_CLOCK_IP_LPO_128K_FREQUENCY 128000
  127. #define FEATURE_CLOCK_IP_FIRC_FREQUENCY 48000000
  128. #define FEATURE_CLOCK_IP_SIRC_FREQUENCY 8000000
  129. #define FEATURE_CLOCK_IP_DEFAULT_SOSC_FREQUENCY 40000000
  130. #define FEATURE_CLOCK_IP_HAS_LOW_GAIN 0U
  131. #define FEATURE_CLOCK_IP_HAS_HIGH_GAIN 1U
  132. #define FEATURE_CLOCK_IP_HAS_MONITOR_DISABLE 0U
  133. #define FEATURE_CLOCK_IP_HAS_MONITOR_INT 1U
  134. #define FEATURE_CLOCK_IP_HAS_MONITOR_RESET 2U
  135. #define FEATURE_CLOCK_IP_HAS_SAFE_CLOCK_DISABLEMENT 1U
  136. #if FEATURE_CLOCK_CMUS_COUNT > 0U
  137. /**
  138. * @brief Cmu formula constant values.
  139. */
  140. #define FEATURE_OFFSET_REFERENCE_COUNT_FORMULA1 1U
  141. #define FEATURE_MULTIPLIER_REFERENCE_COUNT_FORMULA1 3U
  142. #define FEATURE_OFFSET_REFERENCE_COUNT_FORMULA2 7U
  143. #define FEATURE_MULTIPLIER_REFERENCE_COUNT_FORMULA2 3U
  144. #endif
  145. /**
  146. * @brief Clock ip supports clock frequency
  147. */
  148. #define CLOCK_IP_GET_FREQUENCY_API (STD_OFF)
  149. /**
  150. * @brief Clock ip supports ram wait states
  151. */
  152. /**
  153. * @brief Clock ip supports flash wait states
  154. */
  155. /**
  156. * @brief Supported clocks.
  157. */
  158. #define FEATURE_CLOCK_IP_HAS_LPO_128K_CLK 1U
  159. #define FEATURE_CLOCK_IP_HAS_SIRC_CLK 2U
  160. #define FEATURE_CLOCK_IP_HAS_SIRC_VLP_CLK 3U
  161. #define FEATURE_CLOCK_IP_HAS_SIRC_STOP_CLK 4U
  162. #define FEATURE_CLOCK_IP_HAS_FIRC_CLK 5U
  163. #define FEATURE_CLOCK_IP_HAS_FIRC_VLP_CLK 6U
  164. #define FEATURE_CLOCK_IP_HAS_FIRC_STOP_CLK 7U
  165. #define FEATURE_CLOCK_IP_HAS_SOSC_CLK 8U
  166. #define FEATURE_CLOCK_IP_HAS_SPLL_CLK 9U
  167. #define FEATURE_CLOCK_IP_HAS_SIRCDIV1_CLK 10U
  168. #define FEATURE_CLOCK_IP_HAS_SIRCDIV2_CLK 11U
  169. #define FEATURE_CLOCK_IP_HAS_FIRCDIV1_CLK 12U
  170. #define FEATURE_CLOCK_IP_HAS_FIRCDIV2_CLK 13U
  171. #define FEATURE_CLOCK_IP_HAS_SOSCDIV1_CLK 14U
  172. #define FEATURE_CLOCK_IP_HAS_SOSCDIV2_CLK 15U
  173. #define FEATURE_CLOCK_IP_HAS_SPLLDIV1_CLK 16U
  174. #define FEATURE_CLOCK_IP_HAS_SPLLDIV2_CLK 17U
  175. #define FEATURE_CLOCK_IP_HAS_LPO_32K_CLK 18U
  176. #define FEATURE_CLOCK_IP_HAS_LPO_1K_CLK 19U
  177. #define FEATURE_CLOCK_IP_HAS_TCLK0_REF_CLK 20U
  178. #define FEATURE_CLOCK_IP_HAS_TCLK1_REF_CLK 21U
  179. #define FEATURE_CLOCK_IP_HAS_TCLK2_REF_CLK 22U
  180. #define FEATURE_CLOCK_IP_HAS_RTC_CLKIN 23U
  181. #define FEATURE_CLOCK_IP_HAS_SCS_CLK 24U
  182. #define FEATURE_CLOCK_IP_HAS_SCS_RUN_CLK 25U
  183. #define FEATURE_CLOCK_IP_HAS_SCS_VLPR_CLK 26U
  184. #define FEATURE_CLOCK_IP_HAS_SCS_HSRUN_CLK 27U
  185. #define FEATURE_CLOCK_IP_HAS_CORE_CLK 28U
  186. #define FEATURE_CLOCK_IP_HAS_CORE_RUN_CLK 29U
  187. #define FEATURE_CLOCK_IP_HAS_CORE_VLPR_CLK 30U
  188. #define FEATURE_CLOCK_IP_HAS_CORE_HSRUN_CLK 31U
  189. #define FEATURE_CLOCK_IP_HAS_BUS_CLK 32U
  190. #define FEATURE_CLOCK_IP_HAS_BUS_RUN_CLK 33U
  191. #define FEATURE_CLOCK_IP_HAS_BUS_VLPR_CLK 34U
  192. #define FEATURE_CLOCK_IP_HAS_BUS_HSRUN_CLK 35U
  193. #define FEATURE_CLOCK_IP_HAS_SLOW_CLK 36U
  194. #define FEATURE_CLOCK_IP_HAS_SLOW_RUN_CLK 37U
  195. #define FEATURE_CLOCK_IP_HAS_SLOW_VLPR_CLK 38U
  196. #define FEATURE_CLOCK_IP_HAS_SLOW_HSRUN_CLK 39U
  197. #define FEATURE_CLOCK_IP_HAS_RTC_CLK 40U
  198. #define FEATURE_CLOCK_IP_HAS_LPO_CLK 41U
  199. #define FEATURE_CLOCK_IP_HAS_SCG_CLKOUT_CLK 42U
  200. #define FEATURE_CLOCK_IP_HAS_FTM0_EXT_CLK 43U
  201. #define FEATURE_CLOCK_IP_HAS_FTM1_EXT_CLK 44U
  202. #define FEATURE_CLOCK_IP_HAS_FTM2_EXT_CLK 45U
  203. #define FEATURE_CLOCK_IP_HAS_FTM3_EXT_CLK 46U
  204. #define FEATURE_CLOCK_PRODUCERS_NO 46U
  205. #define FEATURE_CLOCK_IP_HAS_ADC0_CLK 48U
  206. #define FEATURE_CLOCK_IP_HAS_ADC1_CLK 49U
  207. #define FEATURE_CLOCK_IP_HAS_CLKOUT0_CLK 50U
  208. #define FEATURE_CLOCK_IP_HAS_CMP0_CLK 51U
  209. #define FEATURE_CLOCK_IP_HAS_CRC0_CLK 52U
  210. #define FEATURE_CLOCK_IP_HAS_DMA0_CLK 53U
  211. #define FEATURE_CLOCK_IP_HAS_DMAMUX0_CLK 54U
  212. #define FEATURE_CLOCK_IP_HAS_EIM0_CLK 55U
  213. #define FEATURE_CLOCK_IP_HAS_ERM0_CLK 56U
  214. #define FEATURE_CLOCK_IP_HAS_EWM0_CLK 57U
  215. #define FEATURE_CLOCK_IP_HAS_FLEXCAN0_CLK 58U
  216. #define FEATURE_CLOCK_IP_HAS_FLEXCAN1_CLK 59U
  217. #define FEATURE_CLOCK_IP_HAS_FLEXCAN2_CLK 60U
  218. #define FEATURE_CLOCK_IP_HAS_FlexIO_CLK 61U
  219. #define FEATURE_CLOCK_IP_HAS_FTFC_CLK 62U
  220. #define FEATURE_CLOCK_IP_HAS_FTM0_CLK 63U
  221. #define FEATURE_CLOCK_IP_HAS_FTM1_CLK 64U
  222. #define FEATURE_CLOCK_IP_HAS_FTM2_CLK 65U
  223. #define FEATURE_CLOCK_IP_HAS_FTM3_CLK 66U
  224. #define FEATURE_CLOCK_IP_HAS_LPI2C0_CLK 67U
  225. #define FEATURE_CLOCK_IP_HAS_LPIT0_CLK 68U
  226. #define FEATURE_CLOCK_IP_HAS_LPSPI0_CLK 69U
  227. #define FEATURE_CLOCK_IP_HAS_LPSPI1_CLK 70U
  228. #define FEATURE_CLOCK_IP_HAS_LPSPI2_CLK 71U
  229. #define FEATURE_CLOCK_IP_HAS_LPTMR0_CLK 72U
  230. #define FEATURE_CLOCK_IP_HAS_LPUART0_CLK 73U
  231. #define FEATURE_CLOCK_IP_HAS_LPUART1_CLK 74U
  232. #define FEATURE_CLOCK_IP_HAS_LPUART2_CLK 75U
  233. #define FEATURE_CLOCK_IP_HAS_MPU0_CLK 76U
  234. #define FEATURE_CLOCK_IP_HAS_MSCM0_CLK 77U
  235. #define FEATURE_CLOCK_IP_HAS_PDB0_CLK 78U
  236. #define FEATURE_CLOCK_IP_HAS_PDB1_CLK 79U
  237. #define FEATURE_CLOCK_IP_HAS_PORTA_CLK 80U
  238. #define FEATURE_CLOCK_IP_HAS_PORTB_CLK 81U
  239. #define FEATURE_CLOCK_IP_HAS_PORTC_CLK 82U
  240. #define FEATURE_CLOCK_IP_HAS_PORTD_CLK 83U
  241. #define FEATURE_CLOCK_IP_HAS_PORTE_CLK 84U
  242. #define FEATURE_CLOCK_IP_HAS_RTC0_CLK 85U
  243. #define FEATURE_CLOCK_IP_HAS_TRACE_CLK 86U
  244. #define FEATURE_CLOCKS_NO 87U
  245. /*==================================================================================================
  246. ENUMS
  247. ==================================================================================================*/
  248. /*==================================================================================================
  249. STRUCTURES AND OTHER TYPEDEFS
  250. ==================================================================================================*/
  251. #ifdef __cplusplus
  252. }
  253. #endif
  254. #endif /* #ifndef CLOCK_IP_CFG_DEFINES_H */
  255. /** @} */