1 /*
2  * Copyright 2020-2023 NXP
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 /* Prevention from multiple including the same header */
8 #ifndef S32K3XX_LCU_IP_FEATURES_H_
9 #define S32K3XX_LCU_IP_FEATURES_H_
10 
11 /**
12 *   @file    Lcu_Ip_Features.h
13 *
14 *   @version 3.0.0
15 *
16 *   @brief   AUTOSAR Mcl - LCU IP driver header file.
17 *   @details
18 *
19 *   @addtogroup LCU_IP_DRIVER LCU IP Driver
20 *   @{
21 */
22 
23 #include "Mcal.h"
24 #include "S32K344_LCU.h"
25 
26 /*==================================================================================================
27                                SOURCE FILE VERSION INFORMATION
28 ==================================================================================================*/
29 #define LCU_IP_FEATURES_VENDOR_ID                       43
30 #define LCU_IP_FEATURES_AR_RELEASE_MAJOR_VERSION        4
31 #define LCU_IP_FEATURES_AR_RELEASE_MINOR_VERSION        7
32 #define LCU_IP_FEATURES_AR_RELEASE_REVISION_VERSION     0
33 #define LCU_IP_FEATURES_SW_MAJOR_VERSION                3
34 #define LCU_IP_FEATURES_SW_MINOR_VERSION                0
35 #define LCU_IP_FEATURES_SW_PATCH_VERSION                0
36 
37 /*==================================================================================================
38 *                                     FILE VERSION CHECKS
39 ==================================================================================================*/
40 
41 #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
42 /* Check if header file and Mcal header file are of the same Autosar version */
43 #if ((LCU_IP_FEATURES_AR_RELEASE_MAJOR_VERSION != MCAL_AR_RELEASE_MAJOR_VERSION) || \
44      (LCU_IP_FEATURES_AR_RELEASE_MINOR_VERSION != MCAL_AR_RELEASE_MINOR_VERSION))
45     #error "AutoSar Version Numbers of Lcu_Ip_Features.h and Mcal.h are different"
46 #endif
47 #endif
48 
49 
50 /*==================================================================================================
51                                             DEFINES
52 ==================================================================================================*/
53 
54 /** Number of input/output per LC */
55 #define LCU_NUM_INPUT_PER_LC                        4U
56 #define LCU_NUM_OUTPUT_PER_LC                       4U
57 
58 /*-------------------------------------------------------------------/
59 /                       INSTANCE RESET VALUE                         /
60 /-------------------------------------------------------------------*/
61 #define FORCE_FILTER_RESET_VALUE                    ((uint8)(0U))
62 #define FORCE_POLARITY_RESET_VALUE                  ((uint8)(0U))
63 #define COMBEN_RESET_VALUE                          ((uint8)(0U))
64 #define SW_SYNC_SEL_RESET_VALUE                     ((uint8)(0U))
65 
66 /*-------------------------------------------------------------------/
67 /                   LUT AND FORCE MASK FOR INTERRUPT                 /
68 /-------------------------------------------------------------------*/
69 #define LUT_STS_EVENT_MASK                          ((uint32)(0x01U))
70 #define FORCE_STS_EVENT_MASK                        ((uint32)(0x0100U))
71 #define LUT_INT_ENABLE_MASK                         ((uint32)(0x01U))
72 #define FORCE_INT_ENABLE_MASK                       ((uint32)(0x10000U))
73 /** @} */
74 
75 #endif  /* #ifndef S32K3XX_LCU_IP_FEATURES_H_ */
76 
77 /*==================================================================================================
78  *                                        END OF FILE
79 ==================================================================================================*/
80