VSF Documented
dac_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#define VSF_HAL_TEMPLATE_DEC_NAME _dac
22#define VSF_HAL_TEMPLATE_DEC_UPCASE_NAME _DAC
23
24#ifndef __VSF_TEMPLATE_DAC_H__
25# error "Please include \"vsf_template_dac.h\" before include dac_template.h"
26#endif
27
28#ifndef VSF_DAC_CFG_DEC_PREFIX
29# error "Please define VSF_DAC_CFG_DEC_PREFIX before include dac_template.h"
30#endif
31
32#ifndef VSF_DAC_CFG_DEC_UPCASE_PREFIX
33# error "Please define VSF_DAC_CFG_DEC_UPCASE_PREFIX before include dac_template.h"
34#endif
35
36#ifndef VSF_DAC_CFG_DEC_REMAP_PREFIX
37# define VSF_DAC_CFG_DEC_REMAP_PREFIX VSF_DAC_CFG_DEC_PREFIX
38#endif
39
40#ifndef VSF_DAC_CFG_DEC_COUNT_MASK_PREFIX
41# define VSF_DAC_CFG_DEC_COUNT_MASK_PREFIX VSF_DAC_CFG_DEC_UPCASE_PREFIX
42#endif
43
45
46#undef VSF_DAC_CFG_DEC_PREFIX
47#undef VSF_DAC_CFG_DEC_UPCASE_PREFIX
48#undef VSF_DAC_CFG_DEC_COUNT_MASK_PREFIX
49#undef VSF_DAC_CFG_DEC_REMAP_PREFIX
50#undef VSF_DAC_CFG_DEC_EXTERN_OP