no-OS
stm32_irq.h
Go to the documentation of this file.
1 /***************************************************************************/
33 #ifndef STM32_IRQ_H
34 #define STM32_IRQ_H
35 
36 #include "no_os_irq.h"
37 #include "stm32_hal.h"
38 
42 extern const struct no_os_irq_platform_ops stm32_irq_ops;
43 
44 #endif
no_os_list_desc
Structure storing the list and function wrapper for usual list types.
Definition: no_os_list.h:228
no_os_alloc.h
NO_OS_EVT_UART_RX_COMPLETE
@ NO_OS_EVT_UART_RX_COMPLETE
Definition: no_os_irq.h:64
no_os_list_read_find
int32_t no_os_list_read_find(struct no_os_list_desc *list_desc, void **data, void *cmp_data)
no_os_callback_desc
Structure describing a callback to be registered.
Definition: no_os_irq.h:142
irq_action::ctx
void * ctx
Definition: aducm3029_irq.h:125
no_os_irq.h
Header file of IRQ interface.
no_os_list_get_find
int32_t no_os_list_get_find(struct no_os_list_desc *list_desc, void **data, void *cmp_data)
NO_OS_TIM_DMA_IRQ
@ NO_OS_TIM_DMA_IRQ
Definition: no_os_irq.h:90
NO_OS_EVT_TIM_PWM_PULSE_FINISHED
@ NO_OS_EVT_TIM_PWM_PULSE_FINISHED
Definition: no_os_irq.h:69
stm32_trigger_level_set
int32_t stm32_trigger_level_set(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, enum no_os_irq_trig_level level)
Unused.
Definition: stm32_irq.c:267
no_os_irq_platform_ops::init
int32_t(* init)(struct no_os_irq_ctrl_desc **desc, const struct no_os_irq_init_param *param)
Definition: no_os_irq.h:162
no_os_calloc
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
NO_OS_TDM_DMA_IRQ
@ NO_OS_TDM_DMA_IRQ
Definition: no_os_irq.h:89
no_os_irq_init_param::extra
void * extra
Definition: no_os_irq.h:116
no_os_callback_desc::peripheral
enum no_os_irq_peripheral peripheral
Definition: no_os_irq.h:150
stm32_irq_ops
const struct no_os_irq_platform_ops stm32_irq_ops
stm32 platform specific irq platform ops structure
Definition: stm32_irq.c:582
stm32_irq_global_enable
int32_t stm32_irq_global_enable(struct no_os_irq_ctrl_desc *desc)
Enable all interrupts.
Definition: stm32_irq.c:518
NO_OS_EVT_UART_TX_COMPLETE
@ NO_OS_EVT_UART_TX_COMPLETE
Definition: no_os_irq.h:63
NO_OS_LIST_PRIORITY_LIST
@ NO_OS_LIST_PRIORITY_LIST
Definition: no_os_list.h:225
stm32_irq_unregister_callback
int32_t stm32_irq_unregister_callback(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, struct no_os_callback_desc *cb)
Unregister a callback.
Definition: stm32_irq.c:450
NO_OS_EVT_TIM_ELAPSED
@ NO_OS_EVT_TIM_ELAPSED
Definition: no_os_irq.h:68
stm32_irq.h
Header file for stm32 irq specifics.
no_os_callback_desc::ctx
void * ctx
Definition: no_os_irq.h:146
no_os_irq_trig_level
no_os_irq_trig_level
Definition: no_os_irq.h:76
no_os_irq_init_param::irq_ctrl_id
uint32_t irq_ctrl_id
Definition: no_os_irq.h:109
irq_action::callback
void(* callback)(void *context)
Definition: aducm3029_irq.h:123
NO_OS_TIM_IRQ
@ NO_OS_TIM_IRQ
Definition: no_os_irq.h:88
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)
Action comparator function.
Definition: aducm3029_irq.c:74
stm32_irq_ops
const struct no_os_irq_platform_ops stm32_irq_ops
stm32 specific IRQ platform ops structure
Definition: stm32_irq.c:582
no_os_callback_desc::handle
void * handle
Definition: no_os_irq.h:152
no_os_callback_desc::callback
void(* callback)(void *context)
Definition: no_os_irq.h:144
_RxCpltCallback
void _RxCpltCallback(UART_HandleTypeDef *huart)
Definition: stm32_irq.c:173
irq_action::handle
void * handle
Definition: aducm3029_irq.h:121
NO_OS_EVT_DMA_TX_COMPLETE
@ NO_OS_EVT_DMA_TX_COMPLETE
Definition: no_os_irq.h:72
irq_id
irq_id
Interrupts IDs supported by the irq driver.
Definition: aducm3029_irq.h:62
no_os_callback_desc::event
enum no_os_irq_event event
Definition: no_os_irq.h:148
NO_OS_EVT_DMA_RX_COMPLETE
@ NO_OS_EVT_DMA_RX_COMPLETE
Definition: no_os_irq.h:70
event_list
Struct that stores all the actions for a specific event.
Definition: aducm3029_irq.c:83
no_os_free
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
stm32_irq_global_disable
int32_t stm32_irq_global_disable(struct no_os_irq_ctrl_desc *desc)
Disable all interrupts.
Definition: stm32_irq.c:530
irq_action
Struct used to store a (peripheral, callback) pair.
Definition: aducm3029_irq.h:117
no_os_list.h
List library header.
event_list::hal_event
uint32_t hal_event
Definition: aducm3029_irq.c:86
event_list::event
enum no_os_irq_event event
Definition: aducm3029_irq.c:84
stm32_irq_ctrl_init
int32_t stm32_irq_ctrl_init(struct no_os_irq_ctrl_desc **desc, const struct no_os_irq_init_param *param)
Initialized the controller for the STM32 external interrupts.
Definition: stm32_irq.c:223
NULL
#define NULL
Definition: wrapper.h:64
no_os_irq_ctrl_desc::irq_ctrl_id
uint32_t irq_ctrl_id
Definition: no_os_irq.h:125
NO_OS_EVT_GPIO
@ NO_OS_EVT_GPIO
Definition: no_os_irq.h:62
no_os_irq_init_param
Structure holding the initial parameters for Interrupt Request.
Definition: no_os_irq.h:107
NO_OS_UART_IRQ
@ NO_OS_UART_IRQ
Definition: no_os_irq.h:86
no_os_irq_event
no_os_irq_event
Definition: no_os_irq.h:61
stm32_irq_ctrl_remove
int32_t stm32_irq_ctrl_remove(struct no_os_irq_ctrl_desc *desc)
Free the resources allocated by irq_ctrl_init()
Definition: stm32_irq.c:250
NO_OS_EVT_UART_ERROR
@ NO_OS_EVT_UART_ERROR
Definition: no_os_irq.h:65
no_os_irq_platform_ops
Structure holding IRQ function pointers that point to the platform specific function.
Definition: no_os_irq.h:160
NO_OS_EVT_DMA_RX_HALF_COMPLETE
@ NO_OS_EVT_DMA_RX_HALF_COMPLETE
Definition: no_os_irq.h:71
_ErrorCallback
void _ErrorCallback(UART_HandleTypeDef *huart)
Definition: stm32_irq.c:208
no_os_list_add_last
int32_t no_os_list_add_last(struct no_os_list_desc *list_desc, void *data)
no_os_list_init
int32_t no_os_list_init(struct no_os_list_desc **list_desc, enum no_os_adapter_type type, f_cmp comparator)
no_os_util.h
Header file of utility functions.
stm32_irq_disable
int32_t stm32_irq_disable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Disable a specific interrupt.
Definition: stm32_irq.c:556
stm32_irq_register_callback
int32_t stm32_irq_register_callback(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, struct no_os_callback_desc *cb)
Register a callback.
Definition: stm32_irq.c:281
no_os_irq_ctrl_desc
Definition: no_os_irq.h:123
no_os_irq_ctrl_desc::extra
void * extra
Definition: no_os_irq.h:134
stm32_hal.h
_TxCpltCallback
void _TxCpltCallback(UART_HandleTypeDef *huart)
Definition: stm32_irq.c:167
errno.h
Error macro definition for ARM Compiler.
NO_OS_DMA_IRQ
@ NO_OS_DMA_IRQ
Definition: no_os_irq.h:92
stm32_irq_enable
int32_t stm32_irq_enable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Enable a specific interrupt.
Definition: stm32_irq.c:543