Wdg_Ipw_Cfg_Defines.h 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. /*==================================================================================================
  2. * Project : RTD AUTOSAR 4.4
  3. * Platform : CORTEXM
  4. * Peripheral : Wdog,Ewm
  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 WDG_IPW_CFG_DEFINES_H
  25. #define WDG_IPW_CFG_DEFINES_H
  26. /**
  27. * @file
  28. *
  29. * @addtogroup Wdg
  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 "Wdog_Ip_Cfg_Defines.h"
  42. #include "Ewm_Ip_Cfg_Defines.h"
  43. /*==================================================================================================
  44. SOURCE FILE VERSION INFORMATION
  45. ==================================================================================================*/
  46. #define WDG_IPW_CFG_DEFINES_VENDOR_ID 43
  47. #define WDG_IPW_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION 4
  48. #define WDG_IPW_CFG_DEFINES_AR_RELEASE_MINOR_VERSION 4
  49. #define WDG_IPW_CFG_DEFINES_AR_RELEASE_REVISION_VERSION 0
  50. #define WDG_IPW_CFG_DEFINES_SW_MAJOR_VERSION 1
  51. #define WDG_IPW_CFG_DEFINES_SW_MINOR_VERSION 0
  52. #define WDG_IPW_CFG_DEFINES_SW_PATCH_VERSION 0
  53. /*==================================================================================================
  54. FILE VERSION CHECKS
  55. ==================================================================================================*/
  56. #if (WDG_IPW_CFG_DEFINES_VENDOR_ID != WDOG_IP_CFG_DEFINES_VENDOR_ID)
  57. #error "Wdg_Ipw_Cfg_Defines.h and Wdog_Ip_Cfg_Defines.h have different vendor ids"
  58. #endif
  59. /* Check if current file and Wdog_Ip_Cfg_Defines header file are of the same Autosar version */
  60. #if ((WDG_IPW_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION != WDOG_IP_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION) || \
  61. (WDG_IPW_CFG_DEFINES_AR_RELEASE_MINOR_VERSION != WDOG_IP_CFG_DEFINES_AR_RELEASE_MINOR_VERSION) || \
  62. (WDG_IPW_CFG_DEFINES_AR_RELEASE_REVISION_VERSION != WDOG_IP_CFG_DEFINES_AR_RELEASE_REVISION_VERSION))
  63. #error "AutoSar Version Numbers of Wdg_Ipw_Cfg_Defines.h and Wdog_Ip_Cfg_Defines.h are different"
  64. #endif
  65. /* Check if current file and Wdog_Ip_Cfg_Defines header file are of the same software version */
  66. #if ((WDG_IPW_CFG_DEFINES_SW_MAJOR_VERSION != WDOG_IP_CFG_DEFINES_SW_MAJOR_VERSION) || \
  67. (WDG_IPW_CFG_DEFINES_SW_MINOR_VERSION != WDOG_IP_CFG_DEFINES_SW_MINOR_VERSION) || \
  68. (WDG_IPW_CFG_DEFINES_SW_PATCH_VERSION != WDOG_IP_CFG_DEFINES_SW_PATCH_VERSION))
  69. #error "Software Version Numbers of Wdg_Ipw_Cfg_Defines.h and Wdog_Ip_Cfg_Defines.h are different"
  70. #endif
  71. #if (WDG_IPW_CFG_DEFINES_VENDOR_ID != EWM_IP_CFG_DEFINES_VENDOR_ID)
  72. #error "Wdg_Ipw_Cfg_Defines.h and Ewm_Ip_Cfg_Defines.h have different vendor ids"
  73. #endif
  74. /* Check if current file and Ewm_Ip_Cfg_Defines header file are of the same Autosar version */
  75. #if ((WDG_IPW_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION != EWM_IP_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION) || \
  76. (WDG_IPW_CFG_DEFINES_AR_RELEASE_MINOR_VERSION != EWM_IP_CFG_DEFINES_AR_RELEASE_MINOR_VERSION) || \
  77. (WDG_IPW_CFG_DEFINES_AR_RELEASE_REVISION_VERSION != EWM_IP_CFG_DEFINES_AR_RELEASE_REVISION_VERSION))
  78. #error "AutoSar Version Numbers of Wdg_Ipw_Cfg_Defines.h and Ewm_Ip_Cfg_Defines.h are different"
  79. #endif
  80. /* Check if current file and Ewm_Ip_Cfg_Defines header file are of the same software version */
  81. #if ((WDG_IPW_CFG_DEFINES_SW_MAJOR_VERSION != EWM_IP_CFG_DEFINES_SW_MAJOR_VERSION) || \
  82. (WDG_IPW_CFG_DEFINES_SW_MINOR_VERSION != EWM_IP_CFG_DEFINES_SW_MINOR_VERSION) || \
  83. (WDG_IPW_CFG_DEFINES_SW_PATCH_VERSION != EWM_IP_CFG_DEFINES_SW_PATCH_VERSION))
  84. #error "Software Version Numbers of Wdg_Ipw_Cfg_Defines.h and Ewm_Ip_Cfg_Defines.h are different"
  85. #endif
  86. /*==================================================================================================
  87. * CONSTANTS
  88. ==================================================================================================*/
  89. /*==================================================================================================
  90. * DEFINES AND MACROS
  91. ==================================================================================================*/
  92. /**
  93. * @brief This constant specifies if the instance of the WDG is selected or not
  94. */
  95. #define WDG_IPW_ENABLE_INSTANCE0 (WDOG_IP_ENABLE)
  96. #define WDG_IPW_ENABLE_INSTANCE1 (EWM_IP_ENABLE)
  97. /**
  98. * @brief This constant specifies the hardware used or not.
  99. */
  100. #define WDOG_IP_USED (STD_ON)
  101. #define EWM_IP_USED (STD_ON)
  102. /**
  103. * @brief Compile switch to allow/forbid disabling the watchdog driver during runtime
  104. */
  105. #define WDG_IPW_DEINIT (WDOG_IP_DEINIT)
  106. /**
  107. * @brief Defines indicating for which Wdg instances the ISR for is supported
  108. */
  109. #define WDG_IPW_ISR0_USED (WDOG_IP_ISR0_USED)
  110. #define WDG_IPW_ISR1_USED (EWM_IP_ISR0_USED)
  111. /**
  112. * @brief Defines indicating for which Wdg instances the Direct Service Mode is supported
  113. */
  114. #define WDG_IPW_ENABLE_DIRECT_SERVICE_INSTANCE0 (STD_OFF)
  115. #define WDG_IPW_ENABLE_DIRECT_SERVICE_INSTANCE1 (STD_OFF)
  116. /**
  117. * @brief This variable will indicate if the Wdg Direct Service feature is activated
  118. */
  119. #define WDG_IPW_DIRECT_SERVICE (STD_OFF)
  120. /**
  121. * @brief These variables will indicate the Wdg Initial Timeout and Wdg Max Timeout parameters in miliseconds for Wdg module 0
  122. */
  123. #define WDG_IPW_INSTANCE0_INITIAL_TIMEOUT_U16 ((uint16)200)
  124. #define WDG_IPW_INSTANCE0_MAX_TIMEOUT_U16 ((uint16)10000)
  125. /**
  126. * @brief These variables will indicate the Wdg Initial Timeout and Wdg Max Timeout parameters in miliseconds for Wdg module 1
  127. */
  128. #define WDG_IPW_INSTANCE1_INITIAL_TIMEOUT_U16 ((uint16)1)
  129. #define WDG_IPW_INSTANCE1_MAX_TIMEOUT_U16 ((uint16)10)
  130. /*==================================================================================================
  131. LOCAL CONSTANTS
  132. ==================================================================================================*/
  133. /*==================================================================================================
  134. LOCAL VARIABLES
  135. ==================================================================================================*/
  136. /*==================================================================================================
  137. GLOBAL CONSTANTS
  138. ==================================================================================================*/
  139. /*==================================================================================================
  140. GLOBAL VARIABLES
  141. ==================================================================================================*/
  142. /*==================================================================================================
  143. LOCAL FUNCTION PROTOTYPES
  144. ==================================================================================================*/
  145. /*==================================================================================================
  146. LOCAL FUNCTIONS
  147. ==================================================================================================*/
  148. /*==================================================================================================
  149. GLOBAL FUNCTIONS
  150. ==================================================================================================*/
  151. #ifdef __cplusplus
  152. }
  153. #endif
  154. /** @} */
  155. #endif /* WDG_IPW_CFG_DEFINES_H */