-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
s32: soc: s32z2: add PSI5_S soc specific code
Code autogenerated with S32 Design Studio for s32ze Signed-off-by: Tu Nguyen Van <[email protected]>
- Loading branch information
1 parent
a953160
commit a4e9f18
Showing
3 changed files
with
386 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
/*================================================================================================== | ||
* Project : RTD AUTOSAR 4.7 | ||
* Platform : CORTEXM | ||
* Peripheral : | ||
* Dependencies : none | ||
* | ||
* Autosar Version : 4.7.0 | ||
* Autosar Revision : ASR_REL_4_7_REV_0000 | ||
* Autosar Conf.Variant : | ||
* SW Version : 2.0.0 | ||
* Build Version : S32ZE_RTD_2_0_0_D2407_ASR_REL_4_7_REV_0000_20240726 | ||
* | ||
* Copyright 2021-2024 NXP | ||
* | ||
* NXP Confidential and Proprietary. This software is owned or controlled by NXP and may only be | ||
* used strictly in accordance with the applicable license terms. By expressly | ||
* accepting such terms or by downloading, installing, activating and/or otherwise | ||
* using the software, you are agreeing that you have read, and that you agree to | ||
* comply with and are bound by, such license terms. If you do not agree to be | ||
* bound by the applicable license terms, then you may not retain, install, | ||
* activate or otherwise use the software. | ||
==================================================================================================*/ | ||
|
||
#ifndef PSI5_S_IP_CFG_H | ||
#define PSI5_S_IP_CFG_H | ||
|
||
/** | ||
* @file Psi5_S_Ip_Cfg.h | ||
* | ||
* @addtogroup PSI5_S_IP PSI5 IPV Driver | ||
* @{ | ||
*/ | ||
|
||
|
||
#ifdef __cplusplus | ||
extern "C"{ | ||
#endif | ||
|
||
/*================================================================================================== | ||
INCLUDE FILES | ||
1) system and project includes | ||
2) needed interfaces from external units | ||
3) internal and external interfaces from this unit | ||
==================================================================================================*/ | ||
#include "Mcal.h" | ||
#include "Psi5_S_Ip_Init_PBcfg.h" | ||
|
||
#include "Psi5_S_Ip_Types.h" | ||
#include "Psi5_S_Ip_Cfg_Defines.h" | ||
#if (STD_ON == PSI5_S_IP_DMA_IS_USED) | ||
#include "CDD_Mcl.h" | ||
#include "CDD_Mcl_Cfg.h" | ||
#endif | ||
|
||
/*================================================================================================== | ||
* SOURCE FILE VERSION INFORMATION | ||
==================================================================================================*/ | ||
#define PSI5_S_IP_CFG_VENDOR_ID 43 | ||
#define PSI5_S_IP_CFG_AR_RELEASE_MAJOR_VERSION 4 | ||
#define PSI5_S_IP_CFG_AR_RELEASE_MINOR_VERSION 7 | ||
#define PSI5_S_IP_CFG_AR_RELEASE_REVISION_VERSION 0 | ||
#define PSI5_S_IP_CFG_SW_MAJOR_VERSION 2 | ||
#define PSI5_S_IP_CFG_SW_MINOR_VERSION 0 | ||
#define PSI5_S_IP_CFG_SW_PATCH_VERSION 0 | ||
|
||
/*================================================================================================== | ||
* FILE VERSION CHECKS | ||
==================================================================================================*/ | ||
/* Checks current file and Psi5_S_Ip_Init_PBcfg.h header file are of the same vendor */ | ||
#if (PSI5_S_IP_CFG_VENDOR_ID != PSI5_S_IP_INIT_PBCFG_VENDOR_ID) | ||
#error "Psi5_S_Ip_Cfg.h and Psi5_S_Ip_Init_PBcfg.h have different vendor ids" | ||
#endif | ||
/* Check if current file and Psi5_S_Ip_Init_PBcfg.h header file are of the same Autosar version */ | ||
#if ((PSI5_S_IP_CFG_AR_RELEASE_MAJOR_VERSION != PSI5_S_IP_INIT_PBCFG_AR_RELEASE_MAJOR_VERSION) || \ | ||
(PSI5_S_IP_CFG_AR_RELEASE_MINOR_VERSION != PSI5_S_IP_INIT_PBCFG_AR_RELEASE_MINOR_VERSION) || \ | ||
(PSI5_S_IP_CFG_AR_RELEASE_REVISION_VERSION != PSI5_S_IP_INIT_PBCFG_AR_RELEASE_REVISION_VERSION)) | ||
#error "AutoSar Version Numbers of Psi5_S_Ip_Cfg.h and Psi5_S_Ip_Init_PBcfg.h are different" | ||
#endif | ||
/* Check if current file and Psi5_S_Ip_Init_PBcfg.h header file are of the same software version */ | ||
#if ((PSI5_S_IP_CFG_SW_MAJOR_VERSION != PSI5_S_IP_INIT_PBCFG_SW_MAJOR_VERSION) || \ | ||
(PSI5_S_IP_CFG_SW_MINOR_VERSION != PSI5_S_IP_INIT_PBCFG_SW_MINOR_VERSION) || \ | ||
(PSI5_S_IP_CFG_SW_PATCH_VERSION != PSI5_S_IP_INIT_PBCFG_SW_PATCH_VERSION)) | ||
#error "Software Version Numbers of Psi5_S_Ip_Cfg.h and Psi5_S_Ip_Init_PBcfg.h are different" | ||
#endif | ||
|
||
/* Checks against Psi5_S_Ip_Types.h */ | ||
#if (PSI5_S_IP_CFG_VENDOR_ID != PSI5_S_IP_TYPES_VENDOR_ID) | ||
#error "Psi5_S_Ip_Cfg.h and Psi5_S_Ip_Types.h have different vendor ids" | ||
#endif | ||
#if ((PSI5_S_IP_CFG_AR_RELEASE_MAJOR_VERSION != PSI5_S_IP_TYPES_AR_RELEASE_MAJOR_VERSION) || \ | ||
(PSI5_S_IP_CFG_AR_RELEASE_MINOR_VERSION != PSI5_S_IP_TYPES_AR_RELEASE_MINOR_VERSION) || \ | ||
(PSI5_S_IP_CFG_AR_RELEASE_REVISION_VERSION != PSI5_S_IP_TYPES_AR_RELEASE_REVISION_VERSION)) | ||
#error "AutoSar Version Numbers of Psi5_S_Ip.h and Psi5_S_Ip_Types.h are different" | ||
#endif | ||
#if ((PSI5_S_IP_CFG_SW_MAJOR_VERSION != PSI5_S_IP_TYPES_SW_MAJOR_VERSION) || \ | ||
(PSI5_S_IP_CFG_SW_MINOR_VERSION != PSI5_S_IP_TYPES_SW_MINOR_VERSION) || \ | ||
(PSI5_S_IP_CFG_SW_PATCH_VERSION != PSI5_S_IP_TYPES_SW_PATCH_VERSION)) | ||
#error "Software Version Numbers of Psi5_S_Ip_Cfg.h and Psi5_S_Ip_Types.h are different" | ||
#endif | ||
|
||
/* Checks against Psi5_S_Ip_Cfg_Defines.h */ | ||
#if (PSI5_S_IP_CFG_VENDOR_ID != PSI5_S_IP_CFG_DEFINES_VENDOR_ID) | ||
#error "Psi5_S_Ip_Cfg.h and Psi5_S_Ip_Cfg_Defines.h have different vendor ids" | ||
#endif | ||
#if ((PSI5_S_IP_CFG_AR_RELEASE_MAJOR_VERSION != PSI5_S_IP_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION) || \ | ||
(PSI5_S_IP_CFG_AR_RELEASE_MINOR_VERSION != PSI5_S_IP_CFG_DEFINES_AR_RELEASE_MINOR_VERSION) || \ | ||
(PSI5_S_IP_CFG_AR_RELEASE_REVISION_VERSION != PSI5_S_IP_CFG_DEFINES_AR_RELEASE_REVISION_VERSION)) | ||
#error "AutoSar Version Numbers of Psi5_S_Ip_Cfg.h and Psi5_S_Ip_Cfg_Defines.h are different" | ||
#endif | ||
#if ((PSI5_S_IP_CFG_SW_MAJOR_VERSION != PSI5_S_IP_CFG_DEFINES_SW_MAJOR_VERSION) || \ | ||
(PSI5_S_IP_CFG_SW_MINOR_VERSION != PSI5_S_IP_CFG_DEFINES_SW_MINOR_VERSION) || \ | ||
(PSI5_S_IP_CFG_SW_PATCH_VERSION != PSI5_S_IP_CFG_DEFINES_SW_PATCH_VERSION)) | ||
#error "Software Version Numbers of Psi5_S_Ip_Cfg.h and Psi5_S_Ip_Cfg_Defines.h are different" | ||
#endif | ||
|
||
#if (STD_ON == PSI5_S_IP_DMA_IS_USED) | ||
/* Check Psi5_S_Ip_Cfg.h against CDD_Mcl.h file versions */ | ||
#ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK | ||
#if ((PSI5_S_IP_CFG_AR_RELEASE_MAJOR_VERSION != CDD_MCL_AR_RELEASE_MAJOR_VERSION) || \ | ||
(PSI5_S_IP_CFG_AR_RELEASE_MINOR_VERSION != CDD_MCL_AR_RELEASE_MINOR_VERSION)) | ||
#error "AutoSar Version Numbers of Psi5_S_Ip_Cfg.h and CDD_Mcl.h are different" | ||
#endif | ||
#endif | ||
#endif | ||
|
||
/*================================================================================================== | ||
* DEFINES AND MACROS | ||
==================================================================================================*/ | ||
/** | ||
* @brief Collection of all configuration structures declarations. | ||
*/ | ||
#define PSI5_S_IP_CONFIG_EXT \ | ||
PSI5_S_IP_CONFIG_INIT_PB | ||
|
||
/*================================================================================================== | ||
* ENUMS | ||
==================================================================================================*/ | ||
|
||
/*================================================================================================== | ||
* STRUCTURES AND OTHER TYPEDEFS | ||
==================================================================================================*/ | ||
|
||
/*================================================================================================== | ||
* GLOBAL VARIABLE DECLARATIONS | ||
==================================================================================================*/ | ||
|
||
/*================================================================================================== | ||
* GLOBAL CONSTANTS | ||
==================================================================================================*/ | ||
|
||
/*================================================================================================== | ||
* FUNCTION PROTOTYPES | ||
==================================================================================================*/ | ||
|
||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
/** @} */ | ||
|
||
#endif /* PSI5_S_IP_CFG_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
/*================================================================================================== | ||
* Project : RTD AUTOSAR 4.7 | ||
* Platform : CORTEXM | ||
* Peripheral : | ||
* Dependencies : none | ||
* | ||
* Autosar Version : 4.7.0 | ||
* Autosar Revision : ASR_REL_4_7_REV_0000 | ||
* Autosar Conf.Variant : | ||
* SW Version : 2.0.0 | ||
* Build Version : S32ZE_RTD_2_0_0_D2407_ASR_REL_4_7_REV_0000_20240726 | ||
* | ||
* Copyright 2021-2024 NXP | ||
* | ||
* NXP Confidential and Proprietary. This software is owned or controlled by NXP and may only be | ||
* used strictly in accordance with the applicable license terms. By expressly | ||
* accepting such terms or by downloading, installing, activating and/or otherwise | ||
* using the software, you are agreeing that you have read, and that you agree to | ||
* comply with and are bound by, such license terms. If you do not agree to be | ||
* bound by the applicable license terms, then you may not retain, install, | ||
* activate or otherwise use the software. | ||
==================================================================================================*/ | ||
|
||
#ifndef PSI5_S_IP_CFG_DEFINES_H | ||
#define PSI5_S_IP_CFG_DEFINES_H | ||
|
||
/** | ||
* @file Psi5_S_Ip_Cfg_Defines.h | ||
* | ||
* @addtogroup PSI5_S_IP PSI5 IPV Driver | ||
* @{ | ||
*/ | ||
|
||
#ifdef __cplusplus | ||
extern "C"{ | ||
#endif | ||
|
||
/*================================================================================================== | ||
* INCLUDE FILES | ||
* 1) system and project includes | ||
* 2) needed interfaces from external units | ||
* 3) internal and external interfaces from this unit | ||
==================================================================================================*/ | ||
#include "S32Z2_PSI5_S.h" | ||
/*================================================================================================== | ||
* SOURCE FILE VERSION INFORMATION | ||
==================================================================================================*/ | ||
#define PSI5_S_IP_CFG_DEFINES_VENDOR_ID 43 | ||
#define PSI5_S_IP_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION 4 | ||
#define PSI5_S_IP_CFG_DEFINES_AR_RELEASE_MINOR_VERSION 7 | ||
#define PSI5_S_IP_CFG_DEFINES_AR_RELEASE_REVISION_VERSION 0 | ||
#define PSI5_S_IP_CFG_DEFINES_SW_MAJOR_VERSION 2 | ||
#define PSI5_S_IP_CFG_DEFINES_SW_MINOR_VERSION 0 | ||
#define PSI5_S_IP_CFG_DEFINES_SW_PATCH_VERSION 0 | ||
/*================================================================================================== | ||
* FILE VERSION CHECKS | ||
==================================================================================================*/ | ||
|
||
/*================================================================================================== | ||
* GLOBAL VARIABLE DECLARATIONS | ||
==================================================================================================*/ | ||
|
||
/*================================================================================================== | ||
* ENUMS | ||
==================================================================================================*/ | ||
|
||
/*================================================================================================== | ||
* CONSTANTS | ||
==================================================================================================*/ | ||
|
||
/*================================================================================================== | ||
* DEFINES AND MACROS | ||
==================================================================================================*/ | ||
|
||
/* Define for HW channelId of channel Psi5SChannel_0 */ | ||
#define PSI5_S_0_CH0 (0U) | ||
#define PSI5_S_IP_ENABLE_INTERRUPTS_PSI5_S_0_CH0 | ||
|
||
|
||
#define PSI5_S_IP_ENABLE_GLOBAL_INTERRUPTS_PSI5_S_INSTANCE0 | ||
|
||
|
||
#define PSI5_S_IP_DMA_IS_USED (STD_OFF) | ||
#define PSI5_S_IP_DEBUG_MODE (STD_OFF) | ||
#define PSI5_S_IP_DEV_ERROR_DETECT (STD_OFF) | ||
|
||
/* @brief Enables / Disables multipartition support */ | ||
#define PSI5_S_IP_MULTIPARTITION_SUPPORT (STD_ON) | ||
/* @brief Psi5S Osif source counter. This parameter is used to select between different OsIf counter implementation */ | ||
#define PSI5_S_IP_TIMEOUT_TYPE (OSIF_COUNTER_DUMMY) | ||
/* @brief Number of loops before returning PSI5_S_STATUS_TIMEOUT */ | ||
#define PSI5_S_IP_TIMEOUT_VALUE_US (0U) | ||
|
||
/*================================================================================================== | ||
* STRUCTURES AND OTHER TYPEDEFS | ||
==================================================================================================*/ | ||
|
||
/*================================================================================================== | ||
* FUNCTION PROTOTYPES | ||
==================================================================================================*/ | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
/** @} */ | ||
|
||
#endif /* PSI5_S_IP_CFG_DEFINES_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
/*================================================================================================== | ||
* Project : RTD AUTOSAR 4.7 | ||
* Platform : CORTEXM | ||
* Peripheral : | ||
* Dependencies : none | ||
* | ||
* Autosar Version : 4.7.0 | ||
* Autosar Revision : ASR_REL_4_7_REV_0000 | ||
* Autosar Conf.Variant : | ||
* SW Version : 2.0.0 | ||
* Build Version : S32ZE_RTD_2_0_0_D2407_ASR_REL_4_7_REV_0000_20240726 | ||
* | ||
* Copyright 2021-2024 NXP | ||
* | ||
* NXP Confidential and Proprietary. This software is owned or controlled by NXP and may only be | ||
* used strictly in accordance with the applicable license terms. By expressly | ||
* accepting such terms or by downloading, installing, activating and/or otherwise | ||
* using the software, you are agreeing that you have read, and that you agree to | ||
* comply with and are bound by, such license terms. If you do not agree to be | ||
* bound by the applicable license terms, then you may not retain, install, | ||
* activate or otherwise use the software. | ||
==================================================================================================*/ | ||
#ifndef PSI5_S_IP_INIT_PBCFG_H | ||
#define PSI5_S_IP_INIT_PBCFG_H | ||
|
||
/** | ||
* @file Psi5_S_Ip_PBcfg.h | ||
* | ||
* @addtogroup PSI5_S_IP PSI5 IPV Driver | ||
* @{ | ||
*/ | ||
|
||
|
||
#ifdef __cplusplus | ||
extern "C"{ | ||
#endif | ||
|
||
|
||
/*================================================================================================== | ||
INCLUDE FILES | ||
1) system and project includes | ||
2) needed interfaces from external units | ||
3) internal and external interfaces from this unit | ||
==================================================================================================*/ | ||
#include "Psi5_S_Ip_Types.h" | ||
|
||
/*================================================================================================== | ||
SOURCE FILE VERSION INFORMATION | ||
==================================================================================================*/ | ||
#define PSI5_S_IP_INIT_PBCFG_VENDOR_ID 43 | ||
#define PSI5_S_IP_INIT_PBCFG_AR_RELEASE_MAJOR_VERSION 4 | ||
#define PSI5_S_IP_INIT_PBCFG_AR_RELEASE_MINOR_VERSION 7 | ||
#define PSI5_S_IP_INIT_PBCFG_AR_RELEASE_REVISION_VERSION 0 | ||
#define PSI5_S_IP_INIT_PBCFG_SW_MAJOR_VERSION 2 | ||
#define PSI5_S_IP_INIT_PBCFG_SW_MINOR_VERSION 0 | ||
#define PSI5_S_IP_INIT_PBCFG_SW_PATCH_VERSION 0 | ||
|
||
/*================================================================================================== | ||
* FILE VERSION CHECKS | ||
==================================================================================================*/ | ||
/* Check if current file and Psi5_S_Ip_Types.h header file are of the same vendor */ | ||
#if (PSI5_S_IP_INIT_PBCFG_VENDOR_ID != PSI5_S_IP_TYPES_VENDOR_ID) | ||
#error "Psi5_S_Ip_INIT_PBcfg.h and Psi5_S_Ip_Types.h have different vendor ids" | ||
#endif | ||
/* Check if current file and Psi5_S_Ip_Types.h header file are of the same Autosar version */ | ||
#if ((PSI5_S_IP_INIT_PBCFG_AR_RELEASE_MAJOR_VERSION != PSI5_S_IP_TYPES_AR_RELEASE_MAJOR_VERSION) || \ | ||
(PSI5_S_IP_INIT_PBCFG_AR_RELEASE_MINOR_VERSION != PSI5_S_IP_TYPES_AR_RELEASE_MINOR_VERSION) || \ | ||
(PSI5_S_IP_INIT_PBCFG_AR_RELEASE_REVISION_VERSION != PSI5_S_IP_TYPES_AR_RELEASE_REVISION_VERSION) \ | ||
) | ||
#error "AutoSar Version Numbers of Psi5_S_Ip_INIT_PBcfg.h and Psi5_S_Ip_Types.h are different" | ||
#endif | ||
/* Check if current file and Psi5_S_Ip_Types.h header file are of the same software version */ | ||
#if ((PSI5_S_IP_INIT_PBCFG_SW_MAJOR_VERSION != PSI5_S_IP_TYPES_SW_MAJOR_VERSION) || \ | ||
(PSI5_S_IP_INIT_PBCFG_SW_MINOR_VERSION != PSI5_S_IP_TYPES_SW_MINOR_VERSION) || \ | ||
(PSI5_S_IP_INIT_PBCFG_SW_PATCH_VERSION != PSI5_S_IP_TYPES_SW_PATCH_VERSION) \ | ||
) | ||
#error "Software Version Numbers of Psi5_S_Ip_INIT_PBcfg.h and Psi5_S_Ip_Types.h are different" | ||
#endif | ||
/*================================================================================================== | ||
CONSTANTS | ||
==================================================================================================*/ | ||
|
||
/*================================================================================================== | ||
DEFINES AND MACROS | ||
==================================================================================================*/ | ||
|
||
/*================================================================================================== | ||
ENUMS | ||
==================================================================================================*/ | ||
|
||
/*================================================================================================== | ||
STRUCTURES AND OTHER TYPEDEFS | ||
==================================================================================================*/ | ||
|
||
/*================================================================================================== | ||
GLOBAL VARIABLE DECLARATIONS | ||
==================================================================================================*/ | ||
|
||
#define PSI5_START_SEC_CONFIG_DATA_UNSPECIFIED | ||
#include "Psi5_MemMap.h" | ||
#define PSI5_S_IP_CONFIG_INIT_PB \ | ||
extern const Psi5_S_Ip_ConfigType Psi5_S_Ip_Config_Init; | ||
#define PSI5_STOP_SEC_CONFIG_DATA_UNSPECIFIED | ||
#include "Psi5_MemMap.h" | ||
|
||
/*================================================================================================== | ||
FUNCTION PROTOTYPES | ||
==================================================================================================*/ | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
/**@}*/ | ||
|
||
#endif /* PSI5_S_IP_INIT_PBCFG_H */ |