no-OS
mbed_irq.h
Go to the documentation of this file.
1 /***************************************************************************/
32 #ifndef MBED_IRQ_H
33 #define MBED_IRQ_H
34 
35 // Platform support needs to be C-compatible to work with other drivers
36 #ifdef __cplusplus
37 extern "C"
38 {
39 #endif
40 
41 /******************************************************************************/
42 /***************************** Include Files **********************************/
43 /******************************************************************************/
44 
45 #include <stdbool.h>
46 
47 /******************************************************************************/
48 /*************************** Types Declarations *******************************/
49 /******************************************************************************/
50 
59 enum irq_id {
63 
66 
67  /* Number of available interrupts */
69 };
70 
81  uint32_t ticker_period_usec; // Time period in usec for ticker event
82  void *int_obj_type; // Other app created Mbed driver instance (e.g. UnBuffered uart)
83 };
84 
89 struct mbed_irq_desc {
90  uint32_t ticker_period_usec; // Time period in usec for ticker event
91  void *int_obj; // Mbed driver instance (e.g. Ticker, uart)
92 };
93 
97 extern const struct no_os_irq_platform_ops mbed_irq_ops;
98 
99 #ifdef __cplusplus // Closing extern c
100 }
101 #endif
102 
103 #endif // MBED_IRQ_H
NB_INTERRUPTS
@ NB_INTERRUPTS
Definition: mbed_irq.h:68
mbed_irq_init_param
Structure holding the extra parameters for Interrupt Request Example: mbed::UnBufferedSerial my_uart;...
Definition: mbed_irq.h:80
mbed_irq_ops
const struct no_os_irq_platform_ops mbed_irq_ops
Mbed specific IRQ platform ops structure.
mbed_irq_desc
Structure holding the platform descriptor for Interrupt Request.
Definition: mbed_irq.h:89
mbed_irq_desc::ticker_period_usec
uint32_t ticker_period_usec
Definition: mbed_irq.h:90
mbed_irq_init_param::int_obj_type
void * int_obj_type
Definition: mbed_irq.h:82
mbed_irq_init_param::ticker_period_usec
uint32_t ticker_period_usec
Definition: mbed_irq.h:81
mbed_irq_desc::int_obj
void * int_obj
Definition: mbed_irq.h:91
irq_id
irq_id
Interrupts IDs supported by the irq driver.
Definition: aducm3029_irq.h:62
UART_RX_INT_ID1
@ UART_RX_INT_ID1
Definition: mbed_irq.h:62
no_os_irq_platform_ops
Structure holding IRQ function pointers that point to the platform specific function.
Definition: no_os_irq.h:160
TICKER_INT_ID
@ TICKER_INT_ID
Definition: mbed_irq.h:65