mirror of
https://github.com/Dev-KATECH/ADM.git
synced 2026-05-17 01:43:59 +09:00
156 lines
6.0 KiB
C
156 lines
6.0 KiB
C
/*==================================================================================================
|
|
* Project : RTD AUTOSAR 4.4
|
|
* Platform : CORTEXM
|
|
* Peripheral : LPI2C
|
|
* Dependencies : none
|
|
*
|
|
* Autosar Version : 4.4.0
|
|
* Autosar Revision : ASR_REL_4_4_REV_0000
|
|
* Autosar Conf.Variant :
|
|
* SW Version : 0.9.0
|
|
* Build Version : S32K3_RTD_0_9_0__ASR_REL_4_4_REV_0000_20210326
|
|
*
|
|
* (c) Copyright 2020 - 2021 NXP Semiconductors
|
|
* All Rights Reserved.
|
|
*
|
|
* NXP Confidential. 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 LPI2C_IP_CFG_H
|
|
#define LPI2C_IP_CFG_H
|
|
|
|
/**
|
|
* @file
|
|
*
|
|
* @addtogroup LPI2C_DRIVER_CONFIGURATION Lpi2c Driver Configurations
|
|
* @{
|
|
*/
|
|
|
|
|
|
#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 "OsIf.h"
|
|
|
|
/*==================================================================================================
|
|
* SOURCE FILE VERSION INFORMATION
|
|
==================================================================================================*/
|
|
#define LPI2C_IP_CFG_VENDOR_ID 43
|
|
#define LPI2C_IP_CFG_MODULE_ID 255
|
|
#define LPI2C_IP_CFG_AR_RELEASE_MAJOR_VERSION 4
|
|
#define LPI2C_IP_CFG_AR_RELEASE_MINOR_VERSION 4
|
|
#define LPI2C_IP_CFG_AR_RELEASE_REVISION_VERSION 0
|
|
#define LPI2C_IP_CFG_SW_MAJOR_VERSION 0
|
|
#define LPI2C_IP_CFG_SW_MINOR_VERSION 9
|
|
#define LPI2C_IP_CFG_SW_PATCH_VERSION 0
|
|
|
|
|
|
/*==================================================================================================
|
|
FILE VERSION CHECKS
|
|
==================================================================================================*/
|
|
|
|
/* TBD */
|
|
|
|
/*==================================================================================================
|
|
LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS)
|
|
==================================================================================================*/
|
|
|
|
/*==================================================================================================
|
|
LOCAL CONSTANTS
|
|
==================================================================================================*/
|
|
|
|
|
|
/*==================================================================================================
|
|
* LOCAL MACROS
|
|
==================================================================================================*/
|
|
|
|
/*==================================================================================================
|
|
LOCAL VARIABLES
|
|
==================================================================================================*/
|
|
|
|
|
|
/*==================================================================================================
|
|
GLOBAL CONSTANTS
|
|
==================================================================================================*/
|
|
|
|
|
|
#define LPI2C_IP_NUMBER_OF_MASTER_INSTANCES 1U
|
|
#define LPI2C_IP_NUMBER_OF_SLAVE_INSTANCES 1U
|
|
|
|
#define LPI2C_COMMON_IRQ_MASTER_AND_SLAVE
|
|
/**
|
|
* @brief Development error detection for IP layer
|
|
*/
|
|
#define LPI2C_IP_DEV_ERROR_DETECT STD_OFF
|
|
|
|
/**
|
|
* @brief Event error detection for IP layer
|
|
*/
|
|
#define LPI2C_IP_EVENT_ERROR_DETECT STD_OFF
|
|
|
|
/**
|
|
* @brief Dma support enable/disabled
|
|
*/
|
|
#define LPI2C_IP_DMA_FEATURE_AVAILABLE STD_OFF
|
|
|
|
/**
|
|
* @brief Enable User Mode Support.
|
|
*/
|
|
#define LPI2C_ENABLE_USER_MODE_SUPPORT (STD_OFF)
|
|
|
|
/**
|
|
* @brief LPI2C timeout type
|
|
*/
|
|
#define I2C_TIMEOUT_TYPE OSIF_COUNTER_SYSTEM
|
|
|
|
/** Check the driver user mode is enabled only when the MCAL_ENABLE_USER_MODE_SUPPORT is enabled */
|
|
#ifndef MCAL_ENABLE_USER_MODE_SUPPORT
|
|
#if (STD_ON == LPI2C_ENABLE_USER_MODE_SUPPORT)
|
|
#error MCAL_ENABLE_USER_MODE_SUPPORT is not enabled. For running I2C in user mode, the MCAL_ENABLE_USER_MODE_SUPPORT macro needs to be defined.
|
|
#endif /* (STD_ON == LPI2C_ENABLE_USER_MODE_SUPPORT) */
|
|
#endif /* ifndef MCAL_ENABLE_USER_MODE_SUPPORT */
|
|
|
|
/*==================================================================================================
|
|
GLOBAL VARIABLES
|
|
==================================================================================================*/
|
|
|
|
/*==================================================================================================
|
|
LOCAL FUNCTION PROTOTYPES
|
|
==================================================================================================*/
|
|
|
|
|
|
/*==================================================================================================
|
|
LOCAL FUNCTIONS
|
|
==================================================================================================*/
|
|
|
|
|
|
/*==================================================================================================
|
|
GLOBAL FUNCTIONS
|
|
==================================================================================================*/
|
|
|
|
#endif /* LPI2C_IP_CFG_H */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/** @} */
|
|
|
|
|