Go to the documentation of this file.
34 #ifndef ADUCM3029_IRQ_H
35 # define ADUCM3029_IRQ_H
41 #include <drivers/xint/adi_xint.h>
51 #define RTC_COUNT_INT ADI_RTC_COUNT_INT
52 #define RTC_COUNT_ROLLOVER_INT ADI_RTC_COUNT_ROLLOVER_INT
134 #endif // ADUCM3029_IRQ_H
#define NO_OS_UART_MAX_BYTES
Definition: aducm3029_uart.h:49
@ IRQ_EITHER_EDGE
Definition: aducm3029_irq.h:83
int32_t aducm3029_irq_ctrl_init(struct no_os_irq_ctrl_desc **desc, const struct no_os_irq_init_param *param)
Initialized the controller for the ADuCM3029 external interrupts.
Definition: aducm3029_irq.c:205
int32_t no_os_list_read_last(struct no_os_list_desc *list_desc, void **data)
Structure storing the list and function wrapper for usual list types.
Definition: no_os_list.h:228
struct no_os_op_desc read_desc
Definition: aducm3029_uart.h:148
@ NB_INTERRUPTS
Definition: aducm3029_irq.h:70
Structure holding ADuCM3029 specific RTC descriptor.
Definition: aducm3029_rtc.h:74
int32_t no_os_list_get_last(struct no_os_list_desc *list_desc, void **data)
Header file of UART driver for ADuCM302x.
@ NO_OS_EVT_UART_RX_COMPLETE
Definition: no_os_irq.h:64
Structure describing a callback to be registered.
Definition: no_os_irq.h:142
@ GPIO_GROUP_POSITIVE_EDGE
Definition: aducm3029_irq.h:98
int32_t irq_action_cmp(void *data1, void *data2)
Action comparator function.
Definition: aducm3029_irq.c:74
void * ctx
Definition: aducm3029_irq.h:125
Header file of IRQ interface.
irq_mode
Trigger condition for the external interrupt.
Definition: aducm3029_irq.h:77
ADI_UART_HANDLE uart_handler
Definition: aducm3029_uart.h:130
uint8_t * buff
Definition: aducm3029_uart.h:118
It stores instance values specific for the ADuCM302x implementation.
Definition: aducm3029_timer.h:75
int32_t aducm3029_irq_ctrl_remove(struct no_os_irq_ctrl_desc *desc)
Free the resources allocated by no_os_irq_ctrl_init()
Definition: aducm3029_irq.c:235
Timer control module header.
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
@ ADUCM_UART_INT_ID
Definition: aducm3029_irq.h:64
const struct no_os_irq_platform_ops aducm_irq_ops
ADuCM3029 specific IRQ platform ops structure.
Definition: aducm3029_irq.c:551
#define RTC_COUNT_ROLLOVER_INT
Definition: aducm3029_irq.h:52
bool is_nonblocking
Definition: aducm3029_uart.h:116
@ ADUCM_RTC_INT_ID
Definition: aducm3029_irq.h:66
enum UART_ERROR errors
Definition: aducm3029_uart.h:132
void * extra
Definition: no_os_rtc.h:59
@ IRQ_RISING_EDGE
Definition: aducm3029_irq.h:79
int32_t aducm3029_irq_enable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Enable the interrupt.
Definition: aducm3029_irq.c:452
@ NO_OS_EVT_UART_TX_COMPLETE
Definition: no_os_irq.h:63
@ NO_OS_LIST_PRIORITY_LIST
Definition: no_os_list.h:225
#define no_os_min(x, y)
Definition: no_os_util.h:59
@ IRQ_HIGH_LEVEL
Definition: aducm3029_irq.h:85
@ NO_OS_EVT_TIM_ELAPSED
Definition: no_os_irq.h:68
const struct no_os_irq_platform_ops aducm_irq_ops
Aducm3029 platform specific IRQ platform ops structure.
Definition: aducm3029_irq.c:551
uint16_t id
Definition: no_os_timer.h:61
Header file of RTC driver for ADuCM302x.
void * ctx
Definition: no_os_irq.h:146
int32_t no_os_irq_unregister_callback(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, struct no_os_callback_desc *callback_desc)
Unregisters a generic IRQ handling function.
Definition: no_os_irq.c:112
@ GPIO_GROUP_NEGATIVE_EDGE
Definition: aducm3029_irq.h:96
ADI_TMR_CONFIG tmr_conf
Definition: aducm3029_timer.h:81
int32_t aducm3029_irq_unregister_callback(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, struct no_os_callback_desc *cb)
Unregister IRQ handling function for the specified irq_id.
Definition: aducm3029_irq.c:371
no_os_irq_trig_level
Definition: no_os_irq.h:76
uint32_t irq_ctrl_id
Definition: no_os_irq.h:109
gpio_irq_mode
Interrupt conditions for GPIO group interrupts.
Definition: aducm3029_irq.h:94
void(* callback)(void *context)
Definition: aducm3029_irq.h:123
struct no_os_list_desc * actions
Definition: aducm3029_irq.c:85
Header file of IRQ driver for ADuCM302x.
int32_t irq_action_cmp(void *data1, void *data2)
Action comparator function.
Definition: aducm3029_irq.c:74
@ NO_OS_EVT_RTC
Definition: no_os_irq.h:66
Structure holding RTC descriptor.
Definition: no_os_rtc.h:51
void * handle
Definition: no_os_irq.h:152
void(* callback)(void *context)
Definition: no_os_irq.h:144
void * handle
Definition: aducm3029_irq.h:121
int32_t no_os_list_remove(struct no_os_list_desc *list_desc)
Header of the RTC interface.
uint32_t irq_id
Definition: aducm3029_irq.h:119
irq_id
Interrupts IDs supported by the irq driver.
Definition: aducm3029_irq.h:62
int32_t aducm3029_irq_global_disable(struct no_os_irq_ctrl_desc *desc)
Disable all external interrupts.
Definition: aducm3029_irq.c:425
uint32_t pending
Definition: aducm3029_uart.h:120
enum no_os_irq_event event
Definition: no_os_irq.h:148
int32_t aducm3029_irq_register_callback(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, struct no_os_callback_desc *callback_desc)
Registers a IRQ callback function to irq controller.
Definition: aducm3029_irq.c:257
Struct that stores all the actions for a specific event.
Definition: aducm3029_irq.c:83
struct no_os_op_desc write_desc
Definition: aducm3029_uart.h:146
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
Struct used to store a (peripheral, callback) pair.
Definition: aducm3029_irq.h:117
uint32_t hal_event
Definition: aducm3029_irq.c:86
enum no_os_irq_event event
Definition: aducm3029_irq.c:84
#define NULL
Definition: wrapper.h:64
@ NO_OS_EVT_GPIO
Definition: no_os_irq.h:62
Structure holding the initial parameters for Interrupt Request.
Definition: no_os_irq.h:107
void * extra
Definition: no_os_timer.h:69
no_os_irq_event
Definition: no_os_irq.h:61
@ IRQ_FALLING_EDGE
Definition: aducm3029_irq.h:81
int32_t no_os_irq_enable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Enable specific interrupt.
Definition: no_os_irq.c:181
@ NO_OS_EVT_UART_ERROR
Definition: no_os_irq.h:65
Header file of GPIO Interface.
int32_t aducm3029_irq_disable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Disable the interrupt.
Definition: aducm3029_irq.c:494
Header file of TIMER driver for ADuCM302x.
Header file of UART interface.
@ IRQ_LOW_LEVEL
Definition: aducm3029_irq.h:87
void * instance
Definition: aducm3029_rtc.h:76
int32_t no_os_list_add_last(struct no_os_list_desc *list_desc, void *data)
int32_t no_os_list_init(struct no_os_list_desc **list_desc, enum no_os_adapter_type type, f_cmp comparator)
Stores specific platform parameters.
Definition: aducm3029_irq.h:105
Structure holding timer descriptor.
Definition: no_os_timer.h:57
Header file of utility functions.
int32_t no_os_irq_disable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Disable specific interrupt.
Definition: no_os_irq.c:198
int32_t aducm3029_irq_global_enable(struct no_os_irq_ctrl_desc *desc)
Enable all previously enabled interrupts by no_os_irq_enable().
Definition: aducm3029_irq.c:408
enum no_os_irq_trig_level trig_lv
Definition: aducm3029_irq.h:128
Definition: no_os_irq.h:123
Stores specific parameter needed by the UART driver for internal operations.
Definition: aducm3029_uart.h:128
#define RTC_COUNT_INT
Definition: aducm3029_irq.h:51
void * extra
Definition: no_os_irq.h:134
@ ADUCM_TIMER1_INT_ID
Definition: aducm3029_irq.h:68