no-OS
maxim_irq.h
Go to the documentation of this file.
1 /***************************************************************************/
39 #ifndef MAXIM_IRQ_H_
40 #define MAXIM_IRQ_H_
41 
42 #include "max32660.h"
43 #include "no_os_irq.h"
44 #include "uart.h"
45 
49 struct irq_action {
50  uint32_t irq_id;
51  void *handle;
52  void (*callback)(void *context);
53  void *ctx;
54 };
55 
59 struct event_list {
61  struct no_os_list_desc *actions;
62 };
63 
67 extern const struct no_os_irq_platform_ops max_irq_ops;
68 
72 void max_uart_callback(mxc_uart_req_t *, int);
73 
77 int32_t irq_action_cmp(void *data1, void *data2);
78 
79 #endif
no_os_list_desc
Structure storing the list and function wrapper for usual list types.
Definition: no_os_list.h:234
max_irq_ops
const struct no_os_irq_platform_ops max_irq_ops
maxim platform specific irq platform ops structure
Definition: maxim_irq.c:572
irq_action::ctx
void * ctx
Definition: aducm3029_irq.h:131
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:214
irq_action::callback
void(* callback)(void *context)
Definition: aducm3029_irq.h:129
event_list::actions
struct no_os_list_desc * actions
Definition: aducm3029_irq.c:90
irq_action_cmp
int32_t irq_action_cmp(void *data1, void *data2)
irq_action compare function
Definition: aducm3029_irq.c:79
irq_action::handle
void * handle
Definition: aducm3029_irq.h:127
irq_action::irq_id
uint32_t irq_id
Definition: aducm3029_irq.h:125
event_list
Struct that stores all the actions for a specific event.
Definition: aducm3029_irq.c:88
irq_action
Struct used to store a (peripheral, callback) pair.
Definition: aducm3029_irq.h:123
event_list::event
enum no_os_irq_event event
Definition: aducm3029_irq.c:89
no_os_irq_event
no_os_irq_event
Definition: no_os_irq.h:67
no_os_irq_platform_ops
Structure holding IRQ function pointers that point to the platform specific function.
Definition: no_os_irq.h:164