S32 SDK
lin_irq.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015, 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 
36 /*******************************************************************************
37  * Includes
38  ******************************************************************************/
39 #include "lin_driver.h"
40 
41 /*******************************************************************************
42  * Code
43  ******************************************************************************/
44 #if (LPUART_INSTANCE_COUNT > 0U)
45 static void LIN_LPUART0_RxTx_IRQHandler(void)
46 {
48 }
49 
50 #ifdef LPUART_ERR_IRQS
51 static void LIN_LPUART0_ERR_IRQHandler(void)
52 {
54 }
55 #endif
56 #endif /* if (LPUART_INSTANCE_COUNT > 0U) */
57 
58 #if (LPUART_INSTANCE_COUNT > 1U)
59 static void LIN_LPUART1_RxTx_IRQHandler(void)
60 {
62 }
63 
64 #ifdef LPUART_ERR_IRQS
65 static void LIN_LPUART1_ERR_IRQHandler(void)
66 {
68 }
69 #endif
70 #endif /* if (LPUART_INSTANCE_COUNT > 1U) */
71 
72 #if (LPUART_INSTANCE_COUNT > 2U)
73 static void LIN_LPUART2_RxTx_IRQHandler(void)
74 {
76 }
77 
78 #ifdef LPUART_ERR_IRQS
79 static void LIN_LPUART2_ERR_IRQHandler(void)
80 {
82 }
83 #endif
84 #endif /* if (LPUART_INSTANCE_COUNT > 2U) */
85 
87 {
88 #if (LPUART_INSTANCE_COUNT > 0U)
89  LIN_LPUART0_RxTx_IRQHandler,
90 #endif
91 #if (LPUART_INSTANCE_COUNT > 1U)
92  LIN_LPUART1_RxTx_IRQHandler,
93 #endif
94 #if (LPUART_INSTANCE_COUNT > 2U)
95  LIN_LPUART2_RxTx_IRQHandler,
96 #endif
97 };
98 
99 #ifdef LPUART_ERR_IRQS
100 isr_t g_linLpuartErrIsrs[LPUART_INSTANCE_COUNT] =
101 {
102 #if (LPUART_INSTANCE_COUNT > 0U)
103  LIN_LPUART0_ERR_IRQHandler,
104 #endif
105 #if (LPUART_INSTANCE_COUNT > 1U)
106  LIN_LPUART1_ERR_IRQHandler,
107 #endif
108 #if (LPUART_INSTANCE_COUNT > 2U)
109  LIN_LPUART2_ERR_IRQHandler,
110 #endif
111 };
112 #endif
113 /******************************************************************************/
114 /* EOF */
115 /******************************************************************************/
isr_t g_linLpuartIsrs[LPUART_INSTANCE_COUNT]
Definition: lin_irq.c:86
void LIN_DRV_IRQHandler(uint32_t instance)
Interrupt handler for LIN Hardware Interface.
Definition: lin_driver.c:466
#define LPUART_INSTANCE_COUNT
Definition: S32K142.h:6615
void(* isr_t)(void)
Interrupt handler type.