ISSDK  1.7
IoT Sensing Software Development Kit
gpio_driver_irq.c
Go to the documentation of this file.
1 /*
2  * The Clear BSD License
3  * Copyright (c) 2017, Freescale Semiconductor, Inc.
4  * Copyright 2017 NXP
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without modification,
8  * are permitted (subject to the limitations in the disclaimer below) provided
9  * that the following conditions are met:
10  *
11  * o Redistributions of source code must retain the above copyright notice, this list
12  * of conditions and the following disclaimer.
13  *
14  * o Redistributions in binary form must reproduce the above copyright notice, this
15  * list of conditions and the following disclaimer in the documentation and/or
16  * other materials provided with the distribution.
17  *
18  * o Neither the name of the copyright holder nor the names of its
19  * contributors may be used to endorse or promote products derived from this
20  * software without specific prior written permission.
21  *
22  * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE.
23  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
24  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
27  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
30  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33  */
34 
35 /**
36  * @file gpio_driver_irq.c
37  * @brief The gpio_driver_irq.c file containes the Generic IRQ implmentation for GPIO.
38 */
39 
40 #include "fsl_gint.h"
41 
42 extern void issdk_gpio_handle_interrupt(GINT_Type *base, gint_port_t portNumber);
43 
44 /*******************************************************************************
45  * Functions - GPIOIRQ implementation
46  ******************************************************************/
47 #if defined(GINT0)
48 void PORT0_IRQHandler(void)
49 {
50  issdk_gpio_handle_interrupt(GINT0, kGINT_Port0);
51 }
52 #endif
53 #if defined(GINT1)
54 void PORT1_IRQHandler(void)
55 {
56  issdk_gpio_handle_interrupt(GINT1, kGINT_Port1);
57 }
58 #endif
59 #if defined(GINT2)
60 void PORT2_IRQHandler(void)
61 {
62  issdk_gpio_handle_interrupt(GINT2, kGINT_Port2);
63 }
64 #endif
65 #if defined(GINT3)
66 void PORT3_IRQHandler(void)
67 {
68  issdk_gpio_handle_interrupt(GINT3, kGINT_Port3);
69 }
70 #endif
71 #if defined(GINT4)
72 void PORT4_IRQHandler(void)
73 {
74  issdk_gpio_handle_interrupt(GINT4, kGINT_Port4);
75 }
76 #endif
77 #if defined(GINT5)
78 void PORT5_IRQHandler(void)
79 {
80  issdk_gpio_handle_interrupt(GINT5, kGINT_Port5);
81 }
82 #endif
83 #if defined(GINT6)
84 void PORT6_IRQHandler(void)
85 {
86  issdk_gpio_handle_interrupt(GINT6, kGINT_Port6);
87 }
88 #endif
89 #if defined(GINT7)
90 void PORT7_IRQHandler(void)
91 {
92  issdk_gpio_handle_interrupt(GINT7, kGINT_Port7);
93 }
94 #endif
void issdk_gpio_handle_interrupt(GINT_Type *base, gint_port_t portNumber)
Definition: gpio_driver.c:263