Wdg_43_Instance0_VS_0_PBcfg.c 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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. /**
  25. * @file
  26. *
  27. * @addtogroup Wdg
  28. * @{
  29. */
  30. #ifdef __cplusplus
  31. extern "C"{
  32. #endif
  33. /*==================================================================================================
  34. * INCLUDE FILES
  35. * 1) system and project includes
  36. * 2) needed interfaces from external units
  37. * 3) internal and external interfaces from this unit
  38. ==================================================================================================*/
  39. #include "Wdg_Cfg.h"
  40. #include "Wdg_CfgExt.h"
  41. #ifdef WDG_INSTANCE0
  42. #if (WDG_INSTANCE0 == STD_ON)
  43. /*==================================================================================================
  44. * SOURCE FILE VERSION INFORMATION
  45. ==================================================================================================*/
  46. #define WDG_VENDOR_ID_VS_0_PBCFG_C 43
  47. #define WDG_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_C 4
  48. #define WDG_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_C 4
  49. #define WDG_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_C 0
  50. #define WDG_SW_MAJOR_VERSION_VS_0_PBCFG_C 1
  51. #define WDG_SW_MINOR_VERSION_VS_0_PBCFG_C 0
  52. #define WDG_SW_PATCH_VERSION_VS_0_PBCFG_C 0
  53. /*==================================================================================================
  54. * FILE VERSION CHECKS
  55. ==================================================================================================*/
  56. /* Check if current file and WDG configuration header file are of the same vendor */
  57. #if (WDG_VENDOR_ID_VS_0_PBCFG_C != WDG_VENDOR_ID_CFG)
  58. #error "Wdg_43_Instance0_VS_0_PBcfg.c and Wdg_Cfg.h have different vendor ids"
  59. #endif
  60. /* Check if current file and Wdg_Cfg header file are of the same Autosar version */
  61. #if ((WDG_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_C != WDG_AR_RELEASE_MAJOR_VERSION_CFG) || \
  62. (WDG_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_C != WDG_AR_RELEASE_MINOR_VERSION_CFG) || \
  63. (WDG_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_C != WDG_AR_RELEASE_REVISION_VERSION_CFG))
  64. #error "AutoSar Version Numbers of Wdg_43_Instance0_VS_0_PBcfg.c and Wdg_Cfg.h are different"
  65. #endif
  66. /* Check if current file and Wdg_Cfg header file are of the same software version */
  67. #if ((WDG_SW_MAJOR_VERSION_VS_0_PBCFG_C != WDG_SW_MAJOR_VERSION_CFG) || \
  68. (WDG_SW_MINOR_VERSION_VS_0_PBCFG_C != WDG_SW_MINOR_VERSION_CFG) || \
  69. (WDG_SW_PATCH_VERSION_VS_0_PBCFG_C != WDG_SW_PATCH_VERSION_CFG))
  70. #error "Software Version Numbers of Wdg_43_Instance0_VS_0_PBcfg.c and Wdg_Cfg.h are different"
  71. #endif
  72. /* Check if current file and Wdg_CfgExt header file are of the same vendor */
  73. #if (WDG_VENDOR_ID_VS_0_PBCFG_C != WDG_VENDOR_ID_CFG_EXT)
  74. #error "Wdg_43_Instance0_VS_0_PBcfg.c and Wdg_CfgExt.h have different vendor ids"
  75. #endif
  76. #if ((WDG_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_C != WDG_AR_RELEASE_MAJOR_VERSION_CFG_EXT) || \
  77. (WDG_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_C != WDG_AR_RELEASE_MINOR_VERSION_CFG_EXT) || \
  78. (WDG_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_C != WDG_AR_RELEASE_REVISION_VERSION_CFG_EXT))
  79. #error "AutoSar Version Numbers of Wdg_43_Instance0_VS_0_PBcfg.c and Wdg_CfgExt.h are different"
  80. #endif
  81. #if ((WDG_SW_MAJOR_VERSION_VS_0_PBCFG_C != WDG_SW_MAJOR_VERSION_CFG_EXT) || \
  82. (WDG_SW_MINOR_VERSION_VS_0_PBCFG_C != WDG_SW_MINOR_VERSION_CFG_EXT) || \
  83. (WDG_SW_PATCH_VERSION_VS_0_PBCFG_C != WDG_SW_PATCH_VERSION_CFG_EXT))
  84. #error "Software Version Numbers of Wdg_43_Instance0_VS_0_PBcfg.c and Wdg_CfgExt.h are different"
  85. #endif
  86. /*==================================================================================================
  87. * LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS)
  88. ==================================================================================================*/
  89. /*==================================================================================================
  90. * LOCAL MACROS
  91. ==================================================================================================*/
  92. /*==================================================================================================
  93. * LOCAL CONSTANTS
  94. ==================================================================================================*/
  95. #define WDG_START_SEC_CONFIG_DATA_UNSPECIFIED
  96. #include "Wdg_MemMap.h"
  97. static const Wdg_ModeType Wdg_OffModeSettings_0_VS_0=
  98. {
  99. (uint32) 0,
  100. &Wdg_Ipw_OffModeSettings_0_VS_0
  101. };
  102. static const Wdg_ModeType Wdg_SlowModeSettings_0_VS_0=
  103. {
  104. (uint32) 0x1e8480,
  105. &Wdg_Ipw_SlowModeSettings_0_VS_0
  106. };
  107. static const Wdg_ModeType Wdg_FastModeSettings_0_VS_0=
  108. {
  109. (uint32) 0x1e8480,
  110. &Wdg_Ipw_FastModeSettings_0_VS_0
  111. };
  112. #define WDG_STOP_SEC_CONFIG_DATA_UNSPECIFIED
  113. #include "Wdg_MemMap.h"
  114. /*==================================================================================================
  115. * LOCAL VARIABLES
  116. ==================================================================================================*/
  117. /*==================================================================================================
  118. * GLOBAL FUNCTIONS
  119. ==================================================================================================*/
  120. /*==================================================================================================
  121. * GLOBAL CONSTANTS
  122. ==================================================================================================*/
  123. #define WDG_START_SEC_CONFIG_DATA_UNSPECIFIED
  124. #include "Wdg_MemMap.h"
  125. const Wdg_ConfigType Wdg_Config_0_VS_0=
  126. {
  127. WDGIF_SLOW_MODE,
  128. WDG_IPW_INSTANCE0,
  129. #if (WDG_DIRECT_SERVICE == STD_OFF)
  130. (Gpt_ChannelType)GptConf_GptChannelConfiguration_GptChannelConfiguration_0,
  131. (uint32)8000,
  132. #endif
  133. {&Wdg_OffModeSettings_0_VS_0, &Wdg_SlowModeSettings_0_VS_0, &Wdg_FastModeSettings_0_VS_0}
  134. };
  135. #define WDG_STOP_SEC_CONFIG_DATA_UNSPECIFIED
  136. #include "Wdg_MemMap.h"
  137. /*==================================================================================================
  138. * GLOBAL VARIABLES
  139. ==================================================================================================*/
  140. /*==================================================================================================
  141. * LOCAL FUNCTION PROTOTYPES
  142. ==================================================================================================*/
  143. /*==================================================================================================
  144. * LOCAL FUNCTIONS
  145. ==================================================================================================*/
  146. #endif /* #if WDG_INSTANCE'0 == STD_ON */
  147. #ifdef __cplusplus
  148. }
  149. #endif
  150. #endif
  151. /** @} */