VSF Documented
exti.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_ARTERY_AT32F402_405_EXTI_H__
19#define __HAL_DRIVER_ARTERY_AT32F402_405_EXTI_H__
20
21/*============================ INCLUDES ======================================*/
22
23#include "hal/vsf_hal_cfg.h"
24
25#if VSF_HAL_USE_EXTI == ENABLED
26
27// HW/IPCore
32// HW/IPCore end
33
34/*\note Refer to template/README.md for usage cases.
35 * For peripheral drivers, blackbox mode is recommended but not required, reimplementation part MUST be open.
36 * For IPCore drivers, class structure, MULTI_CLASS configuration, reimplementation and class APIs should be open to user.
37 * For emulated drivers, **** No reimplementation ****.
38 *
39 * Usually, there is no IPCore driver for EXTI.
40 */
41
42/*\note Includes CAN ONLY be put here. */
43
44#ifdef __cplusplus
45extern "C" {
46#endif
47
48/*============================ MACROS ========================================*/
49
50// HW
51/*\note hw EXTI driver can reimplement following types:
52 * To enable reimplementation, please enable macro below:
53 * VSF_EXTI_CFG_REIMPLEMENT_TYPE_MODE for vsf_exti_mode_t
54 * VSF_EXTI_CFG_REIMPLEMENT_TYPE_CAPABILITY for vsf_exti_capability_t
55 * Reimplementation is used for optimization hw/IPCore drivers, reimplement the bit mask according to hw registers.
56 * *** DO NOT reimplement these in emulated drivers. ***
57 */
58
59#define VSF_EXTI_CFG_REIMPLEMENT_TYPE_MODE ENABLED
60// HW end
61
62/*============================ MACROFIED FUNCTIONS ===========================*/
63/*============================ TYPES =========================================*/
64
65// HW/IPCore, not for emulated drivers
66#if VSF_EXTI_CFG_REIMPLEMENT_TYPE_MODE == ENABLED
67typedef enum vsf_exti_mode_t {
73#endif
74
75/*============================ INCLUDES ======================================*/
76/*============================ PROTOTYPES ====================================*/
77
78#ifdef __cplusplus
79}
80#endif
81
82#endif // VSF_HAL_USE_EXTI
83#endif // __HAL_DRIVER_ARTERY_AT32F402_405_EXTI_H__
84/* EOF */
vsf_exti_mode_t
Definition exti.h:67
@ VSF_EXTI_MODE_RISING_FALLING
Definition exti.h:71
@ VSF_EXTI_MODE_RISING
Definition exti.h:69
@ VSF_EXTI_MODE_FALLING
Definition exti.h:70
@ VSF_EXTI_MODE_NONE
Definition exti.h:68
Generated from commit: vsfteam/vsf@368bfa6