S32 SDK
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 (LPI2C_INSTANCE_COUNT > 0u)
57 /* Implementation of LPI2C0 master handler named in startup code. */
58 void LPI2C0_Master_IRQHandler(void)
59 {
61 }
62 
63 /* Implementation of LPI2C0 slave handler named in startup code. */
64 void LPI2C0_Slave_IRQHandler(void)
65 {
67 }
68 
69 #if(LPI2C_INSTANCE_COUNT == 2u)
70 
71 /* Implementation of LPI2C1 master handler named in startup code. */
72 void LPI2C1_Master_IRQHandler(void)
73 {
75 }
76 
77 /* Implementation of LPI2C1 slave handler named in startup code. */
78 void LPI2C1_Slave_IRQHandler(void)
79 {
81 }
82 
83 #endif
84 
85 #endif
86 
87 /*******************************************************************************
88  * EOF
89  ******************************************************************************/
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.