Ftm_Mcl_Ip_Cfg.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. /*==================================================================================================
  2. * Project : RTD AUTOSAR 4.4
  3. * Platform : CORTEXM
  4. * Peripheral : DMA,CACHE,TRGMUX,FLEXIO
  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 FTM_MCL_IP_CFG_H
  25. #define FTM_MCL_IP_CFG_H
  26. /**
  27. * @file Ftm_Mcl_Ip_Cfg.h
  28. *
  29. * @addtogroup
  30. * @brief MCL IPL Precompile defines header file.
  31. * @details Precompile defines.
  32. *
  33. * @{
  34. */
  35. #ifdef __cplusplus
  36. extern "C"
  37. {
  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. #include "Ftm_Mcl_Ip_Cfg_DeviceRegisters.h"
  46. /*==================================================================================================
  47. * SOURCE FILE VERSION INFORMATION
  48. ==================================================================================================*/
  49. #define FTM_MCL_IP_CFG_VENDOR_ID 43
  50. #define FTM_MCL_IP_CFG_AR_RELEASE_MAJOR_VERSION 4
  51. #define FTM_MCL_IP_CFG_AR_RELEASE_MINOR_VERSION 4
  52. #define FTM_MCL_IP_CFG_AR_RELEASE_REVISION_VERSION 0
  53. #define FTM_MCL_IP_CFG_SW_MAJOR_VERSION 1
  54. #define FTM_MCL_IP_CFG_SW_MINOR_VERSION 0
  55. #define FTM_MCL_IP_CFG_SW_PATCH_VERSION 0
  56. /*==================================================================================================
  57. * FILE VERSION CHECKS
  58. ==================================================================================================*/
  59. /* Check if header file and Ftm_Mcl_Ip_Cfg_DeviceRegisters.h header file are of the same vendor. */
  60. #if (FTM_MCL_IP_CFG_VENDOR_ID != FTM_MCL_IP_CFG_DEVICEREGISTERS_VENDOR_ID)
  61. #error "Vendor IDs of Ftm_Mcl_Ip.h and Ftm_Mcl_Ip_Cfg_DeviceRegisters.h are different."
  62. #endif
  63. /* Check if header file and Ftm_Mcl_Ip_Cfg_DeviceRegisters.h header file are of the same AUTOSAR version. */
  64. #if ((FTM_MCL_IP_CFG_AR_RELEASE_MAJOR_VERSION != FTM_MCL_IP_CFG_DEVICEREGISTERS_AR_RELEASE_MAJOR_VERSION) || \
  65. (FTM_MCL_IP_CFG_AR_RELEASE_MINOR_VERSION != FTM_MCL_IP_CFG_DEVICEREGISTERS_AR_RELEASE_MINOR_VERSION) || \
  66. (FTM_MCL_IP_CFG_AR_RELEASE_REVISION_VERSION != FTM_MCL_IP_CFG_DEVICEREGISTERS_AR_RELEASE_REVISION_VERSION))
  67. #error "AUTOSAR version numbers of Ftm_Mcl_Ip.h and Ftm_Mcl_Ip_Cfg_DeviceRegisters.h are different."
  68. #endif
  69. /* Check if header file and Ftm_Mcl_Ip_Cfg_DeviceRegisters.h header file are of the same software version */
  70. #if ((FTM_MCL_IP_CFG_SW_MAJOR_VERSION != FTM_MCL_IP_CFG_DEVICEREGISTERS_SW_MAJOR_VERSION) || \
  71. (FTM_MCL_IP_CFG_SW_MINOR_VERSION != FTM_MCL_IP_CFG_DEVICEREGISTERS_SW_MINOR_VERSION) || \
  72. (FTM_MCL_IP_CFG_SW_PATCH_VERSION != FTM_MCL_IP_CFG_DEVICEREGISTERS_SW_PATCH_VERSION))
  73. #error "Software version numbers of Ftm_Mcl_Ip.h and Ftm_Mcl_Ip_Cfg_DeviceRegisters.h are different."
  74. #endif
  75. /*==================================================================================================
  76. * DEFINES AND MACROS
  77. ==================================================================================================*/
  78. /* Enable/Disable FTM common timebase API from MCL. */
  79. #define FTM_MCL_SELECT_COMMON_TIMEBASE_API (STD_OFF)
  80. /**
  81. * @brief This define specifies the number of FTM modules present on the derivative. It's used for the
  82. * Mcl_SelectCommonTimebase API
  83. */
  84. #define FTM_MCL_IP_NOF_MODULES ((uint8)6U)
  85. /**
  86. * @brief Support for User mode.If this parameter has been configured to STD_ON,
  87. * the FTM driver code can be executed from both supervisor and user mode.
  88. */
  89. #define FTM_MCL_ENABLE_USER_MODE_SUPPORT (STD_OFF)
  90. /** @brief Switches the Development Error Detection and Notification on or off. */
  91. #define FTM_MCL_IP_DEV_ERROR_DETECT (STD_ON)
  92. /** @brief */
  93. #define USER_MODE_REG_PROT_ENABLED (FTM_MCL_ENABLE_USER_MODE_SUPPORT)
  94. /* Verification for user mode support. */
  95. #ifndef MCAL_ENABLE_USER_MODE_SUPPORT
  96. #if (defined (FTM_MCL_ENABLE_USER_MODE_SUPPORT) && (STD_ON == FTM_MCL_ENABLE_USER_MODE_SUPPORT))
  97. #error MCAL_ENABLE_USER_MODE_SUPPORT is not enabled. For running MCL in user mode the MCAL_ENABLE_USER_MODE_SUPPORT needs to be defined.
  98. #endif
  99. #endif
  100. #ifdef __cplusplus
  101. }
  102. #endif
  103. /** @} */
  104. #endif /* FTM_MCL_IP_CFG_H_ */