Eep_VS_0_PBcfg.c 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. /**
  25. * @file Eep_VS_0_PBcfg.c
  26. *
  27. * @addtogroup EEP
  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 "Eep.h"
  40. /* If FTFC IP is present on the platform */
  41. #include "Ftfc_Eep_Ip_Cfg.h"
  42. /*==================================================================================================
  43. * SOURCE FILE VERSION INFORMATION
  44. ==================================================================================================*/
  45. #define EEP_VS_0_VENDOR_ID_PBCFG_C 43
  46. #define EEP_VS_0_AR_RELEASE_MAJOR_VERSION_PBCFG_C 4
  47. #define EEP_VS_0_AR_RELEASE_MINOR_VERSION_PBCFG_C 4
  48. #define EEP_VS_0_AR_RELEASE_REVISION_VERSION_PBCFG_C 0
  49. #define EEP_VS_0_SW_MAJOR_VERSION_PBCFG_C 1
  50. #define EEP_VS_0_SW_MINOR_VERSION_PBCFG_C 0
  51. #define EEP_VS_0_SW_PATCH_VERSION_PBCFG_C 0
  52. /*==================================================================================================
  53. * FILE VERSION CHECKS
  54. ==================================================================================================*/
  55. /* Check if current file and Eep header file are of the same vendor */
  56. #if (EEP_VS_0_VENDOR_ID_PBCFG_C != EEP_VENDOR_ID)
  57. #error "AutoSar Version Numbers of Eep_VS_0_PBcfg.c and Eep.h have different vendor ids"
  58. #endif
  59. /* Check if current file and Eep header file are of the same Autosar version */
  60. #if ((EEP_VS_0_AR_RELEASE_MAJOR_VERSION_PBCFG_C != EEP_AR_RELEASE_MAJOR_VERSION) || \
  61. (EEP_VS_0_AR_RELEASE_MINOR_VERSION_PBCFG_C != EEP_AR_RELEASE_MINOR_VERSION) || \
  62. (EEP_VS_0_AR_RELEASE_REVISION_VERSION_PBCFG_C != EEP_AR_RELEASE_REVISION_VERSION) \
  63. )
  64. #error "AutoSar Version Numbers of Eep_VS_0_PBcfg.c and Eep.h are different"
  65. #endif
  66. /* Check if current file and Eep header file are of the same Software version */
  67. #if ((EEP_VS_0_SW_MAJOR_VERSION_PBCFG_C != EEP_SW_MAJOR_VERSION) || \
  68. (EEP_VS_0_SW_MINOR_VERSION_PBCFG_C != EEP_SW_MINOR_VERSION) || \
  69. (EEP_VS_0_SW_PATCH_VERSION_PBCFG_C != EEP_SW_PATCH_VERSION) \
  70. )
  71. #error "Software Version Numbers of Eep_VS_0_PBcfg.c and Eep.h are different"
  72. #endif
  73. /* If SD Emmc IP is present on the platform */
  74. /* Check if current file and Ftfc_Eep_Ip_Cfg header file are of the same vendor */
  75. #if (EEP_VS_0_VENDOR_ID_PBCFG_C != FTFC_EEP_IP_CFG_VENDOR_ID_H)
  76. #error "AutoSar Version Numbers of Eep_VS_0_PBcfg.c and Ftfc_Eep_Ip_Cfg.h have different vendor ids"
  77. #endif
  78. /* Check if current file and Ftfc_Eep_Ip_Cfg header file are of the same Autosar version */
  79. #if ((EEP_VS_0_AR_RELEASE_MAJOR_VERSION_PBCFG_C != FTFC_EEP_IP_CFG_AR_RELEASE_MAJOR_VERSION_H) || \
  80. (EEP_VS_0_AR_RELEASE_MINOR_VERSION_PBCFG_C != FTFC_EEP_IP_CFG_AR_RELEASE_MINOR_VERSION_H) || \
  81. (EEP_VS_0_AR_RELEASE_REVISION_VERSION_PBCFG_C != FTFC_EEP_IP_CFG_AR_RELEASE_REVISION_VERSION_H) \
  82. )
  83. #error "AutoSar Version Numbers of Eep_VS_0_PBcfg.c and Ftfc_Eep_Ip_Cfg.h are different"
  84. #endif
  85. /* Check if current file and Ftfc_Eep_Ip_Cfg header file are of the same Software version */
  86. #if ((EEP_VS_0_SW_MAJOR_VERSION_PBCFG_C != FTFC_EEP_IP_CFG_SW_MAJOR_VERSION_H) || \
  87. (EEP_VS_0_SW_MINOR_VERSION_PBCFG_C != FTFC_EEP_IP_CFG_SW_MINOR_VERSION_H) || \
  88. (EEP_VS_0_SW_PATCH_VERSION_PBCFG_C != FTFC_EEP_IP_CFG_SW_PATCH_VERSION_H) \
  89. )
  90. #error "Software Version Numbers of Eep_VS_0_PBcfg.c and Ftfc_Eep_Ip_Cfg.h are different"
  91. #endif
  92. /*==================================================================================================
  93. FUNCTION PROTOTYPES
  94. ==================================================================================================*/
  95. /*==================================================================================================
  96. CONSTANTS
  97. ==================================================================================================*/
  98. #define EEP_START_SEC_CONFIG_DATA_UNSPECIFIED
  99. #include "Eep_MemMap.h"
  100. /**
  101. * @brief Structure used to set function pointers notification, working mode
  102. */
  103. const Eep_ConfigType Eep_Config_VS_0 =
  104. {
  105. /* EepJobEndNotification */ NULL_PTR,
  106. /* EepJobErrorNotification */ NULL_PTR,
  107. /* EepDefaultMode */ MEMIF_MODE_SLOW,
  108. /* EepFastReadBlockSize */ 4096U,
  109. /* EepNormalReadBlockSize */ 4096U,
  110. /* EepFastWriteBlockSize */ 4096U,
  111. /* EepNormalWriteBlockSize */ 4096U,
  112. /* EEP Config Set CRC checksum */ 16356U,
  113. /* FTFC IP Config Set */ &EepFtfcCfg_VS_0};
  114. #define EEP_STOP_SEC_CONFIG_DATA_UNSPECIFIED
  115. #include "Eep_MemMap.h"
  116. #ifdef __cplusplus
  117. }
  118. #endif
  119. /** @}*/