Add MCAL Src

This commit is contained in:
2025-10-01 19:27:26 +09:00
parent a6fcd09d1e
commit 38fbe9c9b2
1456 changed files with 1451886 additions and 0 deletions

View File

@@ -0,0 +1,120 @@
/*============================================================================*/
/* Project = AUTOSAR Renesas CPF MCAL Components */
/* Module = ComStack_Cfg.h */
/* SW-VERSION = 1.0.0 */
/*============================================================================*/
/* COPYRIGHT */
/*============================================================================*/
/* Copyright(c) 2021 Renesas Electronics Corporation. */
/*============================================================================*/
/* Purpose: */
/* Provision for Communication Stack dependent types */
/* */
/*============================================================================*/
/* */
/* Unless otherwise agreed upon in writing between your company and */
/* Renesas Electronics Corporation the following shall apply! */
/* */
/* Warranty Disclaimer */
/* */
/* There is no warranty of any kind whatsoever granted by Renesas. Any */
/* warranty is expressly disclaimed and excluded by Renesas, either expressed */
/* or implied, including but not limited to those for non-infringement of */
/* intellectual property, merchantability and/or fitness for the particular */
/* purpose. */
/* */
/* Renesas shall not have any obligation to maintain, service or provide bug */
/* fixes for the supplied Product(s) and/or the Application. */
/* */
/* Each User is solely responsible for determining the appropriateness of */
/* using the Product(s) and assumes all risks associated with its exercise */
/* of rights under this Agreement, including, but not limited to the risks */
/* and costs of program errors, compliance with applicable laws, damage to */
/* or loss of data, programs or equipment, and unavailability or */
/* interruption of operations. */
/* */
/* Limitation of Liability */
/* */
/* In no event shall Renesas be liable to the User for any incidental, */
/* consequential, indirect, or punitive damage (including but not limited */
/* to lost profits) regardless of whether such liability is based on breach */
/* of contract, tort, strict liability, breach of warranties, failure of */
/* essential purpose or otherwise and even if advised of the possibility of */
/* such damages. Renesas shall not be liable for any services or products */
/* provided by third party vendors, developers or consultants identified or */
/* referred to the User by Renesas in connection with the Product(s) and/or */
/* the Application. */
/* */
/*============================================================================*/
/* Environment: */
/* Devices: CPF */
/*============================================================================*/
/*******************************************************************************
** Deviation **
*******************************************************************************/
/*
* [SWS_COMTYPE_00029]
* Normally, this file should be generated by generator.
* However, as Renesas MCAL, this file shall be created as fixed file.
*/
/*******************************************************************************
** Revision Control History **
*******************************************************************************/
/*
* 1.0.0: 20/08/2021 : Initial Version
*/
/******************************************************************************/
#ifndef COMSTACK_CFG_H
#define COMSTACK_CFG_H
/*******************************************************************************
** Include Section **
*******************************************************************************/
/*******************************************************************************
** Version Information **
*******************************************************************************/
/*
* AUTOSAR specification version information
*/
#define COMSTACK_CFG_AR_RELEASE_MAJOR_VERSION 4
#define COMSTACK_CFG_AR_RELEASE_MINOR_VERSION 5
#define COMSTACK_CFG_AR_RELEASE_REVISION_VERSION 0
/*
* File version information
*/
#define COMSTACK_CFG_SW_MAJOR_VERSION 1
#define COMSTACK_CFG_SW_MINOR_VERSION 0
#define COMSTACK_CFG_SW_PATCH_VERSION 0
/*******************************************************************************
** Global Symbols **
*******************************************************************************/
/*******************************************************************************
** Global Data Types (ECU dependent) **
*******************************************************************************/
/* SWS_COMTYPE_00005 */
typedef uint8 PduIdType; /* Type of PDU ID.
Allowed ranges: uint8 .. uint16 */
/* SWS_COMTYPE_00008 */
typedef uint16 PduLengthType; /* Type of PDU Length.
Allowed ranges: uint8 .. uint32 */
/*******************************************************************************
** Function Prototypes **
*******************************************************************************/
#endif /* COMSTACK_CFG_H */
/*******************************************************************************
** End of File **
*******************************************************************************/

View File

