VSF Documented
exti_gpio.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __HAL_DRIVER_GPIO_EXTI_H__
19#define __HAL_DRIVER_GPIO_EXTI_H__
20
21/*============================ INCLUDES ======================================*/
22
23#include "hal/vsf_hal_cfg.h"
24
25#if VSF_HAL_USE_GPIO == ENABLED
26
27#if defined(__VSF_HAL_USE_GPIO_EXTI_CLASS_IMPLEMENT)
28# define __VSF_CLASS_IMPLEMENT__
29#endif
30
31#include "utilities/ooc_class.h"
32
33/*============================ MACROFIED FUNCTIONS ===========================*/
34/*============================ GLOBAL VARIABLES ==============================*/
35/*============================ MACROS ========================================*/
36
37#ifndef VSF_EXTI_GPIO_CFG_MULTI_CLASS
38# define VSF_EXTI_GPIO_CFG_MULTI_CLASS VSF_GPIO_CFG_MULTI_CLASS
39#endif
40
41/*============================ TYPES =========================================*/
42
43typedef struct vsf_exti_gpio_irq_t {
47
48typedef struct vsf_exti_gpio_t {
49#if VSF_EXTI_GPIO_CFG_MULTI_CLASS == ENABLED
51#endif
57
58/*============================ INCLUDES ======================================*/
59
60#define VSF_GPIO_CFG_DEC_PREFIX vsf_exti
61#define VSF_GPIO_CFG_DEC_UPCASE_PREFIX vsf_exti
62#define VSF_GPIO_CFG_DEC_EXTERN_OP ENABLED
64
65/*============================ PROTOTYPES ====================================*/
66
68 vsf_exti_gpio_t *hw_exti_gpio_ptr, vsf_gpio_pin_mask_t pin_mask,
69 vsf_gpio_exti_irq_cfg_t *irq_cfg_ptr);
70
71/*============================ IMPLEMENTATION ================================*/
72
73#endif
74
75#endif
76/* EOF */
vsf_err_t
Definition __type.h:42
vsf_arch_prio_t
Definition cortex_a_generic.h:88
vsf_err_t vsf_exti_gpio_exti_irq_pin_config(vsf_exti_gpio_t *hw_exti_gpio_ptr, vsf_gpio_pin_mask_t pin_mask, vsf_gpio_exti_irq_cfg_t *irq_cfg_ptr)
Definition exti_gpio.c:152
unsigned char uint8_t
Definition stdint.h:5
Definition exti_gpio.h:43
void * target_ptr
Definition exti_gpio.h:45
vsf_gpio_exti_isr_handler_t * handler_fn
Definition exti_gpio.h:44
Definition exti_gpio.h:48
uint8_t pin_cnt
Definition exti_gpio.h:53
vsf_gpio_t * gpio
Definition exti_gpio.h:52
vsf_exti_gpio_irq_t * exti_irq
Definition exti_gpio.h:55
vsf_arch_prio_t prio
Definition exti_gpio.h:54
vsf_gpio_t vsf_gpio
Definition exti_gpio.h:50
Definition vsf_template_gpio.h:387
Definition vsf_template_gpio.h:471
void vsf_gpio_exti_isr_handler_t(void *target_ptr, vsf_gpio_t *gpio_ptr, vsf_gpio_pin_mask_t pin_mask)
External interrupt callback function for gpio.
Definition vsf_template_gpio.h:382
#define vsf_gpio_pin_mask_t
Definition vsf_template_gpio.h:187