Ftfc_Eep_Ip_Cfg.h 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. /*==================================================================================================
  2. * Project : RTD AUTOSAR 4.4
  3. * Platform : CORTEXM
  4. * Peripheral : IPV_FTFC
  5. * Dependencies :
  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 FTFC_EEP_IP_CFG_H
  25. #define FTFC_EEP_IP_CFG_H
  26. /**
  27. * @file Ftfc_Eep_Ip_Cfg.h
  28. *
  29. * @addtogroup FTFC_EEP_IP
  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 "S32K146_FTFC.h"
  42. #include "S32K146_SIM.h"
  43. #include "Ftfc_Eep_Ip_VS_0_PBcfg.h"
  44. #include "Ftfc_Eep_Ip_Types.h"
  45. /*==================================================================================================
  46. * SOURCE FILE VERSION INFORMATION
  47. ==================================================================================================*/
  48. #define FTFC_EEP_IP_CFG_VENDOR_ID_H 43
  49. #define FTFC_EEP_IP_CFG_AR_RELEASE_MAJOR_VERSION_H 4
  50. #define FTFC_EEP_IP_CFG_AR_RELEASE_MINOR_VERSION_H 4
  51. #define FTFC_EEP_IP_CFG_AR_RELEASE_REVISION_VERSION_H 0
  52. #define FTFC_EEP_IP_CFG_SW_MAJOR_VERSION_H 1
  53. #define FTFC_EEP_IP_CFG_SW_MINOR_VERSION_H 0
  54. #define FTFC_EEP_IP_CFG_SW_PATCH_VERSION_H 0
  55. /*==================================================================================================
  56. * FILE VERSION CHECKS
  57. ==================================================================================================*/
  58. /* Version checks for Ftfc_Eep_Ip_VS_#_PBcfg.h */
  59. #if (FTFC_EEP_IP_CFG_VENDOR_ID_H != FTFC_EEP_IP_VS_0_PBCFG_VENDOR_ID_H)
  60. #error "Ftfc_Eep_Ip.h and Ftfc_Eep_Ip_VS_0_PBcfg.h have different vendor IDs!"
  61. #endif
  62. #if ((FTFC_EEP_IP_CFG_AR_RELEASE_MAJOR_VERSION_H != FTFC_EEP_IP_VS_0_PBCFG_AR_RELEASE_MAJOR_VERSION_H) || \
  63. (FTFC_EEP_IP_CFG_AR_RELEASE_MINOR_VERSION_H != FTFC_EEP_IP_VS_0_PBCFG_AR_RELEASE_MINOR_VERSION_H) || \
  64. (FTFC_EEP_IP_CFG_AR_RELEASE_REVISION_VERSION_H != FTFC_EEP_IP_VS_0_PBCFG_AR_RELEASE_REVISION_VERSION_H) \
  65. )
  66. #error "Ftfc_Eep_Ip.h and Ftfc_Eep_Ip_VS_0_PBcfg.h are for different AUTOSAR versions!"
  67. #endif
  68. #if ((FTFC_EEP_IP_CFG_SW_MAJOR_VERSION_H != FTFC_EEP_IP_VS_0_PBCFG_SW_MAJOR_VERSION_H) || \
  69. (FTFC_EEP_IP_CFG_SW_MINOR_VERSION_H != FTFC_EEP_IP_VS_0_PBCFG_SW_MINOR_VERSION_H) || \
  70. (FTFC_EEP_IP_CFG_SW_PATCH_VERSION_H != FTFC_EEP_IP_VS_0_PBCFG_SW_PATCH_VERSION_H) \
  71. )
  72. #error "Ftfc_Eep_Ip.h and Ftfc_Eep_Ip_VS_0_PBcfg.h have different SW versions!"
  73. #endif
  74. /* Version checks for Ftfc_Eep_Ip_Types.h */
  75. #if (FTFC_EEP_IP_CFG_VENDOR_ID_H != FTFC_EEP_IP_TYPES_VENDOR_ID_H)
  76. #error "Ftfc_Eep_Ip_Cfg.h and Ftfc_Eep_Ip_Types.h have different vendor IDs!"
  77. #endif
  78. #if ((FTFC_EEP_IP_CFG_AR_RELEASE_MAJOR_VERSION_H != FTFC_EEP_IP_TYPES_AR_RELEASE_MAJOR_VERSION_H) || \
  79. (FTFC_EEP_IP_CFG_AR_RELEASE_MINOR_VERSION_H != FTFC_EEP_IP_TYPES_AR_RELEASE_MINOR_VERSION_H) || \
  80. (FTFC_EEP_IP_CFG_AR_RELEASE_REVISION_VERSION_H != FTFC_EEP_IP_TYPES_AR_RELEASE_REVISION_VERSION_H) \
  81. )
  82. #error "Ftfc_Eep_Ip_Cfg.h and Ftfc_Eep_Ip_Types.h are for different AUTOSAR versions!"
  83. #endif
  84. #if ((FTFC_EEP_IP_CFG_SW_MAJOR_VERSION_H != FTFC_EEP_IP_TYPES_SW_MAJOR_VERSION_H) || \
  85. (FTFC_EEP_IP_CFG_SW_MINOR_VERSION_H != FTFC_EEP_IP_TYPES_SW_MINOR_VERSION_H) || \
  86. (FTFC_EEP_IP_CFG_SW_PATCH_VERSION_H != FTFC_EEP_IP_TYPES_SW_PATCH_VERSION_H) \
  87. )
  88. #error "Ftfc_Eep_Ip_Cfg.h and Ftfc_Eep_Ip_Types.h have different SW versions!"
  89. #endif
  90. /*==================================================================================================
  91. * DEFINES AND MACROS
  92. ==================================================================================================*/
  93. /** FlexRAM base address */
  94. #define FTFC_EEP_IP_FLEXRAM_ADDRESS 0x14000000U
  95. /** Total size of EEP */
  96. #define FTFC_EEP_IP_EEP_SIZE 4096U
  97. /** If this is a HT chip derivative the FTFM registers will be used - instead of FTFC. */
  98. #define FTFC_EEP_IP_HIGH_TEMP_CHIP STD_OFF
  99. /** STD_ON: Access code loaded on job start / unloaded on job end or error */
  100. #define FTFC_EEP_IP_LOAD_AC_INTO_RAM STD_OFF
  101. /** API for comparing a RAM region with the contents of an EEP region */
  102. #define FTFC_EEP_IP_COMPARE_API STD_ON
  103. /** Enable / disable the QuickWrites mode */
  104. #define FTFC_EEP_IP_QUICK_WRITES_API STD_ON
  105. /** Check if source is aligned with half-word and word access. */
  106. #define FTFC_EEP_IP_ALIGNED_RAM_ACCESS STD_OFF
  107. /** OsIf counter type used in timeout detection */
  108. #define FTFC_EEP_IP_TIMEOUT_TYPE OSIF_COUNTER_DUMMY
  109. #define FTFC_EEP_IP_ABORT_TIMEOUT 268435456U
  110. #define FTFC_EEP_IP_ASYNC_WRITE_TIMEOUT 268435456U
  111. #define FTFC_EEP_IP_SYNC_WRITE_TIMEOUT 268435456U
  112. /** This macro can be used to deactivate the DEV_ASSERTs */
  113. #define FTFC_EEP_IP_DEV_ERROR_DETECT STD_ON
  114. /*==================================================================================================
  115. * ENUMS
  116. ==================================================================================================*/
  117. /*==================================================================================================
  118. * CONSTANTS
  119. ==================================================================================================*/
  120. /*==================================================================================================
  121. * STRUCTURES AND OTHER TYPEDEFS
  122. ==================================================================================================*/
  123. /*==================================================================================================
  124. * GLOBAL VARIABLE DECLARATIONS
  125. ==================================================================================================*/
  126. /*==================================================================================================
  127. * FUNCTION PROTOTYPES
  128. ==================================================================================================*/
  129. #ifdef __cplusplus
  130. }
  131. #endif
  132. /** @} */
  133. #endif /* FTFC_EEP_IP_CFG_H */