no-OS
pico_irq.h
Go to the documentation of this file.
1 /***************************************************************************/
39 #ifndef _PICO_IRQ_H_
40 #define _PICO_IRQ_H_
41 
42 /******************************************************************************/
43 /***************************** Include Files **********************************/
44 /******************************************************************************/
45 
46 #include "no_os_irq.h"
47 
48 /******************************************************************************/
49 /*************************** Types Declarations *******************************/
50 /******************************************************************************/
51 
55 extern const struct no_os_irq_platform_ops pico_irq_ops;
56 
57 #endif
pico_uart.h
Header file of UART driver for pico.
no_os_list_desc
Structure storing the list and function wrapper for usual list types.
Definition: no_os_list.h:234
NO_OS_EVT_UART_RX_COMPLETE
@ NO_OS_EVT_UART_RX_COMPLETE
Definition: no_os_irq.h:70
on_uart0_rx
void on_uart0_rx(void)
UART0 RX interrupt handler.
Definition: pico_irq.c:141
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_callback_desc
Structure describing a callback to be registered.
Definition: no_os_irq.h:136
irq_action::ctx
void * ctx
Definition: aducm3029_irq.h:131
no_os_irq.h
Header file of IRQ interface.
no_os_list_get_find
int32_t no_os_list_get_find(struct no_os_list_desc *list_desc, void **data, void *cmp_data)
pico_irq_global_disable
int32_t pico_irq_global_disable(struct no_os_irq_ctrl_desc *desc)
Disable all interrupts.
Definition: pico_irq.c:355
irq_action_cmp
int32_t irq_action_cmp(void *data1, void *data2)
Action comparator function.
Definition: pico_irq.c:162
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:166
pico_irq_unregister_callback
int32_t pico_irq_unregister_callback(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, struct no_os_callback_desc *cb)
Unregister a callback.
Definition: pico_irq.c:319
pico_irq_ops
const struct no_os_irq_platform_ops pico_irq_ops
pico specific IRQ platform ops structure
Definition: pico_irq.c:422
no_os_timer.h
Timer control module header.
no_os_irq_init_param::extra
void * extra
Definition: no_os_irq.h:112
no_os_callback_desc::peripheral
enum no_os_irq_peripheral peripheral
Definition: no_os_irq.h:154
pico_irq_disable
int32_t pico_irq_disable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Disable a specific interrupt.
Definition: pico_irq.c:389
pico_alarm_desc
struct no_os_timer_desc * pico_alarm_desc[PICO_ALARM_MAX_NB]
Definition: pico_timer.c:61
NO_OS_LIST_PRIORITY_LIST
@ NO_OS_LIST_PRIORITY_LIST
Definition: no_os_list.h:231
pico_irq_enable
int32_t pico_irq_enable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Enable a specific interrupt.
Definition: pico_irq.c:373
no_os_error.h
Error codes definition.
NO_OS_EVT_TIM_ELAPSED
@ NO_OS_EVT_TIM_ELAPSED
Definition: no_os_irq.h:74
no_os_callback_desc::ctx
void * ctx
Definition: no_os_irq.h:148
no_os_timer_start
int32_t no_os_timer_start(struct no_os_timer_desc *desc)
Start a timer.
Definition: no_os_timer.c:88
no_os_irq_trig_level
no_os_irq_trig_level
Definition: no_os_irq.h:77
no_os_irq_init_param::irq_ctrl_id
uint32_t irq_ctrl_id
Definition: no_os_irq.h:105
irq_action::callback
void(* callback)(void *context)
Definition: aducm3029_irq.h:129
no_os_irq_ctrl_desc::platform_ops
const struct no_os_irq_platform_ops * platform_ops
Definition: no_os_irq.h:123
NO_OS_TIM_IRQ
@ NO_OS_TIM_IRQ
Definition: no_os_irq.h:89
event_list::actions
struct no_os_list_desc * actions
Definition: aducm3029_irq.c:90
no_os_irq_init_param::platform_ops
const struct no_os_irq_platform_ops * platform_ops
Definition: no_os_irq.h:107
pico_irq_ctrl_init
int32_t pico_irq_ctrl_init(struct no_os_irq_ctrl_desc **desc, const struct no_os_irq_init_param *param)
Initialized the controller for pico external interrupts.
Definition: pico_irq.c:174
pico_irq_register_callback
int32_t pico_irq_register_callback(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, struct no_os_callback_desc *cb)
Register a callback.
Definition: pico_irq.c:234
no_os_callback_desc::handle
void * handle
Definition: no_os_irq.h:156
no_os_callback_desc::callback
void(* callback)(void *context)
Definition: no_os_irq.h:138
irq_action::handle
void * handle
Definition: aducm3029_irq.h:127
irq_action::irq_id
uint32_t irq_id
Definition: aducm3029_irq.h:125
irq_id
irq_id
Interrupts IDs supported by the irq driver.
Definition: aducm3029_irq.h:68
no_os_callback_desc::event
enum no_os_irq_event event
Definition: no_os_irq.h:152
event_list
Struct that stores all the actions for a specific event.
Definition: aducm3029_irq.c:88
on_uart1_rx
void on_uart1_rx(void)
UART1 RX interrupt handler.
Definition: pico_irq.c:150
irq_action
Struct used to store a (peripheral, callback) pair.
Definition: aducm3029_irq.h:123
no_os_list.h
List library header.
pico_irq_global_enable
int32_t pico_irq_global_enable(struct no_os_irq_ctrl_desc *desc)
Enable all interrupts.
Definition: pico_irq.c:342
event_list::event
enum no_os_irq_event event
Definition: aducm3029_irq.c:89
pico_trigger_level_set
int32_t pico_trigger_level_set(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, enum no_os_irq_trig_level level)
Unused.
Definition: pico_irq.c:220
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:121
pico_timer.h
Header file for the pico timer driver.
no_os_irq_init_param
Structure holding the initial parameters for Interrupt Request.
Definition: no_os_irq.h:103
NO_OS_UART_IRQ
@ NO_OS_UART_IRQ
Definition: no_os_irq.h:87
no_os_irq_event
no_os_irq_event
Definition: no_os_irq.h:67
pico_irq.h
Header file for pico irq specifics.
pico_irq_ctrl_remove
int32_t pico_irq_ctrl_remove(struct no_os_irq_ctrl_desc *desc)
Free the resources allocated by irq_ctrl_init().
Definition: pico_irq.c:203
no_os_irq_platform_ops
Structure holding IRQ function pointers that point to the platform specific function.
Definition: no_os_irq.h:164
pico_irq_ops
const struct no_os_irq_platform_ops pico_irq_ops
pico platform specific irq platform ops structure
Definition: pico_irq.c:422
uart
struct no_os_uart_desc * uart
Definition: main.c:80
no_os_uart.h
Header file of UART interface.
PICO_IRQ_NB
#define PICO_IRQ_NB
Definition: pico_irq.c:60
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:119
no_os_irq_ctrl_desc::extra
void * extra
Definition: no_os_irq.h:128