1 /*
2  * Copyright (c) 2016, Freescale Semiconductor, Inc.
3  * Copyright 2017 NXP
4  * All rights reserved.
5  *
6  * SPDX-License-Identifier: BSD-3-Clause
7  */
8 
9 /**
10  * @file gpio_driver_irq.c
11  * @brief The gpio_driver_irq.c file containes the Generic IRQ implmentation for GPIO.
12 */
13 
14 #include "fsl_gint.h"
15 
16 extern void issdk_gpio_handle_interrupt(GINT_Type *base, gint_port_t portNumber);
17 
18 /*******************************************************************************
19  * Functions - GPIOIRQ implementation
20  ******************************************************************/
21 #if defined(GINT0)
PORT0_IRQHandler(void)22 void PORT0_IRQHandler(void)
23 {
24     issdk_gpio_handle_interrupt(GINT0, kGINT_Port0);
25 }
26 #endif
27 #if defined(GINT1)
PORT1_IRQHandler(void)28 void PORT1_IRQHandler(void)
29 {
30     issdk_gpio_handle_interrupt(GINT1, kGINT_Port1);
31 }
32 #endif
33 #if defined(GINT2)
PORT2_IRQHandler(void)34 void PORT2_IRQHandler(void)
35 {
36     issdk_gpio_handle_interrupt(GINT2, kGINT_Port2);
37 }
38 #endif
39 #if defined(GINT3)
PORT3_IRQHandler(void)40 void PORT3_IRQHandler(void)
41 {
42     issdk_gpio_handle_interrupt(GINT3, kGINT_Port3);
43 }
44 #endif
45 #if defined(GINT4)
PORT4_IRQHandler(void)46 void PORT4_IRQHandler(void)
47 {
48     issdk_gpio_handle_interrupt(GINT4, kGINT_Port4);
49 }
50 #endif
51 #if defined(GINT5)
PORT5_IRQHandler(void)52 void PORT5_IRQHandler(void)
53 {
54     issdk_gpio_handle_interrupt(GINT5, kGINT_Port5);
55 }
56 #endif
57 #if defined(GINT6)
PORT6_IRQHandler(void)58 void PORT6_IRQHandler(void)
59 {
60     issdk_gpio_handle_interrupt(GINT6, kGINT_Port6);
61 }
62 #endif
63 #if defined(GINT7)
PORT7_IRQHandler(void)64 void PORT7_IRQHandler(void)
65 {
66     issdk_gpio_handle_interrupt(GINT7, kGINT_Port7);
67 }
68 #endif
69