lpi2c_irq.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 - 2016, Freescale Semiconductor, Inc.
3  * Copyright 2016 NXP
4  * All rights reserved.
5  *
6  * THIS SOFTWARE IS PROVIDED BY NXP "AS IS" AND ANY EXPRESSED OR
7  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
8  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
9  * IN NO EVENT SHALL NXP OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
10  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
11  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
12  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
13  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
14  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
15  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
16  * THE POSSIBILITY OF SUCH DAMAGE.
17  */
18 
49 #include "device_registers.h"
50 #include "lpi2c_driver.h"
51 
52 /*******************************************************************************
53  * Code
54  ******************************************************************************/
55 
56 #if defined (S32K11x_SERIES)
57 /* Implementation of LPI2C0 master and slave handler named in startup code. */
59 {
61 }
62 
63 #else
64 #if (LPI2C_INSTANCE_COUNT > 0u)
65 /* Implementation of LPI2C0 master handler named in startup code. */
66 void LPI2C0_Master_IRQHandler(void)
67 {
69 }
70 
71 /* Implementation of LPI2C0 slave handler named in startup code. */
72 void LPI2C0_Slave_IRQHandler(void)
73 {
75 }
76 
77 #if(LPI2C_INSTANCE_COUNT == 2u)
78 
79 /* Implementation of LPI2C1 master handler named in startup code. */
80 void LPI2C1_Master_IRQHandler(void)
81 {
83 }
84 
85 /* Implementation of LPI2C1 slave handler named in startup code. */
86 void LPI2C1_Slave_IRQHandler(void)
87 {
89 }
90 
91 #endif
92 
93 #endif
94 
95 #endif
96 /*******************************************************************************
97  * EOF
98  ******************************************************************************/
void LPI2C0_Master_Slave_IRQHandler(void)
Definition: lpi2c_irq.c:58
void LPI2C_DRV_MasterIRQHandler(uint32_t instance)
Handle master operation when I2C interrupt occurs.
void LPI2C_DRV_SlaveIRQHandler(uint32_t instance)
Handle slave operation when I2C interrupt occurs.
void LPI2C_DRV_ModuleIRQHandler(uint32_t instance)
Handler for both slave and master operation when I2C interrupt occurs.