no-OS
mbed_irq.h
Go to the documentation of this file.
1 /***************************************************************************/
38 #ifndef MBED_IRQ_H
39 #define MBED_IRQ_H
40 
41 // Platform support needs to be C-compatible to work with other drivers
42 #ifdef __cplusplus
43 extern "C"
44 {
45 #endif
46 
47 /******************************************************************************/
48 /***************************** Include Files **********************************/
49 /******************************************************************************/
50 
51 #include <stdbool.h>
52 
53 /******************************************************************************/
54 /*************************** Types Declarations *******************************/
55 /******************************************************************************/
56 
65 enum irq_id {
69 
72 
73  /* Number of available interrupts */
75 };
76 
87  uint32_t ticker_period_usec; // Time period in usec for ticker event
88  void *int_obj_type; // Other app created Mbed driver instance (e.g. UnBuffered uart)
89 };
90 
95 struct mbed_irq_desc {
96  uint32_t ticker_period_usec; // Time period in usec for ticker event
97  void *int_obj; // Mbed driver instance (e.g. Ticker, uart)
98 };
99 
103 extern const struct no_os_irq_platform_ops mbed_irq_ops;
104 
105 #ifdef __cplusplus // Closing extern c
106 }
107 #endif
108 
109 #endif // MBED_IRQ_H
NB_INTERRUPTS
@ NB_INTERRUPTS
Definition: mbed_irq.h:74
mbed_irq_init_param
Structure holding the extra parameters for Interrupt Request Example: mbed::UnBufferedSerial my_uart;...
Definition: mbed_irq.h:86
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:95
mbed_irq_desc::ticker_period_usec
uint32_t ticker_period_usec
Definition: mbed_irq.h:96
mbed_irq_init_param::int_obj_type
void * int_obj_type
Definition: mbed_irq.h:88
mbed_irq_init_param::ticker_period_usec
uint32_t ticker_period_usec
Definition: mbed_irq.h:87
mbed_irq_desc::int_obj
void * int_obj
Definition: mbed_irq.h:97
irq_id
irq_id
Interrupts IDs supported by the irq driver.
Definition: aducm3029_irq.h:68
UART_RX_INT_ID1
@ UART_RX_INT_ID1
Definition: mbed_irq.h:68
no_os_irq_platform_ops
Structure holding IRQ function pointers that point to the platform specific function.
Definition: no_os_irq.h:166
TICKER_INT_ID
@ TICKER_INT_ID
Definition: mbed_irq.h:71