S32 SDK
lpspi_irq.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-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 
19 
52 #include <assert.h>
53 #include <stdbool.h>
54 #include "device_registers.h"
55 #include "lpspi_shared_function.h"
56 
57 
63 /*******************************************************************************
64  * Variables
65  ******************************************************************************/
66 
67 /*******************************************************************************
68  * Code
69  ******************************************************************************/
70 
71 #if (LPSPI_INSTANCE_COUNT == 1U)
72 
77 void LPSPI0_IRQHandler(void)
78 {
80 }
81 
82 #elif (LPSPI_INSTANCE_COUNT == 2U)
83 
88 void LPSPI0_IRQHandler(void)
89 {
91 }
92 
98 void LPSPI1_IRQHandler(void)
99 {
101 }
102 
103 #else
104 
110 {
112 }
113 
120 {
122 }
123 
130 {
132 }
133 
134 #endif
135 
138 /*******************************************************************************
139  * EOF
140  ******************************************************************************/
141 
void LPSPI2_IRQHandler(void)
This function is the implementation of LPSPI2 handler named in startup code.
Definition: lpspi_irq.c:129
void LPSPI0_IRQHandler(void)
This function is the implementation of LPSPI0 handler named in startup code.
Definition: lpspi_irq.c:109
void LPSPI1_IRQHandler(void)
This function is the implementation of LPSPI1 handler named in startup code.
Definition: lpspi_irq.c:119
void LPSPI_DRV_IRQHandler(uint32_t instance)
The function LPSPI_DRV_IRQHandler passes IRQ control to either the master or slave driver...