no-OS
stm32_gpio_irq.h
Go to the documentation of this file.
1 /***************************************************************************/
39 #ifndef STM32_GPIO_IRQ_H
40 #define STM32_GPIO_IRQ_H
41 
42 #include "no_os_irq.h"
43 #include "stm32_hal.h"
44 
51  uint8_t port_nb;
52 };
53 
60  EXTI_HandleTypeDef hexti;
62  uint8_t port_nb;
63 };
64 
68 extern const struct no_os_irq_platform_ops stm32_gpio_irq_ops;
69 
70 #endif
no_os_list_desc
Structure storing the list and function wrapper for usual list types.
Definition: no_os_list.h:234
stm32_gpio_irq_init_param
Structure holding the initialization parameters for stm32 platform specific GPIO IRQ parameters.
Definition: stm32_gpio_irq.h:50
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:136
irq_action::ctx
void * ctx
Definition: aducm3029_irq.h:131
no_os_irq.h
Header file of IRQ interface.
stm32_gpio_irq_desc::port_nb
uint8_t port_nb
Definition: stm32_gpio_irq.h:62
no_os_list_get_first
int32_t no_os_list_get_first(struct no_os_list_desc *list_desc, void **data)
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:166
NO_OS_IRQ_EDGE_FALLING
@ NO_OS_IRQ_EDGE_FALLING
Definition: no_os_irq.h:80
no_os_irq_init_param::extra
void * extra
Definition: no_os_irq.h:112
NO_OS_LIST_PRIORITY_LIST
@ NO_OS_LIST_PRIORITY_LIST
Definition: no_os_list.h:231
HAL_GPIO_EXTI_Rising_Callback
void HAL_GPIO_EXTI_Rising_Callback(uint16_t pin)
EXTI GPIO Interrupt handler callback for rising edge detection.
Definition: stm32_gpio_irq.c:118
stm32_gpio_irq_ops
const struct no_os_irq_platform_ops stm32_gpio_irq_ops
stm32 specific IRQ platform ops structure
Definition: stm32_gpio_irq.c:455
no_os_callback_desc::ctx
void * ctx
Definition: no_os_irq.h:148
no_os_irq_trig_level
no_os_irq_trig_level
Definition: no_os_irq.h:77
no_os_irq_init_param::irq_ctrl_id
uint32_t irq_ctrl_id
Definition: no_os_irq.h:105
stm32_get_exti_irq_id_from_pin
int stm32_get_exti_irq_id_from_pin(uint8_t pin_nb, IRQn_Type *irq_id)
irq_action::callback
void(* callback)(void *context)
Definition: aducm3029_irq.h:129
no_os_irq_ctrl_desc::platform_ops
const struct no_os_irq_platform_ops * platform_ops
Definition: no_os_irq.h:123
stm32_gpio_irq_init_param::port_nb
uint8_t port_nb
Definition: stm32_gpio_irq.h:51
stm32_gpio_irq_desc::hexti
EXTI_HandleTypeDef hexti
Definition: stm32_gpio_irq.h:60
no_os_irq_init_param::platform_ops
const struct no_os_irq_platform_ops * platform_ops
Definition: no_os_irq.h:107
irq_action_cmp
int32_t irq_action_cmp(void *data1, void *data2)
Action comparator function.
Definition: aducm3029_irq.c:79
no_os_callback_desc::callback
void(* callback)(void *context)
Definition: no_os_irq.h:138
STM32_IRQ_CTRL_NB
#define STM32_IRQ_CTRL_NB
Definition: stm32_gpio_irq.c:54
no_os_list_remove
int32_t no_os_list_remove(struct no_os_list_desc *list_desc)
irq_action::irq_id
uint32_t irq_id
Definition: aducm3029_irq.h:125
irq_id
irq_id
Interrupts IDs supported by the irq driver.
Definition: aducm3029_irq.h:68
stm32_gpio_irq_ops
const struct no_os_irq_platform_ops stm32_gpio_irq_ops
stm32 platform specific irq platform ops structure
Definition: stm32_gpio_irq.c:455
irq_action
Struct used to store a (peripheral, callback) pair.
Definition: aducm3029_irq.h:123
no_os_list.h
List library header.
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:121
no_os_irq_init_param
Structure holding the initial parameters for Interrupt Request.
Definition: no_os_irq.h:103
NO_OS_IRQ_EDGE_RISING
@ NO_OS_IRQ_EDGE_RISING
Definition: no_os_irq.h:81
HAL_GPIO_EXTI_Falling_Callback
void HAL_GPIO_EXTI_Falling_Callback(uint16_t pin)
EXTI GPIO Interrupt handler callback for falling edge detection.
Definition: stm32_gpio_irq.c:127
no_os_irq_platform_ops
Structure holding IRQ function pointers that point to the platform specific function.
Definition: no_os_irq.h:164
NO_OS_IRQ_EDGE_BOTH
@ NO_OS_IRQ_EDGE_BOTH
Definition: no_os_irq.h:82
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.
no_os_find_first_set_bit
uint32_t no_os_find_first_set_bit(uint32_t word)
stm32_gpio_irq.h
Header file for stm32 gpio irq specifics.
no_os_irq_ctrl_desc
Definition: no_os_irq.h:119
HAL_GPIO_EXTI_Callback
void HAL_GPIO_EXTI_Callback(uint16_t pin)
EXTI GPIO Interrupt handler callback.
Definition: stm32_gpio_irq.c:109
no_os_irq_ctrl_desc::extra
void * extra
Definition: no_os_irq.h:128
stm32_hal.h
stm32_gpio_irq_desc
stm32 platform specific GPIO IRQ descriptor
Definition: stm32_gpio_irq.h:58
errno.h
Error macro definition for ARM Compiler.