Go to the documentation of this file.
33 #ifndef PICO_GPIO_IRQ_H
34 #define PICO_GPIO_IRQ_H
41 #include "hardware/gpio.h"
47 #define PICO_GPIO_MAX_PIN_NB 30
Structure storing the list and function wrapper for usual list types.
Definition: no_os_list.h:228
int32_t no_os_list_read_find(struct no_os_list_desc *list_desc, void **data, void *cmp_data)
@ NO_OS_IRQ_LEVEL_HIGH
Definition: no_os_irq.h:78
Structure describing a callback to be registered.
Definition: no_os_irq.h:142
void * ctx
Definition: aducm3029_irq.h:125
Header file of IRQ interface.
@ NO_OS_IRQ_LEVEL_LOW
Definition: no_os_irq.h:77
void pico_gpio_callback(unsigned int pin, uint32_t events)
GPIO interrupt handler callback.
Definition: pico_gpio_irq.c:79
const struct no_os_irq_platform_ops pico_gpio_irq_ops
pico platform specific irq platform ops structure
Definition: pico_gpio_irq.c:387
int32_t no_os_list_get_first(struct no_os_list_desc *list_desc, void **data)
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
@ NO_OS_IRQ_EDGE_FALLING
Definition: no_os_irq.h:79
pico platform specific GPIO IRQ descriptor
Definition: pico_gpio_irq.h:57
#define PICO_GPIO_MAX_PIN_NB
Definition: pico_gpio_irq.h:47
@ NO_OS_LIST_PRIORITY_LIST
Definition: no_os_list.h:225
enum gpio_irq_level pin_trigger_lvl[PICO_GPIO_MAX_PIN_NB]
Definition: pico_gpio_irq.h:59
void * ctx
Definition: no_os_irq.h:146
no_os_irq_trig_level
Definition: no_os_irq.h:76
uint32_t irq_ctrl_id
Definition: no_os_irq.h:109
void(* callback)(void *context)
Definition: aducm3029_irq.h:123
int32_t irq_action_cmp(void *data1, void *data2)
Action comparator function.
Definition: aducm3029_irq.c:74
void(* callback)(void *context)
Definition: no_os_irq.h:144
int32_t no_os_list_remove(struct no_os_list_desc *list_desc)
uint32_t irq_id
Definition: aducm3029_irq.h:119
irq_id
Interrupts IDs supported by the irq driver.
Definition: aducm3029_irq.h:62
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
Struct used to store a (peripheral, callback) pair.
Definition: aducm3029_irq.h:117
#define NULL
Definition: wrapper.h:64
uint32_t irq_ctrl_id
Definition: no_os_irq.h:125
const struct no_os_irq_platform_ops pico_gpio_irq_ops
pico specific IRQ platform ops structure
Definition: pico_gpio_irq.c:387
Structure holding the initial parameters for Interrupt Request.
Definition: no_os_irq.h:107
@ NO_OS_IRQ_EDGE_RISING
Definition: no_os_irq.h:80
Header file for pico gpio irq specifics.
int32_t no_os_list_add_last(struct no_os_list_desc *list_desc, void *data)
int32_t no_os_list_init(struct no_os_list_desc **list_desc, enum no_os_adapter_type type, f_cmp comparator)
Header file of utility functions.
Definition: no_os_irq.h:123
void * extra
Definition: no_os_irq.h:134