VSF Documented
exti_template.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/*============================ INCLUDES ======================================*/
19/*============================ MACROFIED FUNCTIONS ===========================*/
20
21#ifndef VSF_HAL_TEMPLATE_DEC_RETAIN_DEFINED_PREFIX
22# define VSF_HAL_TEMPLATE_DEC_RETAIN_DEFINED_PREFIX DISABLED
23#endif
24
25#ifndef VSF_HAL_TEMPLATE_DEC_NAME
26# define VSF_HAL_TEMPLATE_DEC_NAME _exti
27#endif
28
29#ifndef VSF_HAL_TEMPLATE_DEC_UPCASE_NAME
30# define VSF_HAL_TEMPLATE_DEC_UPCASE_NAME _EXTI
31#endif
32
33#ifndef VSF_HAL_TEMPLATE_DEC_COUNT_SUFFIX
34# define VSF_HAL_TEMPLATE_DEC_COUNT_SUFFIX _COUNT
35#endif
36
37#ifndef VSF_HAL_TEMPLATE_DEC_MASK_SUFFIX
38# define VSF_HAL_TEMPLATE_DEC_MASK_SUFFIX _MASK
39#endif
40
41#ifndef __VSF_TEMPLATE_EXTI_H__
42# error "Please include \"vsf_template_exti.h\" before include exti_template.h"
43#endif
44
45#if !defined(VSF_EXTI_CFG_DEC_PREFIX) && !defined(VSF_EXTI_CFG_DEC_DEVICE_PREFIX)
46# error "Please define VSF_EXTI_CFG_DEC_PREFIX or VSF_EXTI_CFG_DEC_DEVICE_PREFIX before include exti_template.h"
47#endif
48
49#if !defined(VSF_EXTI_CFG_DEC_UPCASE_PREFIX) && !defined(VSF_EXTI_CFG_DEC_DEVICE_UPCASE_PREFIX)
50# error "Please define VSF_EXTI_CFG_DEC_UPCASE_PREFIX or VSF_EXTI_CFG_DEC_DEVICE_UPCASE_PREFIX before include exti_template.h"
51#endif
52
53#ifndef VSF_EXTI_CFG_DEC_REMAP_PREFIX
54# define VSF_EXTI_CFG_DEC_REMAP_PREFIX VSF_EXTI_CFG_DEC_PREFIX
55#endif
56
57#ifndef VSF_EXTI_CFG_DEC_COUNT_MASK_PREFIX
58# define VSF_EXTI_CFG_DEC_COUNT_MASK_PREFIX VSF_EXTI_CFG_DEC_UPCASE_PREFIX
59#endif
60
61#define VSF_HAL_TEMPLATE_DEC_INSTANCE_APIS(__prefix_name) \
62 VSF_EXTI_APIS(__prefix_name)
63
65
66#if VSF_HAL_TEMPLATE_DEC_RETAIN_DEFINED_PREFIX == DISABLED
67# undef VSF_EXTI_CFG_DEC_PREFIX
68# undef VSF_EXTI_CFG_DEC_UPCASE_PREFIX
69# undef VSF_EXTI_CFG_DEC_DEVICE_PREFIX
70# undef VSF_EXTI_CFG_DEC_DEVICE_UPCASE_PREFIX
71#endif
72
73#undef VSF_EXTI_CFG_DEC_REMAP_PREFIX
74#undef VSF_EXTI_CFG_DEC_COUNT_MASK_PREFIX
75#undef VSF_EXTI_CFG_DEC_EXTERN_OP
76#undef VSF_EXTI_CFG_IMP_LV0
77
78/*============================ INCLUDES ======================================*/
79
80
Generated from commit: vsfteam/vsf@368bfa6