Uart_Defines.h 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. /*==================================================================================================
  2. * Project : RTD AUTOSAR 4.4
  3. * Platform : CORTEXM
  4. * Peripheral : FLEXIO
  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 UART_CFG_DEFINES_H
  25. #define UART_CFG_DEFINES_H
  26. /**
  27. * @file
  28. *
  29. * @defgroup uart_driver UART Driver
  30. * @addtogroup uart_driver UART Driver
  31. * @{
  32. */
  33. #ifdef __cplusplus
  34. extern "C"
  35. {
  36. #endif
  37. /*==================================================================================================
  38. * INCLUDE FILES
  39. * 1) system and project includes
  40. * 2) needed interfaces from external units
  41. * 3) internal and external interfaces from this unit
  42. ==================================================================================================*/
  43. #include "Mcal.h"
  44. /*==================================================================================================
  45. * SOURCE FILE VERSION INFORMATION
  46. ==================================================================================================*/
  47. #define UART_DEFINES_VENDOR_ID_CFG 43
  48. #define UART_DEFINES_AR_RELEASE_MAJOR_VERSION_CFG 4
  49. #define UART_DEFINES_AR_RELEASE_MINOR_VERSION_CFG 4
  50. #define UART_DEFINES_AR_RELEASE_REVISION_VERSION_CFG 0
  51. #define UART_DEFINES_SW_MAJOR_VERSION_CFG 1
  52. #define UART_DEFINES_SW_MINOR_VERSION_CFG 0
  53. #define UART_DEFINES_SW_PATCH_VERSION_CFG 0
  54. /*==================================================================================================
  55. FILE VERSION CHECKS
  56. ==================================================================================================*/
  57. #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
  58. /* Checks against Mcal.h */
  59. #if ((UART_DEFINES_AR_RELEASE_MAJOR_VERSION_CFG != MCAL_AR_RELEASE_MAJOR_VERSION) || \
  60. (UART_DEFINES_AR_RELEASE_MINOR_VERSION_CFG != MCAL_AR_RELEASE_MINOR_VERSION))
  61. #error "AUTOSAR Version Numbers of Uart_Defines.h and Mcal.h are different"
  62. #endif
  63. #endif
  64. /*==================================================================================================
  65. * DEFINES AND MACROS
  66. ==================================================================================================*/
  67. /*==================================================================================================
  68. * DEFINES AND MACROS
  69. ==================================================================================================*/
  70. /* @brief Enables / Disables multicore support */
  71. #define UART_MULTICORE_SUPPORT (STD_OFF)
  72. /* @brief Enables / Disables PreCompile support when there is a single configuration */
  73. #define UART_PRECOMPILE_SUPPORT (STD_ON)
  74. /* @brief Enables / Disables DET development errors detection and reporting */
  75. #define UART_DEV_ERROR_DETECT (STD_ON)
  76. /* @brief Enables / Disables Runtime errors detection and reporting */
  77. #define UART_RUNTIME_ERROR_DETECT (STD_ON)
  78. /* @brief Number of Channels configured. */
  79. #define UART_CH_MAX_CONFIG (3U)
  80. /* @brief UART Osif source counter. This parameter is used to select between different OsIf counter implementation */
  81. #define UART_TIMEOUT_TYPE (OSIF_COUNTER_SYSTEM)
  82. /* @brief Number of loops before returning Timeout status */
  83. #define UART_TIMEOUT_VALUE_US (500000U)
  84. /* @brief Switches the Uart_GetVersionInfo() API ON or OFF. Support for version info API. */
  85. #define UART_VERSION_INFO_API (STD_ON)
  86. /* @brief Uart has feature DMA enable. */
  87. #define UART_HAS_DMA_ENABLED (STD_ON)
  88. /* @brief Number of available hardware instances */
  89. #define UART_NUMBER_OF_INSTANCES (7U)
  90. /* @brief UART Hardware instances mapping initialize value */
  91. #define UART_HW_CHANNELS_MAPPING_FOR_INIT {-1, -1, -1, -1, -1, -1, -1}
  92. /* @brief Declare callback parameters if any */
  93. #define UART_CALLBACK_DECLARED (STD_ON)
  94. /**
  95. * @brief All CoreIDs are supported by Uart driver.
  96. */
  97. #define UART_MAX_PARTITIONS (1U)
  98. /* Api to retrieve the core id */
  99. #if (STD_ON == UART_MULTICORE_SUPPORT)
  100. #define Uart_GetCoreID() (OsIf_GetCoreID())
  101. #else
  102. #define Uart_GetCoreID() ((uint32)0x0U)
  103. #endif /* (STD_ON == UART_MULTICORE_SUPPORT) */
  104. /*==================================================================================================
  105. * CONSTANTS
  106. ==================================================================================================*/
  107. /*==================================================================================================
  108. * ENUMS
  109. ==================================================================================================*/
  110. /*==================================================================================================
  111. * STRUCTURES AND OTHER TYPEDEFS
  112. ==================================================================================================*/
  113. /*==================================================================================================
  114. * GLOBAL VARIABLE DECLARATIONS
  115. ==================================================================================================*/
  116. /*==================================================================================================
  117. * FUNCTION PROTOTYPES
  118. ==================================================================================================*/
  119. /*==================================================================================================
  120. * EXTERNAL CONSTANTS
  121. ==================================================================================================*/
  122. #ifdef __cplusplus
  123. }
  124. #endif
  125. /** @} */
  126. #endif /* UART_CFG_DEFINES_H */