@@ -0,0 +1,168 @@
/*============================================================================*/
/* Project = AUTOSAR Renesas CPF MCAL Components */
/* Module = ComStack_Types.h */
/* SW-VERSION = 1.0.0 */
/*============================================================================*/
/* COPYRIGHT */
/*============================================================================*/
/* Copyright(c) 2021 Renesas Electronics Corporation. */
/*============================================================================*/
/* Purpose: */
/* Provision for Communication Stack dependent types */
/* */
/*============================================================================*/
/* */
/* Unless otherwise agreed upon in writing between your company and */
/* Renesas Electronics Corporation the following shall apply! */
/* */
/* Warranty Disclaimer */
/* */
/* There is no warranty of any kind whatsoever granted by Renesas. Any */
/* warranty is expressly disclaimed and excluded by Renesas, either expressed */
/* or implied, including but not limited to those for non-infringement of */
/* intellectual property, merchantability and/or fitness for the particular */
/* purpose. */
/* */
/* Renesas shall not have any obligation to maintain, service or provide bug */
/* fixes for the supplied Product(s) and/or the Application. */
/* */
/* Each User is solely responsible for determining the appropriateness of */
/* using the Product(s) and assumes all risks associated with its exercise */
/* of rights under this Agreement, including, but not limited to the risks */
/* and costs of program errors, compliance with applicable laws, damage to */
/* or loss of data, programs or equipment, and unavailability or */
/* interruption of operations. */
/* */
/* Limitation of Liability */
/* */
/* In no event shall Renesas be liable to the User for any incidental, */
/* consequential, indirect, or punitive damage (including but not limited */
/* to lost profits) regardless of whether such liability is based on breach */
/* of contract, tort, strict liability, breach of warranties, failure of */
/* essential purpose or otherwise and even if advised of the possibility of */
/* such damages. Renesas shall not be liable for any services or products */
/* provided by third party vendors, developers or consultants identified or */
/* referred to the User by Renesas in connection with the Product(s) and/or */
/* the Application. */
/* */
/*============================================================================*/
/* Environment: */
/* Devices: CPF */
/*============================================================================*/
/*******************************************************************************
** Revision Control History **
*******************************************************************************/
/*
* 1.0.0: 20/08/2021 : Initial Version
*/
/******************************************************************************/
#ifndef COMSTACK_TYPES_H
#define COMSTACK_TYPES_H
/*******************************************************************************
** Include Section **
*******************************************************************************/
#include "Std_Types.h" /* Standard AUTOSAR types */
#include "ComStack_Cfg.h" /* Definition of PduIdType and PduLengthType */
/*******************************************************************************
** Version Information **
*******************************************************************************/
/*
* AUTOSAR specification version information
*/
#define COMSTACK_TYPES_AR_RELEASE_MAJOR_VERSION 4
#define COMSTACK_TYPES_AR_RELEASE_MINOR_VERSION 5
#define COMSTACK_TYPES_AR_RELEASE_REVISION_VERSION 0
/*
* File version information
*/
#define COMSTACK_TYPES_SW_MAJOR_VERSION 1
#define COMSTACK_TYPES_SW_MINOR_VERSION 0
#define COMSTACK_TYPES_SW_PATCH_VERSION 0
/*******************************************************************************
** Global Symbols **
*******************************************************************************/
/*******************************************************************************
** Global Data Types (ECU dependent) **
*******************************************************************************/
/* SWS_COMTYPE_00036 */
typedef uint8 PNCHandleType;
/* SWS_COMTYPE_00020 */
typedef uint8 BusTrcvErrorType;
/* SWS_COMTYPE_00038 */
typedef uint8 NetworkHandleType;
/* SWS_COMTYPE_00039 */
typedef uint8 IcomConfigIdType;
/*******************************************************************************
** Global Data Types (ECU independent) **
*******************************************************************************/
/* SWS_COMTYPE_00011 */
typedef struct
{
P2VAR(uint8, AUTOMATIC, AUTOSAR_COMSTACKDATA) SduDataPtr;
P2VAR(uint8, AUTOMATIC, AUTOSAR_COMSTACKDATA) MetaDataPtr;
PduLengthType SduLength;
} PduInfoType; /* Basic information about a PDU of any type */
/* SWS_COMTYPE_00031 */
typedef enum
{
TP_STMIN,
TP_BS,
TP_BC
} TPParameterType; /* Specify parameter to which value has to be changed */
/* SWS_COMTYPE_00012 */
typedef enum
{
BUFREQ_OK,
BUFREQ_E_NOT_OK,
BUFREQ_E_BUSY,
BUFREQ_E_OVFL
} BufReq_ReturnType; /* result of a buffer request */
/* SWS_COMTYPE_00027 */
typedef enum
{
TP_DATACONF,
TP_DATARETRY,
TP_CONFPENDING
} TpDataStateType; /* Variables of this type shall be used to store the */
/* state of TP buffer */
/* SWS_COMTYPE_00037 */
typedef struct
{
TpDataStateType TpDataState;
PduLengthType TxTpDataCnt;
} RetryInfoType; /* Variables of this type shall be used to store the */
/* information about Tp buffer handling. */
/* SWS_COMTYPE_00040 */
typedef enum
{
ICOM_SWITCH_E_OK,
ICOM_SWITCH_E_FAILED
} IcomSwitch_ErrorType; /* The errors which can occur when activating */
/* or deactivating Pretended Networking. */
/*******************************************************************************
** Function Prototypes **
*******************************************************************************/
#endif /* COMSTACK_TYPES_H */
/*******************************************************************************
** End of File **
*******************************************************************************/

