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 /******************************************************************************/
37 /***************************** Include Files **********************************/
38 /******************************************************************************/
39 
40 #include "max32670.h"
41 #include "no_os_irq.h"
42 #include "no_os_list.h"
43 #include "uart.h"
44 
45 /******************************************************************************/
46 /*************************** Types Declarations *******************************/
47 /******************************************************************************/
48 
52 struct irq_action {
53  uint32_t irq_id;
54  void *handle;
55  void (*callback)(void *context);
56  void *ctx;
57 };
58 
62 struct event_list {
64  struct no_os_list_desc *actions;
65 };
66 
70 extern const struct no_os_irq_platform_ops max_irq_ops;
71 
75 void max_uart_callback(mxc_uart_req_t *, int);
76 
80 int irq_action_cmp(void *data1, void *data2);
81 
82 #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