no-OS
pico_gpio_irq.h
Go to the documentation of this file.
1 /***************************************************************************/
33 #ifndef PICO_GPIO_IRQ_H
34 #define PICO_GPIO_IRQ_H
35 
36 /******************************************************************************/
37 /************************* Include Files **************************************/
38 /******************************************************************************/
39 
40 #include "no_os_irq.h"
41 #include "hardware/gpio.h"
42 
43 /******************************************************************************/
44 /********************** Macros and Constants Definitions **********************/
45 /******************************************************************************/
46 
47 #define PICO_GPIO_MAX_PIN_NB 30
48 
49 /******************************************************************************/
50 /*************************** Types Declarations *******************************/
51 /******************************************************************************/
52 
59  enum gpio_irq_level pin_trigger_lvl[PICO_GPIO_MAX_PIN_NB];
60 };
61 
65 extern const struct no_os_irq_platform_ops pico_gpio_irq_ops;
66 
67 #endif
no_os_list_desc
Structure storing the list and function wrapper for usual list types.
Definition: no_os_list.h:228
no_os_alloc.h
no_os_list_read_find
int32_t no_os_list_read_find(struct no_os_list_desc *list_desc, void **data, void *cmp_data)
NO_OS_IRQ_LEVEL_HIGH
@ NO_OS_IRQ_LEVEL_HIGH
Definition: no_os_irq.h:78
no_os_callback_desc
Structure describing a callback to be registered.
Definition: no_os_irq.h:142
irq_action::ctx
void * ctx
Definition: aducm3029_irq.h:125
no_os_irq.h
Header file of IRQ interface.
NO_OS_IRQ_LEVEL_LOW
@ NO_OS_IRQ_LEVEL_LOW
Definition: no_os_irq.h:77
pico_gpio_callback
void pico_gpio_callback(unsigned int pin, uint32_t events)
GPIO interrupt handler callback.
Definition: pico_gpio_irq.c:79
pico_gpio_irq_ops
const struct no_os_irq_platform_ops pico_gpio_irq_ops
pico platform specific irq platform ops structure
Definition: pico_gpio_irq.c:387
no_os_list_get_first
int32_t no_os_list_get_first(struct no_os_list_desc *list_desc, void **data)
no_os_irq_platform_ops::init
int32_t(* init)(struct no_os_irq_ctrl_desc **desc, const struct no_os_irq_init_param *param)
Definition: no_os_irq.h:162
no_os_calloc
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
@ NO_OS_IRQ_EDGE_FALLING
Definition: no_os_irq.h:79
pico_gpio_irq_desc
pico platform specific GPIO IRQ descriptor
Definition: pico_gpio_irq.h:57
PICO_GPIO_MAX_PIN_NB
#define PICO_GPIO_MAX_PIN_NB
Definition: pico_gpio_irq.h:47
NO_OS_LIST_PRIORITY_LIST
@ NO_OS_LIST_PRIORITY_LIST
Definition: no_os_list.h:225
no_os_error.h
Error codes definition.
pico_gpio_irq_desc::pin_trigger_lvl
enum gpio_irq_level pin_trigger_lvl[PICO_GPIO_MAX_PIN_NB]
Definition: pico_gpio_irq.h:59
no_os_callback_desc::ctx
void * ctx
Definition: no_os_irq.h:146
no_os_irq_trig_level
no_os_irq_trig_level
Definition: no_os_irq.h:76
no_os_irq_init_param::irq_ctrl_id
uint32_t irq_ctrl_id
Definition: no_os_irq.h:109
irq_action::callback
void(* callback)(void *context)
Definition: aducm3029_irq.h:123
irq_action_cmp
int32_t irq_action_cmp(void *data1, void *data2)
Action comparator function.
Definition: aducm3029_irq.c:74
no_os_callback_desc::callback
void(* callback)(void *context)
Definition: no_os_irq.h:144
no_os_list_remove
int32_t no_os_list_remove(struct no_os_list_desc *list_desc)
irq_action::irq_id
uint32_t irq_id
Definition: aducm3029_irq.h:119
irq_id
irq_id
Interrupts IDs supported by the irq driver.
Definition: aducm3029_irq.h:62
no_os_free
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
irq_action
Struct used to store a (peripheral, callback) pair.
Definition: aducm3029_irq.h:117
no_os_list.h
List library header.
NULL
#define NULL
Definition: wrapper.h:64
no_os_irq_ctrl_desc::irq_ctrl_id
uint32_t irq_ctrl_id
Definition: no_os_irq.h:125
pico_gpio_irq_ops
const struct no_os_irq_platform_ops pico_gpio_irq_ops
pico specific IRQ platform ops structure
Definition: pico_gpio_irq.c:387
no_os_irq_init_param
Structure holding the initial parameters for Interrupt Request.
Definition: no_os_irq.h:107
NO_OS_IRQ_EDGE_RISING
@ NO_OS_IRQ_EDGE_RISING
Definition: no_os_irq.h:80
pico_gpio_irq.h
Header file for pico gpio irq specifics.
no_os_irq_platform_ops
Structure holding IRQ function pointers that point to the platform specific function.
Definition: no_os_irq.h:160
no_os_list_add_last
int32_t no_os_list_add_last(struct no_os_list_desc *list_desc, void *data)
no_os_list_init
int32_t no_os_list_init(struct no_os_list_desc **list_desc, enum no_os_adapter_type type, f_cmp comparator)
no_os_util.h
Header file of utility functions.
no_os_irq_ctrl_desc
Definition: no_os_irq.h:123
no_os_irq_ctrl_desc::extra
void * extra
Definition: no_os_irq.h:134