|
| 1 | +/* |
| 2 | + * Copyright 2021-2025 NXP |
| 3 | + * |
| 4 | + * SPDX-License-Identifier: BSD-3-Clause |
| 5 | + */ |
| 6 | + |
| 7 | +#ifndef SRX_IP_DEFINES_H |
| 8 | +#define SRX_IP_DEFINES_H |
| 9 | + |
| 10 | +/** |
| 11 | +* @file |
| 12 | +* |
| 13 | +* @addtogroup FLEXIO_SENT_DRIVER_CONFIGURATION Flexio_Sent Driver Configurations |
| 14 | +* @{ |
| 15 | +*/ |
| 16 | + |
| 17 | + |
| 18 | +#ifdef __cplusplus |
| 19 | +extern "C"{ |
| 20 | +#endif |
| 21 | + |
| 22 | +/*================================================================================================== |
| 23 | +* INCLUDE FILES |
| 24 | +* 1) system and project includes |
| 25 | +* 2) needed interfaces from external units |
| 26 | +* 3) internal and external interfaces from this unit |
| 27 | +==================================================================================================*/ |
| 28 | + |
| 29 | +#include "Mcal.h" |
| 30 | + |
| 31 | + |
| 32 | +/*================================================================================================== |
| 33 | +* SOURCE FILE VERSION INFORMATION |
| 34 | +==================================================================================================*/ |
| 35 | +#define SRX_IP_DEFINES_VENDOR_ID 43 |
| 36 | +#define SRX_IP_DEFINES_AR_RELEASE_MAJOR_VERSION 4 |
| 37 | +#define SRX_IP_DEFINES_AR_RELEASE_MINOR_VERSION 7 |
| 38 | +#define SRX_IP_DEFINES_AR_RELEASE_REVISION_VERSION 0 |
| 39 | +#define SRX_IP_DEFINES_SW_MAJOR_VERSION 2 |
| 40 | +#define SRX_IP_DEFINES_SW_MINOR_VERSION 0 |
| 41 | +#define SRX_IP_DEFINES_SW_PATCH_VERSION 1 |
| 42 | + |
| 43 | + |
| 44 | +/*================================================================================================== |
| 45 | + FILE VERSION CHECKS |
| 46 | +==================================================================================================*/ |
| 47 | +#ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK |
| 48 | + /* Check if current file and Mcal.h header file are of the same Autosar version */ |
| 49 | + #if ((SRX_IP_DEFINES_AR_RELEASE_MAJOR_VERSION != MCAL_AR_RELEASE_MAJOR_VERSION) || \ |
| 50 | + (SRX_IP_DEFINES_AR_RELEASE_MINOR_VERSION != MCAL_AR_RELEASE_MINOR_VERSION)) |
| 51 | + #error "AutoSar Version Numbers of Srx_Ip_Defines.h and Mcal.h are different" |
| 52 | + #endif |
| 53 | +#endif |
| 54 | +/*================================================================================================== |
| 55 | + LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS) |
| 56 | +==================================================================================================*/ |
| 57 | + |
| 58 | +/*================================================================================================== |
| 59 | + LOCAL CONSTANTS |
| 60 | +==================================================================================================*/ |
| 61 | + |
| 62 | + |
| 63 | +/*================================================================================================== |
| 64 | +* LOCAL MACROS |
| 65 | +==================================================================================================*/ |
| 66 | + |
| 67 | +/*================================================================================================== |
| 68 | + LOCAL VARIABLES |
| 69 | +==================================================================================================*/ |
| 70 | + |
| 71 | + |
| 72 | +/*================================================================================================== |
| 73 | + GLOBAL CONSTANTS |
| 74 | +==================================================================================================*/ |
| 75 | +/* |
| 76 | +* @brief Support for User Mode feature. |
| 77 | +* @details This parameter is enabled only in order to support the write access to some registers are protected in user mode. |
| 78 | +*/ |
| 79 | +#define SRX_IP_ENABLE_USER_MODE_SUPPORT (STD_OFF) |
| 80 | + |
| 81 | +#ifndef MCAL_ENABLE_USER_MODE_SUPPORT |
| 82 | + #if (STD_ON == SRX_IP_ENABLE_USER_MODE_SUPPORT) |
| 83 | + #error "MCAL_ENABLE_USER_MODE_SUPPORT is not enabled. For running SRX in user mode the MCAL_ENABLE_USER_MODE_SUPPORT needs to be defined" |
| 84 | + #endif /* (STD_ON == SRX_IP_ENABLE_USER_MODE_SUPPORT) */ |
| 85 | +#endif /* ifndef MCAL_ENABLE_USER_MODE_SUPPORT */ |
| 86 | + |
| 87 | +/* |
| 88 | +* @brief Switches the Development Error Detection and Notification ON or OFF. |
| 89 | +* @details Shall activate or deactivate the detection of all development errors. |
| 90 | +* |
| 91 | +*/ |
| 92 | +#define SRX_IP_DEV_ERROR_DETECT (STD_OFF) |
| 93 | + |
| 94 | +/* |
| 95 | +* @brief Switches the DMA Feature ON or OFF. |
| 96 | +* @details Shall activate or deactivate the DMA feature. |
| 97 | +* |
| 98 | +*/ |
| 99 | + |
| 100 | +#define SRX_IP_DMA_FEATURE_ENABLE (STD_OFF) |
| 101 | +/* |
| 102 | +* @brief Switches the Timestamp Feature ON or OFF. |
| 103 | +* @details Shall activate or deactivate the timestamp feature. |
| 104 | +* |
| 105 | +*/ |
| 106 | + |
| 107 | +#define SRX_IP_TIMESTAMP_FEATURE_ENABLE (STD_ON) |
| 108 | +/** |
| 109 | +* @brief Specifies the timeout for this module instance. |
| 110 | +* |
| 111 | +*/ |
| 112 | +#define SRX_IP_TIMEOUT (uint32)100000U |
| 113 | + |
| 114 | +/** |
| 115 | +* @brief TIMEOUT for sync transmissions |
| 116 | +*/ |
| 117 | +#define SRX_IP_TIMEOUT_TYPE (OSIF_COUNTER_DUMMY) |
| 118 | + |
| 119 | +/** |
| 120 | +* @brief Interrupt combine enabled |
| 121 | +*/ |
| 122 | +#define SRX_IP_INTERRUPT_COMBINED (STD_ON) |
| 123 | + |
| 124 | +/* |
| 125 | +* @brief Number of configured controllers |
| 126 | +* @details Number of configured controllers as defined by user in configuration tool |
| 127 | +* |
| 128 | +*/ |
| 129 | +#define SRX_IP_INSTANCE_COUNT 1U |
| 130 | +/* |
| 131 | +* @brief Max number of configured channels |
| 132 | +* @details Max number of configured channels as defined by user in configuration tool |
| 133 | +* |
| 134 | +*/ |
| 135 | + |
| 136 | +#define SRX_IP_CHANNEL_COUNT 1U |
| 137 | + |
| 138 | +#define SRX_IP_ISR_PROCESS_ERROR_HANDLER_CTRL0_COMBINED |
| 139 | + |
| 140 | +/*================================================================================================== |
| 141 | + GLOBAL VARIABLES |
| 142 | +==================================================================================================*/ |
| 143 | + |
| 144 | +/*================================================================================================== |
| 145 | + LOCAL FUNCTION PROTOTYPES |
| 146 | +==================================================================================================*/ |
| 147 | + |
| 148 | + |
| 149 | +/*================================================================================================== |
| 150 | + LOCAL FUNCTIONS |
| 151 | +==================================================================================================*/ |
| 152 | + |
| 153 | + |
| 154 | +/*================================================================================================== |
| 155 | + GLOBAL FUNCTIONS |
| 156 | +==================================================================================================*/ |
| 157 | + |
| 158 | + |
| 159 | +#ifdef __cplusplus |
| 160 | +} |
| 161 | +#endif |
| 162 | + |
| 163 | +/** @} */ |
| 164 | + |
| 165 | +#endif /* SRX_IP_DEFINES_H */ |
| 166 | + |
0 commit comments