no-OS
|
Implementation of Xilinx GPIO IRQ Generic Driver. More...
#include <stdlib.h>
#include "xparameters.h"
#include "no_os_error.h"
#include "xilinx_gpio_irq.h"
#include "no_os_util.h"
#include "no_os_list.h"
#include "no_os_irq.h"
#include "no_os_alloc.h"
Functions | |
int32_t | xil_gpio_irq_disable (struct no_os_irq_ctrl_desc *desc, uint32_t irq_id) |
Disable specific GPIO IRQ pin. More... | |
int32_t | xil_gpio_irq_ctrl_init (struct no_os_irq_ctrl_desc **desc, const struct no_os_irq_init_param *param) |
Initialize the GPIO IRQ controller. More... | |
int32_t | xil_gpio_irq_trigger_level_set (struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, enum no_os_irq_trig_level trig) |
Set GPIO interrupt trigger level. More... | |
int32_t | xil_gpio_irq_register_callback (struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, struct no_os_callback_desc *callback_desc) |
Register pin specific GPIO interrupt. More... | |
int32_t | xil_gpio_irq_unregister_callback (struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, struct no_os_callback_desc *cb) |
Unregister pin specific GPIO interrupt. More... | |
int32_t | xil_gpio_irq_enable (struct no_os_irq_ctrl_desc *desc, uint32_t irq_id) |
Enable specific GPIO IRQ pin. More... | |
int32_t | xil_gpio_irq_ctrl_remove (struct no_os_irq_ctrl_desc *desc) |
Remove the GPIO IRQ controller. More... | |
Variables | |
const struct no_os_irq_platform_ops | xil_gpio_irq_ops |
Xilinx platform specific GPIO IRQ platform ops structure. More... | |
Implementation of Xilinx GPIO IRQ Generic Driver.
Copyright 2021(c) Analog Devices, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
int32_t xil_gpio_irq_ctrl_init | ( | struct no_os_irq_ctrl_desc ** | desc, |
const struct no_os_irq_init_param * | param | ||
) |
Initialize the GPIO IRQ controller.
desc | - The GPIO IRQ controller descriptor. |
param | - The GPIO IRQ controller initial parameters. irq_ctrl_id from irq_init_param is the interrupt id for the parent controller |
int32_t xil_gpio_irq_ctrl_remove | ( | struct no_os_irq_ctrl_desc * | desc | ) |
Remove the GPIO IRQ controller.
desc | - The GPIO IRQ controller descriptor. |
int32_t xil_gpio_irq_disable | ( | struct no_os_irq_ctrl_desc * | desc, |
uint32_t | irq_id | ||
) |
Disable specific GPIO IRQ pin.
desc | - The GPIO IRQ controller descriptor. |
irq_id | - Pin number. |
int32_t xil_gpio_irq_enable | ( | struct no_os_irq_ctrl_desc * | desc, |
uint32_t | irq_id | ||
) |
Enable specific GPIO IRQ pin.
desc | - The GPIO IRQ controller descriptor. |
irq_id | - Pin number. |
int32_t xil_gpio_irq_register_callback | ( | struct no_os_irq_ctrl_desc * | desc, |
uint32_t | irq_id, | ||
struct no_os_callback_desc * | callback_desc | ||
) |
Register pin specific GPIO interrupt.
desc | - The GPIO IRQ controller descriptor. |
irq_id | - Pin number. |
callback_desc | - Callback. |
int32_t xil_gpio_irq_trigger_level_set | ( | struct no_os_irq_ctrl_desc * | desc, |
uint32_t | irq_id, | ||
enum no_os_irq_trig_level | trig | ||
) |
Set GPIO interrupt trigger level.
desc | - The GPIO IRQ controller descriptor. |
irq_id | - Pin number. |
trig | - New trigger level for the GPIO interrupt. |
int32_t xil_gpio_irq_unregister_callback | ( | struct no_os_irq_ctrl_desc * | desc, |
uint32_t | irq_id, | ||
struct no_os_callback_desc * | cb | ||
) |
Unregister pin specific GPIO interrupt.
desc | - The GPIO IRQ controller descriptor. |
irq_id | - Pin number. |
cb | - Callback descriptor. |
const struct no_os_irq_platform_ops xil_gpio_irq_ops |
Xilinx platform specific GPIO IRQ platform ops structure.
Xilinx specific GPIO IRQ platform ops structure.