ISSDK
1.7
IoT Sensing Software Development Kit
drivers
gpio
kinetis
gpio_driver_irq_kw41z.c
Go to the documentation of this file.
1
/*
2
* The Clear BSD License
3
* Copyright (c) 2016, Freescale Semiconductor, Inc.
4
* Copyright 2016-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_kL27z.c
37
* @brief The gpio_driver_irq_kL27z.c file containes the Generic IRQ implmentation for the FRDM-KL27Z GPIO.
38
*/
39
40
#include "fsl_gpio.h"
41
#include "frdm_kw41z.h"
42
43
extern
void
ksdk_gpio_handle_interrupt
(GPIO_Type *base,
port_number_t
portNumber);
44
45
/*******************************************************************************
46
* Functions - GPIOIRQ implementation
47
******************************************************************/
48
void
PORTA_IRQHandler
(
void
)
49
{
50
ksdk_gpio_handle_interrupt
(GPIOA,
PORTA_NUM
);
51
}
52
void
PORTB_PORTC_IRQHandler
(
void
)
53
{
54
ksdk_gpio_handle_interrupt
(
GPIO_TYPE
,
GPIO_PORT_NUM
);
55
}
PORTA_NUM
Definition:
gpio_driver.h:54
PORTB_PORTC_IRQHandler
void PORTB_PORTC_IRQHandler(void)
Definition:
gpio_driver_irq_kw41z.c:52
PORTA_IRQHandler
void PORTA_IRQHandler(void)
Definition:
gpio_driver_irq_kw41z.c:48
port_number_t
enum port_number port_number_t
GPIO PORT NAMES.
ksdk_gpio_handle_interrupt
void ksdk_gpio_handle_interrupt(GPIO_Type *base, port_number_t portNumber)
Definition:
gpio_driver.c:179
GPIO_PORT_NUM
#define GPIO_PORT_NUM
Definition:
frdm_kl27z.h:136
GPIO_TYPE
#define GPIO_TYPE
Definition:
frdm_kl27z.h:135
© Freescale Semiconductor, Inc. 2016-2017. All Rights Reserved.