ADM/GW/RTD/include/Lpi2c_Ip_Irq.h
2024-08-08 10:00:15 +09:00

92 lines
2.7 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_IRQ_H__
#define LPI2C_IP_IRQ_H__
/**
* @file
*
* @addtogroup LPI2C_DRIVER Lpi2c Driver
* @{
*/
#include "Lpi2c_Ip_Cfg.h"
#include "S32K344_LPI2C.h"
#include "Mcal.h"
#define I2C_START_SEC_CODE
#include "I2c_MemMap.h"
/*******************************************************************************
* Code
******************************************************************************/
#if defined (LPI2C_COMMON_IRQ_MASTER_AND_SLAVE)
#if (LPI2C_INSTANCE_COUNT > 0u)
/* LPI2C0 master and slave handler named in startup code. */
void LPI2C0_Master_Slave_IRQHandler(void);
/* LPI2C1 master and slave handler named in startup code. */
#if (LPI2C_INSTANCE_COUNT == 2u)
void LPI2C1_Master_Slave_IRQHandler(void);
#endif
#endif
#else
#if (LPI2C_INSTANCE_COUNT > 0u)
/* LPI2C0 master handler named in startup code. */
void LPI2C0_Master_IRQHandler(void);
/* LPI2C0 slave handler named in startup code. */
void LPI2C0_Slave_IRQHandler(void);
#if(LPI2C_INSTANCE_COUNT == 2u)
/* LPI2C1 master handler named in startup code. */
void LPI2C1_Master_IRQHandler(void);
/* LPI2C1 slave handler named in startup code. */
void LPI2C1_Slave_IRQHandler(void);
#endif /* LPI2C_INSTANCE_COUNT == 2u */
#endif /* LPI2C_INSTANCE_COUNT > 0u */
#endif /* endif cpu defined */
#define I2C_STOP_SEC_CODE
#include "I2c_MemMap.h"
#endif /* LPI2C_IP_IRQ_H__ */
/** @}*/
/*******************************************************************************
* EOF
******************************************************************************/