no-OS
maxim_irq.h
Go to the documentation of this file.
1 /***************************************************************************/
33 #ifndef MAXIM_IRQ_H_
34 #define MAXIM_IRQ_H_
35 
36 #include "max32655.h"
37 #include "no_os_irq.h"
38 #include "no_os_list.h"
39 #include "uart.h"
40 
44 struct irq_action {
45  uint32_t irq_id;
46  void *handle;
47  void (*callback)(void *context);
48  void *ctx;
49 };
50 
54 struct event_list {
56  struct no_os_list_desc *actions;
57 };
58 
62 extern const struct no_os_irq_platform_ops max_irq_ops;
63 
67 void max_uart_callback(mxc_uart_req_t *, int);
68 
72 int32_t irq_action_cmp(void *data1, void *data2);
73 
74 #endif
no_os_list_desc
Structure storing the list and function wrapper for usual list types.
Definition: no_os_list.h:228
max_irq_ops
const struct no_os_irq_platform_ops max_irq_ops
maxim platform specific irq platform ops structure
Definition: maxim_irq.c:657
irq_action::ctx
void * ctx
Definition: aducm3029_irq.h:125
no_os_irq.h
Header file of IRQ interface.
max_uart_callback
void max_uart_callback(mxc_uart_req_t *, int)
Platform specific uart callback function.
Definition: maxim_irq.c:338
irq_action::callback
void(* callback)(void *context)
Definition: aducm3029_irq.h:123
event_list::actions
struct no_os_list_desc * actions
Definition: aducm3029_irq.c:85
irq_action_cmp
int32_t irq_action_cmp(void *data1, void *data2)
irq_action compare function
Definition: aducm3029_irq.c:74
irq_action::handle
void * handle
Definition: aducm3029_irq.h:121
irq_action::irq_id
uint32_t irq_id
Definition: aducm3029_irq.h:119
event_list
Struct that stores all the actions for a specific event.
Definition: aducm3029_irq.c:83
irq_action
Struct used to store a (peripheral, callback) pair.
Definition: aducm3029_irq.h:117
no_os_list.h
List library header.
event_list::event
enum no_os_irq_event event
Definition: aducm3029_irq.c:84
no_os_irq_event
no_os_irq_event
Definition: no_os_irq.h:61
no_os_irq_platform_ops
Structure holding IRQ function pointers that point to the platform specific function.
Definition: no_os_irq.h:160