Skip to content

Commit cf96e3a

Browse files
congnguyenhuummahadevan108
authored andcommitted
s32: drivers: s32ze: add SENT baremetal driver
This is the SENT baremetal driver for s32ze Signed-off-by: Cong Nguyen Huu <[email protected]>
1 parent 4a90069 commit cf96e3a

File tree

11 files changed

+4763
-2
lines changed

11 files changed

+4763
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/*
2+
* Copyright 2025 NXP
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*/

s32/drivers/s32ze/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022-2024 NXP
1+
# Copyright 2022-2025 NXP
22
# SPDX-License-Identifier: BSD-3-Clause
33

44
add_subdirectory(BaseNXP)
@@ -17,3 +17,4 @@ add_subdirectory_ifdef(CONFIG_CAN_NXP_S32_CANXL Can_CANEXCEL)
1717
add_subdirectory_ifdef(CONFIG_NXP_S32_EMIOS Mcl)
1818
add_subdirectory_ifdef(CONFIG_PWM_NXP_S32_EMIOS Pwm)
1919
add_subdirectory_ifdef(CONFIG_MEMC_NXP_S32_QSPI Mem_EXFLS)
20+
add_subdirectory_ifdef(CONFIG_SENT_NXP_S32 Sent)

s32/drivers/s32ze/Rte/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022-2024 NXP
1+
# Copyright 2022-2025 NXP
22
# SPDX-License-Identifier: BSD-3-Clause
33

44
zephyr_include_directories(include)
@@ -16,3 +16,4 @@ if(CONFIG_PWM_NXP_S32_EMIOS AND CONFIG_PWM_CAPTURE)
1616
zephyr_library_sources(src/SchM_Icu.c)
1717
endif()
1818
zephyr_library_sources_ifdef(CONFIG_MEMC_NXP_S32_QSPI src/SchM_Mem_43_EXFLS.c)
19+
zephyr_library_sources_ifdef(CONFIG_SENT_NXP_S32 src/SchM_Sent.c)
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
/*
2+
* Copyright 2021-2025 NXP
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*/
6+
7+
/**
8+
* @file SchM_Sent.h
9+
* @version 2.0.1
10+
*
11+
* @brief AUTOSAR Rte - module interface
12+
* @details This file contains the functions prototypes and data types of the AUTOSAR Rte.
13+
* This file contains sample code only. It is not part of the production code deliverables.
14+
*
15+
* @addtogroup RTE_MODULE
16+
* @{
17+
*/
18+
19+
#ifndef SCHM_SENT_H
20+
#define SCHM_SENT_H
21+
22+
#ifdef __cplusplus
23+
extern "C" {
24+
#endif
25+
/*==================================================================================================
26+
* INCLUDE FILES
27+
* 1) system and project includes
28+
* 2) needed interfaces from external units
29+
* 3) internal and external interfaces from this unit
30+
==================================================================================================*/
31+
32+
/*==================================================================================================
33+
* SOURCE FILE VERSION INFORMATION
34+
==================================================================================================*/
35+
#define SCHM_SENT_AR_RELEASE_MAJOR_VERSION 4
36+
#define SCHM_SENT_AR_RELEASE_MINOR_VERSION 7
37+
#define SCHM_SENT_AR_RELEASE_REVISION_VERSION 0
38+
#define SCHM_SENT_SW_MAJOR_VERSION 2
39+
#define SCHM_SENT_SW_MINOR_VERSION 0
40+
#define SCHM_SENT_SW_PATCH_VERSION 1
41+
42+
/*==================================================================================================
43+
* FILE VERSION CHECKS
44+
==================================================================================================*/
45+
46+
47+
/*==================================================================================================
48+
* CONSTANTS
49+
==================================================================================================*/
50+
51+
/*==================================================================================================
52+
* DEFINES AND MACROS
53+
==================================================================================================*/
54+
#define NUMBER_OF_CORES (uint8)(14U)
55+
56+
/*==================================================================================================
57+
* ENUMS
58+
==================================================================================================*/
59+
60+
/*==================================================================================================
61+
* STRUCTURES AND OTHER TYPEDEFS
62+
==================================================================================================*/
63+
64+
/*==================================================================================================
65+
* GLOBAL VARIABLE DECLARATIONS
66+
==================================================================================================*/
67+
68+
/*==================================================================================================
69+
* FUNCTION PROTOTYPES
70+
==================================================================================================*/
71+
#define RTE_START_SEC_CODE
72+
#include "Rte_MemMap.h"
73+
74+
#ifdef MCAL_TESTING_ENVIRONMENT
75+
/**
76+
@brief This function checks that all entered exclusive areas were also exited.
77+
@details This function checks that all entered exclusive areas were also exited. The check
78+
is done by verifying that all reentry_guard_* static variables are back to the
79+
zero value.
80+
81+
@param[in] void No input parameters
82+
@return void This function does not return a value. Test asserts are used instead.
83+
84+
@pre None
85+
@post None
86+
87+
@remarks Covers
88+
@remarks Implements
89+
*/
90+
void SchM_Check_sent(void);
91+
#endif /*MCAL_TESTING_ENVIRONMENT*/
92+
93+
extern void SchM_Enter_Sent_SENT_EXCLUSIVE_AREA_00(void);
94+
extern void SchM_Exit_Sent_SENT_EXCLUSIVE_AREA_00(void);
95+
96+
extern void SchM_Enter_Sent_SENT_EXCLUSIVE_AREA_01(void);
97+
extern void SchM_Exit_Sent_SENT_EXCLUSIVE_AREA_01(void);
98+
99+
100+
101+
102+
#define RTE_STOP_SEC_CODE
103+
#include "Rte_MemMap.h"
104+
105+
#ifdef __cplusplus
106+
}
107+
#endif
108+
109+
/** @} */
110+
111+
#endif /* SCHM_SENT_H */

0 commit comments

Comments
 (0)