Go to the documentation of this file.
184 uint32_t priority_level);
232 uint32_t priority_level);
237 #endif // _NO_OS_IRQ_H_
@ NO_OS_EVT_UART_RX_COMPLETE
Definition: no_os_irq.h:64
@ NO_OS_IRQ_WRITE_DONE
Definition: no_os_irq.h:54
@ NO_OS_IRQ_LEVEL_HIGH
Definition: no_os_irq.h:78
Structure describing a callback to be registered.
Definition: no_os_irq.h:142
int32_t no_os_irq_register_callback(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, struct no_os_callback_desc *callback_desc)
Register a callback to handle the irq events.
Definition: no_os_irq.c:92
@ NO_OS_IRQ_LEVEL_LOW
Definition: no_os_irq.h:77
@ NO_OS_TIM_DMA_IRQ
Definition: no_os_irq.h:90
@ NO_OS_EVT_TIM_PWM_PULSE_FINISHED
Definition: no_os_irq.h:69
no_os_irq_peripheral
Definition: no_os_irq.h:84
@ NO_OS_EVT_USB
Definition: no_os_irq.h:73
@ NO_OS_IRQ_EDGE_FALLING
Definition: no_os_irq.h:79
@ NO_OS_TDM_DMA_IRQ
Definition: no_os_irq.h:89
@ NO_OS_RTC_IRQ
Definition: no_os_irq.h:87
void * extra
Definition: no_os_irq.h:116
enum no_os_irq_peripheral peripheral
Definition: no_os_irq.h:150
@ NO_OS_EVT_UART_TX_COMPLETE
Definition: no_os_irq.h:63
int32_t no_os_irq_set_priority(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, uint32_t priority_level)
Set the priority for an interrupt.
Definition: no_os_irq.c:216
uint32_t ref
Definition: no_os_irq.h:129
int32_t no_os_irq_global_enable(struct no_os_irq_ctrl_desc *desc)
Enable global interrupts.
Definition: no_os_irq.c:129
@ NO_OS_EVT_TIM_ELAPSED
Definition: no_os_irq.h:68
int32_t no_os_irq_global_disable(struct no_os_irq_ctrl_desc *desc)
Disable global interrupts.
Definition: no_os_irq.c:144
@ NO_OS_USB_IRQ
Definition: no_os_irq.h:93
void * ctx
Definition: no_os_irq.h:146
@ NO_OS_SPI_DMA_IRQ
Definition: no_os_irq.h:91
no_os_irq_uart_event_e
Possible events for uart interrupt.
Definition: no_os_irq.h:52
@ NO_OS_IRQ_READ_DONE
Definition: no_os_irq.h:56
int32_t no_os_irq_unregister_callback(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, struct no_os_callback_desc *callback_desc)
Unregisters a generic IRQ handling function.
Definition: no_os_irq.c:112
no_os_irq_trig_level
Definition: no_os_irq.h:76
uint32_t irq_ctrl_id
Definition: no_os_irq.h:109
const struct no_os_irq_platform_ops * platform_ops
Definition: no_os_irq.h:127
@ NO_OS_TIM_IRQ
Definition: no_os_irq.h:88
const struct no_os_irq_platform_ops * platform_ops
Definition: no_os_irq.h:111
@ NO_OS_EVT_RTC
Definition: no_os_irq.h:66
@ NO_OS_EVT_XINT
Definition: no_os_irq.h:67
int32_t no_os_irq_ctrl_init(struct no_os_irq_ctrl_desc **desc, const struct no_os_irq_init_param *param)
Initialize the IRQ interrupts.
Definition: no_os_irq.c:45
void * handle
Definition: no_os_irq.h:152
void(* callback)(void *context)
Definition: no_os_irq.h:144
@ NO_OS_EVT_DMA_TX_COMPLETE
Definition: no_os_irq.h:72
irq_id
Interrupts IDs supported by the irq driver.
Definition: aducm3029_irq.h:62
int32_t no_os_irq_clear_pending(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Clear the pending interrupt.
Definition: no_os_irq.c:235
enum no_os_irq_event event
Definition: no_os_irq.h:148
@ NO_OS_EVT_DMA_RX_COMPLETE
Definition: no_os_irq.h:70
uint32_t irq_ctrl_id
Definition: no_os_irq.h:125
@ NO_OS_EVT_GPIO
Definition: no_os_irq.h:62
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
@ NO_OS_UART_IRQ
Definition: no_os_irq.h:86
no_os_irq_event
Definition: no_os_irq.h:61
int32_t no_os_irq_ctrl_remove(struct no_os_irq_ctrl_desc *desc)
Free the resources allocated by no_os_irq_ctrl_init().
Definition: no_os_irq.c:71
int32_t no_os_irq_enable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Enable specific interrupt.
Definition: no_os_irq.c:181
@ NO_OS_EVT_UART_ERROR
Definition: no_os_irq.h:65
@ NO_OS_GPIO_IRQ
Definition: no_os_irq.h:85
@ NO_OS_EVT_DMA_RX_HALF_COMPLETE
Definition: no_os_irq.h:71
@ NO_OS_IRQ_EDGE_BOTH
Definition: no_os_irq.h:81
int32_t no_os_irq_trigger_level_set(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, enum no_os_irq_trig_level trig)
Set interrupt trigger level.
Definition: no_os_irq.c:162
int32_t no_os_irq_disable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Disable specific interrupt.
Definition: no_os_irq.c:198
Definition: no_os_irq.h:123
@ NO_OS_IRQ_ERROR
Definition: no_os_irq.h:58
void * extra
Definition: no_os_irq.h:134
@ NO_OS_DMA_IRQ
Definition: no_os_irq.h:92