Skip to content

Commit d7f039f

Browse files
congnguyenhuummahadevan108
authored andcommitted
s32: soc: s32z2: add SENT soc specific code
Code autogenerated with S32 Design Studio for s32ze Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
1 parent b824c8c commit d7f039f

File tree

3 files changed

+356
-0
lines changed

3 files changed

+356
-0
lines changed

s32/soc/s32z270/include/Srx_Ip_Cfg.h

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
/*
2+
* Copyright 2021-2025 NXP
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*/
6+
7+
#ifndef SRX_IP_CFG_H
8+
#define SRX_IP_CFG_H
9+
10+
/**
11+
* @file Srx_Ip_Cfg.h
12+
*
13+
* @version 2.0.1
14+
*
15+
* @brief AUTOSAR Sent - module interface
16+
*
17+
* @addtogroup SENT_DRIVER
18+
* @{
19+
*/
20+
#ifdef __cplusplus
21+
extern "C"{
22+
#endif
23+
24+
/*==================================================================================================
25+
* INCLUDE FILES
26+
* 1) system and project includes
27+
* 2) needed interfaces from external units
28+
* 3) internal and external interfaces from this unit
29+
==================================================================================================*/
30+
#include "Mcal.h"
31+
#include "Srx_Ip_Types.h"
32+
#include "Srx_Ip_Init_PBcfg.h"
33+
#include "S32Z2_SRX.h"
34+
/*==================================================================================================
35+
* SOURCE FILE VERSION INFORMATION
36+
==================================================================================================*/
37+
/*
38+
* @file Srx_Ip_Cfg.h
39+
*/
40+
#define SRX_IP_CFG_VENDOR_ID 43
41+
#define SRX_IP_CFG_AR_RELEASE_MAJOR_VERSION 4
42+
#define SRX_IP_CFG_AR_RELEASE_MINOR_VERSION 7
43+
#define SRX_IP_CFG_AR_RELEASE_REVISION_VERSION 0
44+
#define SRX_IP_CFG_SW_MAJOR_VERSION 2
45+
#define SRX_IP_CFG_SW_MINOR_VERSION 0
46+
#define SRX_IP_CFG_SW_PATCH_VERSION 1
47+
48+
/*==================================================================================================
49+
* FILE VERSION CHECKS
50+
==================================================================================================*/
51+
/* Checks against Srx_Ip_Init_PBcfg.h */
52+
#if (SRX_IP_CFG_VENDOR_ID != SRX_IP_PBCFG_INIT_VENDOR_ID)
53+
#error "Srx_Ip_Cfg.h and Srx_Ip_Init_PBcfg.h have different vendor ids"
54+
#endif
55+
#if ((SRX_IP_CFG_AR_RELEASE_MAJOR_VERSION != SRX_IP_PBCFG_INIT_AR_RELEASE_MAJOR_VERSION) || \
56+
(SRX_IP_CFG_AR_RELEASE_MINOR_VERSION != SRX_IP_PBCFG_INIT_AR_RELEASE_MINOR_VERSION) || \
57+
(SRX_IP_CFG_AR_RELEASE_REVISION_VERSION != SRX_IP_PBCFG_INIT_AR_RELEASE_REVISION_VERSION))
58+
#error "AUTOSAR Version Numbers of Srx_Ip_Cfg.h and Srx_Ip_Init_PBcfg.h are different"
59+
#endif
60+
#if ((SRX_IP_CFG_SW_MAJOR_VERSION != SRX_IP_PBCFG_INIT_SW_MAJOR_VERSION) || \
61+
(SRX_IP_CFG_SW_MINOR_VERSION != SRX_IP_PBCFG_INIT_SW_MINOR_VERSION) || \
62+
(SRX_IP_CFG_SW_PATCH_VERSION != SRX_IP_PBCFG_INIT_SW_PATCH_VERSION))
63+
#error "Software Version Numbers of Srx_Ip_Cfg.h and Srx_Ip_Init_PBcfg.h are different"
64+
#endif
65+
#ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
66+
/* Check if current file and Mcal.h header file are of the same Autosar version */
67+
#if ((SRX_IP_CFG_AR_RELEASE_MAJOR_VERSION != MCAL_AR_RELEASE_MAJOR_VERSION) || \
68+
(SRX_IP_CFG_AR_RELEASE_MINOR_VERSION != MCAL_AR_RELEASE_MINOR_VERSION))
69+
#error "AutoSar Version Numbers of Srx_Ip_Cfg.h and Mcal.h are different"
70+
#endif
71+
#endif
72+
/*==================================================================================================
73+
* GLOBAL FUNCTION PROTOTYPES
74+
==================================================================================================*/
75+
76+
/*==================================================================================================
77+
* LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS)
78+
==================================================================================================*/
79+
80+
/*==================================================================================================
81+
* LOCAL MACROS
82+
==================================================================================================*/
83+
84+
/*==================================================================================================
85+
* LOCAL CONSTANTS
86+
==================================================================================================*/
87+
88+
/*==================================================================================================
89+
* LOCAL VARIABLES
90+
==================================================================================================*/
91+
92+
/*==================================================================================================
93+
* GLOBAL CONSTANTS
94+
==================================================================================================*/
95+
96+
/*==================================================================================================
97+
* DEFINES AND MACROS
98+
==================================================================================================*/
99+
100+
/*==================================================================================================
101+
* ENUMS
102+
==================================================================================================*/
103+
104+
/*==================================================================================================
105+
* STRUCTURES AND OTHER TYPEDEFS
106+
==================================================================================================*/
107+
108+
/*==================================================================================================
109+
* GLOBAL VARIABLE DECLARATIONS
110+
==================================================================================================*/
111+
#define SENT_START_SEC_CODE
112+
#include "Sent_MemMap.h"
113+
#define SENT_STOP_SEC_CODE
114+
#include "Sent_MemMap.h"
115+
#ifdef __cplusplus
116+
}
117+
#endif
118+
119+
/** @} */
120+
121+
#endif /* SRX_IP_CFG_H */
122+
123+
Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
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+
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* Copyright 2021-2025 NXP
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*/
6+
7+
#ifndef SRX_IP_INIT_PBCFG_H
8+
#define SRX_IP_INIT_PBCFG_H
9+
10+
/**
11+
* @file Srx_Ip_Init_PBcfg.h
12+
* @version 2.0.1
13+
*
14+
* @brief AUTOSAR Sent - module interface
15+
* @details Configuration settings generated by user settings.
16+
*
17+
* @addtogroup SENT_DRIVER
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 "Mcal.h"
33+
34+
/*==================================================================================================
35+
* SOURCE FILE VERSION INFORMATION
36+
==================================================================================================*/
37+
#define SRX_IP_PBCFG_INIT_VENDOR_ID 43
38+
#define SRX_IP_PBCFG_INIT_AR_RELEASE_MAJOR_VERSION 4
39+
#define SRX_IP_PBCFG_INIT_AR_RELEASE_MINOR_VERSION 7
40+
#define SRX_IP_PBCFG_INIT_AR_RELEASE_REVISION_VERSION 0
41+
#define SRX_IP_PBCFG_INIT_SW_MAJOR_VERSION 2
42+
#define SRX_IP_PBCFG_INIT_SW_MINOR_VERSION 0
43+
#define SRX_IP_PBCFG_INIT_SW_PATCH_VERSION 1
44+
45+
/*==================================================================================================
46+
* FILE VERSION CHECKS
47+
==================================================================================================*/
48+
#ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
49+
/* Check if current file and Mcal.h header file are of the same Autosar version */
50+
#if ((SRX_IP_PBCFG_INIT_AR_RELEASE_MAJOR_VERSION != MCAL_AR_RELEASE_MAJOR_VERSION) || \
51+
(SRX_IP_PBCFG_INIT_AR_RELEASE_MINOR_VERSION != MCAL_AR_RELEASE_MINOR_VERSION))
52+
#error "AutoSar Version Numbers of Srx_Ip_PBcfg.h and Mcal.h are different"
53+
#endif
54+
#endif
55+
/*==================================================================================================
56+
* DEFINES AND MACROS
57+
==================================================================================================*/
58+
59+
#ifdef __cplusplus
60+
}
61+
#endif
62+
63+
/** @} */
64+
65+
#endif /* SRX_IP_INIT_PBCFG_H */
66+
67+

0 commit comments

Comments
 (0)