1 /*
2  * Copyright 2023 NXP
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef WKPU_IP_DEFINES_H
8 #define WKPU_IP_DEFINES_H
9 
10 /**
11  *   @file    Wkpu_Ip_Defines.h
12  *   @version 3.0.0
13  *
14  *   @brief   AUTOSAR Icu - contains the data exported by the Icu module
15  *   @details Contains the information that will be exported by the module, as requested by Autosar.
16  *
17  *   @addtogroup wkpu_icu_ip WKPU IPL
18  *   @{
19  */
20 
21 #ifdef __cplusplus
22 extern "C"{
23 #endif
24 
25 
26  /*==================================================================================================
27  *                                         INCLUDE FILES
28  * 1) system and project includes
29  * 2) needed interfaces from external units
30  * 3) internal and external interfaces from this unit
31  *================================================================================================*/
32 #include "Std_Types.h"
33 #include "S32K344_WKPU.h"
34 /*==================================================================================================
35 *                                 SOURCE FILE VERSION INFORMATION
36 ==================================================================================================*/
37 #define WKPU_IP_DEFINES_VENDOR_ID                    43
38 #define WKPU_IP_DEFINES_MODULE_ID                    122
39 #define WKPU_IP_DEFINES_AR_RELEASE_MAJOR_VERSION     4
40 #define WKPU_IP_DEFINES_AR_RELEASE_MINOR_VERSION     7
41 #define WKPU_IP_DEFINES_AR_RELEASE_REVISION_VERSION  0
42 #define WKPU_IP_DEFINES_SW_MAJOR_VERSION             3
43 #define WKPU_IP_DEFINES_SW_MINOR_VERSION             0
44 #define WKPU_IP_DEFINES_SW_PATCH_VERSION             0
45 
46 /*==================================================================================================
47  *                                      FILE VERSION CHECKS
48  *================================================================================================*/
49 /* Check if header file and Std_Types.h file are of the same Autosar version */
50 #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
51     #if ((WKPU_IP_DEFINES_AR_RELEASE_MAJOR_VERSION != STD_AR_RELEASE_MAJOR_VERSION) || \
52          (WKPU_IP_DEFINES_AR_RELEASE_MINOR_VERSION != STD_AR_RELEASE_MINOR_VERSION))
53     #error "AutoSar Version Numbers of Wkpu_Ip_Defines.h and Std_Types.h are different"
54     #endif
55 #endif
56 /*==================================================================================================
57                                        DEFINES AND MACROS
58 ==================================================================================================*/
59 
60 #define WKPU_IP_USED    (STD_ON)
61 
62 #if (STD_ON == WKPU_IP_USED)
63 #define WKPU_IP_NMI_API    (STD_ON)
64 
65 #if (defined (WKPU_IP_NMI_API) && (STD_ON == WKPU_IP_NMI_API))
66 /*! @brief The distance between cores */
67 #define WKPU_IP_CORE_OFFSET_SIZE  (8U)
68 #define WKPU_IP_SUPPORT_NONE_REQUEST
69 #define WKPU_IP_SUPPORT_NON_MASK_INT
70 /** @brief The WKPU core array */
71 #define WKPU_IP_CORE_ARRAY { \
72 WKPU_CORE0      /*!< Core 0*/, \
73 WKPU_CORE1      /*!< Core 1*/ \
74 }
75 #define WKPU_IP_NMI_CORE_CNT      (1U)
76 #define WKPU_IP_NMI_NUM_CORES     (2U)
77 #endif
78 
79 #define WKPU_IP_SUPPORT_INTERRUPT_REQUEST
80 #define WKPU_IP_NUM_OF_CHANNELS       (64)
81 /** @brief The number of Wkpu channels are used in configuration */
82 #define WKPU_IP_NUM_OF_CHANNELS_USED  ((uint8)64U)
83 #define WKPU_IP_NUM_OF_CHANNELS_IN_ONE_REG  (32U)
84 /** @brief Switch for enabling Standby wakeup support  on or off */
85 #define WKPU_IP_STANDBY_WAKEUP_SUPPORT (STD_OFF)
86 
87 #define WKPU_IP_INITIAL_INDEX_OF_CHANNELS \
88     {0U, 1U, 2U, 3U, 4U, 5U, 6U, 7U, 8U, 9U, 10U, 11U, 12U, 13U, 14U, 15U, 16U, 17U, 18U, 19U, 20U, 21U, 22U, 23U, 24U, 25U, 26U, 27U, 28U, 29U, 30U, 31U, 32U, 33U, 34U, 35U, 36U, 37U, 38U, 39U, 40U, 41U, 42U, 43U, 44U, 45U, 46U, 47U, 48U, 49U, 50U, 51U, 52U, 53U, 54U, 55U, 56U, 57U, 58U, 59U, 60U, 61U, 62U, 63U}
89 
90 #endif /* WKPU_IP_USED */
91 
92 #ifdef __cplusplus
93 }
94 #endif
95 
96 /** @} */
97 
98 #endif  /* WKPU_IP_DEFINES_H */
99