Lptmr_Icu_Ip_Defines.h 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. /*==================================================================================================
  2. * Project : RTD AUTOSAR 4.4
  3. * Platform : CORTEXM
  4. * Peripheral : Ftm Lpit Lptmr Port_Ci LpCmp
  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 LPTMR_ICU_IP_DEFINES_H
  25. #define LPTMR_ICU_IP_DEFINES_H
  26. /**
  27. * @file
  28. *
  29. * @addtogroup lptmr_icu_ip LPTMR IPL
  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 "StandardTypes.h"
  42. /* Include platform header file. */
  43. #include "S32K146_LPTMR.h"
  44. /*==================================================================================================
  45. * SOURCE FILE VERSION INFORMATION
  46. *================================================================================================*/
  47. #define LPTMR_ICU_IP_DEFINES_VENDOR_ID 43
  48. #define LPTMR_ICU_IP_DEFINES_AR_RELEASE_MAJOR_VERSION 4
  49. #define LPTMR_ICU_IP_DEFINES_AR_RELEASE_MINOR_VERSION 4
  50. #define LPTMR_ICU_IP_DEFINES_AR_RELEASE_REVISION_VERSION 0
  51. #define LPTMR_ICU_IP_DEFINES_SW_MAJOR_VERSION 1
  52. #define LPTMR_ICU_IP_DEFINES_SW_MINOR_VERSION 0
  53. #define LPTMR_ICU_IP_DEFINES_SW_PATCH_VERSION 0
  54. /*==================================================================================================
  55. * FILE VERSION CHECKS
  56. ==================================================================================================*/
  57. /* Check if header file and Std_Types.h file are of the same Autosar version */
  58. #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
  59. #if ((LPTMR_ICU_IP_DEFINES_AR_RELEASE_MAJOR_VERSION != STD_AR_RELEASE_MAJOR_VERSION) || \
  60. (LPTMR_ICU_IP_DEFINES_AR_RELEASE_MINOR_VERSION != STD_AR_RELEASE_MINOR_VERSION))
  61. #error "AutoSar Version Numbers of Lptmr_Icu_Ip_Defines.h and Std_Types.h are different"
  62. #endif
  63. #endif
  64. /*==================================================================================================
  65. * CONSTANTS
  66. ==================================================================================================*/
  67. /*==================================================================================================
  68. * DEFINES AND MACROS
  69. ==================================================================================================*/
  70. /* Macros that indicate LPTMR instances used by ICU. */
  71. /** @brief Switches the Development Error Detection and Notification on or off. */
  72. #define LPTMR_ICU_IP_DEV_ERROR_DETECT (STD_ON)
  73. /** @brief The number of LPTMR instances available on platform */
  74. #define LPTMR_ICU_IP_NUM_OF_MODULES (1U)
  75. /** @brief Adds or removes all services related to the edge detect functionality. */
  76. #define LPTMR_ICU_EDGE_DETECT_API (STD_ON)
  77. /** @brief */
  78. #define LPTMR_ICU_STANDBY_WAKEUP_SUPPORT (STD_ON)
  79. /** @brief Adds or removes all services related to the deinitialization functionality. */
  80. #define LPTMR_ICU_DEINIT_API (STD_ON)
  81. /** @brief Adds or removes all services related to mode set functionality. */
  82. #define LPTMR_ICU_SET_MODE_API (STD_ON)
  83. /** @brief Adds or removes all services related to edge count functionality. */
  84. #define LPTMR_ICU_EDGE_COUNT_API (STD_ON)
  85. /** @brief Adds or removes all services related to input state functionality. */
  86. #define LPTMR_ICU_GET_INPUT_STATE_API (STD_ON)
  87. /** @brief Support for User mode.If this parameter has been configured to 'STD_ON',
  88. * the LPTMR driver code can be executed from both supervisor and user mode. */
  89. #define LPTMR_ICU_ENABLE_USER_MODE_SUPPORT (STD_OFF)
  90. /* Verification for user mode support. */
  91. #ifndef MCAL_ENABLE_USER_MODE_SUPPORT
  92. #if (defined (LPTMR_ICU_ENABLE_USER_MODE_SUPPORT) && (STD_ON == LPTMR_ICU_ENABLE_USER_MODE_SUPPORT))
  93. #error MCAL_ENABLE_USER_MODE_SUPPORT is not enabled. For running Icu in user mode the MCAL_ENABLE_USER_MODE_SUPPORT needs to be defined
  94. #endif
  95. #endif
  96. /** @brief Get LPTMR type for each platform. */
  97. #define Lptmr_Icu_Ip_BaseType LPTMR_Type
  98. /*==================================================================================================
  99. * ENUMS
  100. ==================================================================================================*/
  101. /*==================================================================================================
  102. * STRUCTURES AND OTHER TYPEDEFS
  103. ==================================================================================================*/
  104. /*==================================================================================================
  105. * GLOBAL VARIABLE DECLARATIONS
  106. ==================================================================================================*/
  107. /*==================================================================================================
  108. * FUNCTION PROTOTYPES
  109. ==================================================================================================*/
  110. #ifdef __cplusplus
  111. }
  112. #endif
  113. #endif /* LPTMR_ICU_IP_DEFINES_H */
  114. /** @} */