View File

@@ -0,0 +1,138 @@
/*============================================================================*/
/* Project = AUTOSAR Renesas CPF MCAL Components */
/* Module = Std_Types.h */
/* SW-VERSION = 1.0.0 */
/*============================================================================*/
/* COPYRIGHT */
/*============================================================================*/
/* Copyright(c) 2021 Renesas Electronics Corporation. */
/*============================================================================*/
/* Purpose: */
/* Provision for Standard types */
/* */
/*============================================================================*/
/* */
/* Unless otherwise agreed upon in writing between your company and */
/* Renesas Electronics Corporation the following shall apply! */
/* */
/* Warranty Disclaimer */
/* */
/* There is no warranty of any kind whatsoever granted by Renesas. Any */
/* warranty is expressly disclaimed and excluded by Renesas, either expressed */
/* or implied, including but not limited to those for non-infringement of */
/* intellectual property, merchantability and/or fitness for the particular */
/* purpose. */
/* */
/* Renesas shall not have any obligation to maintain, service or provide bug */
/* fixes for the supplied Product(s) and/or the Application. */
/* */
/* Each User is solely responsible for determining the appropriateness of */
/* using the Product(s) and assumes all risks associated with its exercise */
/* of rights under this Agreement, including, but not limited to the risks */
/* and costs of program errors, compliance with applicable laws, damage to */
/* or loss of data, programs or equipment, and unavailability or */
/* interruption of operations. */
/* */
/* Limitation of Liability */
/* */
/* In no event shall Renesas be liable to the User for any incidental, */
/* consequential, indirect, or punitive damage (including but not limited */
/* to lost profits) regardless of whether such liability is based on breach */
/* of contract, tort, strict liability, breach of warranties, failure of */
/* essential purpose or otherwise and even if advised of the possibility of */
/* such damages. Renesas shall not be liable for any services or products */
/* provided by third party vendors, developers or consultants identified or */
/* referred to the User by Renesas in connection with the Product(s) and/or */
/* the Application. */
/* */
/*============================================================================*/
/* Environment: */
/* Devices: CPF */
/*============================================================================*/
/*******************************************************************************
** Revision Control History **
*******************************************************************************/
/*
* 1.0.0: 20/08/2021 : Initial Version
*/
/******************************************************************************/
#ifndef STD_TYPES_H
#define STD_TYPES_H
/*******************************************************************************
** Include Section **
*******************************************************************************/
#include "Compiler.h" /* mapping compiler specific keywords */
#include "Platform_Types.h" /* platform specific type definitions */
/*******************************************************************************
** Version Information **
*******************************************************************************/
/*
* AUTOSAR specification version information
*/
#define STD_TYPES_AR_RELEASE_MAJOR_VERSION 4
#define STD_TYPES_AR_RELEASE_MINOR_VERSION 5
#define STD_TYPES_AR_RELEASE_REVISION_VERSION 0
/*
* File version information
*/
#define STD_TYPES_SW_MAJOR_VERSION 1
#define STD_TYPES_SW_MINOR_VERSION 0
#define STD_TYPES_SW_PATCH_VERSION 0
/*******************************************************************************
** Global Symbols **
*******************************************************************************/
/*******************************************************************************
** Global Data Types **
*******************************************************************************/
/* for OSEK compliance this typedef has been added (SWS_Std_00006) */
#ifndef STATUSTYPEDEFINED
#define STATUSTYPEDEFINED
#define E_OK 0x00u
typedef unsigned char StatusType;
#endif
#define E_NOT_OK 0x01u
/* SWS_Std_00005 */
/* Std_ReturnType shall normally be used with value E_OK or E_NOT_OK. */
typedef uint8 Std_ReturnType;
typedef struct
{
uint16 vendorID;
uint16 moduleID;
uint8 sw_major_version;
uint8 sw_minor_version;
uint8 sw_patch_version;
} Std_VersionInfoType; /* SWS_Std_00015 */
/* SWS_Std_00007 */
#define STD_HIGH 0x01u /* Physical state 5V or 3.3V */
#define STD_LOW 0x00u /* Physical state 0V */
/* SWS_Std_00013 */
#define STD_ACTIVE 0x01u /* Logical state active */
#define STD_IDLE 0x00u /* Logical state idle */
/* SWS_Std_00010 */
#define STD_ON 0x01u
#define STD_OFF 0x00u
/*******************************************************************************
** Function Prototypes **
*******************************************************************************/
#endif /* STD_TYPES_H */
/*******************************************************************************
** End of File **
*******************************************************************************/

View File

@@ -0,0 +1,9 @@
#######################################################################
# REGISTRY
#
CC_INCLUDE_PATH += $(PROJECT_ROOT)\common\include\$(AUTOSAR_VERSION)
CPP_INCLUDE_PATH +=
ASM_INCLUDE_PATH +=
PREPROCESSOR_DEFINES +=
#######################################################################