VSF Documented
usart_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/*============================ MACROFIED FUNCTIONS ===========================*/
19
20#define VSF_HAL_TEMPLATE_DEC_NAME _usart
21#define VSF_HAL_TEMPLATE_DEC_UPCASE_NAME _USART
22
23#ifndef __VSF_TEMPLATE_USART_H__
24# error "Please include \"vsf_template_usart.h\" before include usart_template.h"
25#endif
26
27#ifndef VSF_USART_CFG_DEC_PREFIX
28# error "Please define VSF_USART_CFG_DEC_PREFIX before include usart_template.h"
29#endif
30
31#ifndef VSF_USART_CFG_DEC_UPCASE_PREFIX
32# error "Please define VSF_USART_CFG_DEC_UPCASE_PREFIX before include usart_template.h"
33#endif
34
35#ifndef VSF_USART_CFG_DEC_COUNT_MASK_PREFIX
36# define VSF_USART_CFG_DEC_COUNT_MASK_PREFIX VSF_USART_CFG_DEC_UPCASE_PREFIX
37#endif
38
39#ifndef VSF_USART_CFG_DEC_REMAP_PREFIX
40# define VSF_USART_CFG_DEC_REMAP_PREFIX VSF_USART_CFG_DEC_PREFIX
41#endif
42
43#define VSF_HAL_TEMPLATE_DEC_ADDITIONAL_API
44
46
47#undef VSF_USART_CFG_DEC_PREFIX
48#undef VSF_USART_CFG_DEC_UPCASE_PREFIX
49#undef VSF_USART_CFG_DEC_COUNT_MASK_PREFIX
50#undef VSF_USART_CFG_DEC_REMAP_PREFIX
51#undef VSF_USART_CFG_DEC_EXTERN_OP
52
53/*============================ INCLUDES ======================================*/
54