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 /******************************************************************************/
43 /***************************** Include Files **********************************/
44 /******************************************************************************/
45 
46 #include "max32670.h"
47 #include "no_os_irq.h"
48 #include "uart.h"
49 
50 /******************************************************************************/
51 /*************************** Types Declarations *******************************/
52 /******************************************************************************/
53 
57 struct irq_action {
58  uint32_t irq_id;
59  void *handle;
60  void (*callback)(void *context);
61  void *ctx;
62 };
63 
67 struct event_list {
69  struct no_os_list_desc *actions;
70 };
71 
75 extern const struct no_os_irq_platform_ops max_irq_ops;
76 
80 void max_uart_callback(mxc_uart_req_t *, int);
81 
85 int irq_action_cmp(void *data1, void *data2);
86 
87 #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:569
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:212
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