Lpit_Icu_Ip_Defines.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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 LPIT_ICU_IP_DEFINES
  25. #define LPIT_ICU_IP_DEFINES
  26. /**
  27. * @file Lpit_Icu_Ip_Defines.h
  28. * @version 1.0.0
  29. *
  30. * @addtogroup lpit_icu_ip LPIT IPL
  31. * @{
  32. */
  33. #ifdef __cplusplus
  34. extern "C"{
  35. #endif
  36. /*==================================================================================================
  37. * INCLUDE FILES
  38. * 1) system and project includes
  39. * 2) needed interfaces from external units
  40. * 3) internal and external interfaces from this unit
  41. ==================================================================================================*/
  42. #include "StandardTypes.h"
  43. /* Include platform header file. */
  44. #include "S32K146_LPIT.h"
  45. /*==================================================================================================
  46. * SOURCE FILE VERSION INFORMATION
  47. ==================================================================================================*/
  48. #define LPIT_ICU_IP_DEFINES_VENDOR_ID 43
  49. #define LPIT_ICU_IP_DEFINES_AR_RELEASE_MAJOR_VERSION 4
  50. #define LPIT_ICU_IP_DEFINES_AR_RELEASE_MINOR_VERSION 4
  51. #define LPIT_ICU_IP_DEFINES_AR_RELEASE_REVISION_VERSION 0
  52. #define LPIT_ICU_IP_DEFINES_SW_MAJOR_VERSION 1
  53. #define LPIT_ICU_IP_DEFINES_SW_MINOR_VERSION 0
  54. #define LPIT_ICU_IP_DEFINES_SW_PATCH_VERSION 0
  55. /*==================================================================================================
  56. * FILE VERSION CHECKS
  57. ===================================================================================================*/
  58. /* Check if header file and StandardTypes.h are of the same AUTOSAR version */
  59. #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
  60. #if ((LPIT_ICU_IP_DEFINES_AR_RELEASE_MAJOR_VERSION != STD_AR_RELEASE_MAJOR_VERSION) || \
  61. (LPIT_ICU_IP_DEFINES_AR_RELEASE_MINOR_VERSION != STD_AR_RELEASE_MINOR_VERSION))
  62. #error "AUTOSAR version numbers of Lpit_Icu_Ip.h and StandardTypes.h are different."
  63. #endif
  64. #endif
  65. /*==================================================================================================
  66. * DEFINES AND MACROS
  67. ==================================================================================================*/
  68. /* Macros that indicate LPIT instances used by ICU. */
  69. /* MIER start bit mask. */
  70. #define LPIT_MIER_TIE_START_MASK (uint32)0x1U
  71. /* MSR start bit mask. */
  72. #define LPIT_MSR_TIF_START_MASK (uint32)0x1U
  73. /* Channels trigger select defines. */
  74. #define LPIT_ICU_TRG_CH0 ((uint8)0U)
  75. #define LPIT_ICU_TRG_CH1 ((uint8)1U)
  76. #define LPIT_ICU_TRG_CH2 ((uint8)2U)
  77. #define LPIT_ICU_TRG_CH3 ((uint8)3U)
  78. /* Channels trigger source defines. */
  79. #define LPIT_ICU_CH_INTERNAL_TRIGGER ((uint8)1U)
  80. #define LPIT_ICU_CH_EXTERNAL_TRIGGER ((uint8)0U)
  81. /** @brief Switches the Development Error Detection and Notification on or off. */
  82. #define LPIT_ICU_IP_DEV_ERROR_DETECT (STD_ON)
  83. /** @brief Adds or removes all services related to the deinitialization functionality. */
  84. #define LPIT_ICU_DEINIT_API (STD_ON)
  85. /** @brief Adds or removes all services related to edge detect functionality. */
  86. #define LPIT_ICU_EDGE_DETECT_API (STD_ON)
  87. /** @brief Adds or removes all services related to the timestamp functionality. */
  88. #define LPIT_ICU_TIMESTAMP_API (STD_ON)
  89. /** @brief Adds or removes all services related to input state functionality. */
  90. #define LPIT_ICU_GET_INPUT_STATE_API (STD_ON)
  91. #ifdef __cplusplus
  92. }
  93. #endif
  94. #endif /* LPIT_ICU_IP_DEFINES */
  95. /** @} */